actions / runner-images

GitHub Actions runner images
MIT License
10.28k stars 3.09k forks source link

MacOS environment now provides a /usr/local/bin/2to3, conflicting with homebrew/homebrew dependencies #4033

Closed fredemmott closed 3 years ago

fredemmott commented 3 years ago

Description

For example, https://github.com/hhvm/hh-clilib/runs/3526321802?check_suite_focus=true : the hhvm package has a transitive dependency on the python@3.9 package:

 ==> Installing hhvm/hhvm/hhvm-4.124 dependency: python@3.9
  ==> Pouring python@3.9--3.9.7.catalina.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 bin/2to3
  Target /usr/local/bin/2to3
  already exists. You may want to remove it:
    rm '/usr/local/bin/2to3'

Notably:

This could be a change to homebrew triggering this.

Virtual environments affected

Image version and build link

Environment: macos-10.15 Version: 20210831.3

https://github.com/hhvm/hh-clilib/runs/3526321802

Is it regression?

Yes - same image version though: https://github.com/hhvm/hh-clilib/runs/3513952202?check_suite_focus=true

Expected behavior

python 3.9 installed without errors

Actual behavior

  ==> Pouring python@3.9--3.9.7.catalina.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 bin/2to3
  Target /usr/local/bin/2to3
  already exists. You may want to remove it:
    rm '/usr/local/bin/2to3'

Repro steps

brew tap hhvm/hhvm; brew install hhvm-4.124

catthehacker commented 3 years ago

Duplicate of https://github.com/actions/virtual-environments/issues/4020

fredemmott commented 3 years ago

Also appears fixed by 20210905.2 image ( https://github.com/hhvm/hh-clilib/runs/3535625772?check_suite_focus=true )