Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16278

[CI] Git installation failure on homebrew

    XMLWordPrintableJSON

Details

    Description

      Some builds are failing due to git unable to install on homebrew. This seems to be related to the new git release:

       With the fixes for CVE-2022-24765 that are common with versions of
      Git 2.30.4, 2.31.3, 2.32.2, 2.33.3, 2.34.3, and 2.35.3, Git has
      been taught not to recognise repositories owned by other users, in
      order to avoid getting affected by their config files and hooks.
      You can list the path to the safe/trusted repositories that may be
      owned by others on a multi-valued configuration variable
      safe.directory to override this behaviour, or use '*' to declare
      that you trust anything.

      Failed job example https://github.com/apache/arrow/runs/6114985460?check_suite_focus=true:

      Installing automake
      Installing aws-sdk-cpp
      Installing boost
      Using brotli
      Using c-ares
      Installing ccache
      Using cmake
      Installing flatbuffers
      Installing git
      ==> Downloading https://ghcr.io/v2/homebrew/core/git/manifests/2.36.0
      ==> Downloading https://ghcr.io/v2/homebrew/core/git/blobs/sha256:5739e703f9ad34dba01e343d76f363143f740bf6e05c945c8f19a073546c6ce5
      ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5739e703f9ad34dba01e343d76f363143f740bf6e05c945c8f19a073546c6ce5?se=2022-04-21T18%3A35%3A00Z&sig=ZdiaSBdomnIwd4Ga4PORXPs2%2FYZXrrLLaks61mgmyEs%3D&sp=r&spr=https&sr=b&sv=2019-12-12
      ==> Pouring git--2.36.0.big_sur.bottle.tar.gz
      Error: The `brew link` step did not complete successfully
      The formula built, but is not symlinked into /usr/local
      Could not symlink etc/bash_completion.d/git-completion.bash
      Target /usr/local/etc/bash_completion.d/git-completion.bash
      is a symlink belonging to git@2.35.1. You can unlink it:
        brew unlink git@2.35.1To force the link and overwrite all conflicting files:
        brew link --overwrite gitTo list all files that would be deleted:
        brew link --overwrite --dry-run gitPossible conflicting files are:
      /usr/local/etc/bash_completion.d/git-completion.bash -> /usr/local/Cellar/git@2.35.1/2.35.1/etc/bash_completion.d/git-completion.bash
      /usr/local/etc/bash_completion.d/git-prompt.sh -> /usr/local/Cellar/git@2.35.1/2.35.1/etc/bash_completion.d/git-prompt.sh
      /usr/local/bin/git -> /usr/local/Cellar/git@2.35.1/2.35.1/bin/git
      /usr/local/bin/git-cvsserver -> /usr/local/Cellar/git@2.35.1/2.35.1/bin/git-cvsserver
      /usr/local/bin/git-receive-pack -> /usr/local/Cellar/git@2.35.1/2.35.1/bin/git-receive-pack
      /usr/local/bin/git-shell -> /usr/local/Cellar/git@2.35.1/2.35.1/bin/git-shell
      /usr/local/bin/git-upload-archive -> /usr/local/Cellar/git@2.35.1/2.35.1/bin/git-upload-archive
      /usr/local/bin/git-upload-pack -> /usr/local/Cellar/git@2.35.1/2.35.1/bin/git-upload-pack
      Error: Could not symlink share/doc/git-doc/MyFirstContribution.html
      Target /usr/local/share/doc/git-doc/MyFirstContribution.html
      is a symlink belonging to git@2.35.1. You can unlink it:
        brew unlink git@2.35.1To force the link and overwrite all conflicting files:
        brew link --overwrite git@2.35.1To list all files that would be deleted:
        brew link --overwrite --dry-run git@2.35.1
      Installing git has failed!
      Installing glog
      Installing grpc
      Using llvm
      Installing llvm@12
      Using lz4
      Installing minio
      Installing ninja
      Installing numpy
      Using openssl@1.1
      Installing protobuf
      Using python
      Installing rapidjson
      Installing snappy
      Installing thrift
      Using wget
      Using zstd
      Homebrew Bundle failed! 1 Brewfile dependency failed to install.
      Error: Process completed with exit code 1. 

       

      Attachments

        Activity

          People

            raulcd Raúl Cumplido
            raulcd Raúl Cumplido
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 4h 20m
                4h 20m