Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18202

create-release fails fatal: unsafe repository ('/build/source' is owned by someone else)

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      The first git command in the create-release docker container is failing as git doesn't consider /build/source to belong to the current user.

      since CVE-2022-24765 and the april 2022 git releases to refuse to work in such directories

      https://github.blog/2022-04-12-git-security-vulnerability-announced/

      
      $ /usr/bin/git clean -xdf -e /patchprocess
      fatal: unsafe repository ('/build/source' is owned by someone else)
      To add an exception for this directory, call:
      
      	git config --global --add safe.directory /build/source
      
      

      Attachments

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m