Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew install fails on macos-latest runner #457

Closed
jbms opened this issue Jan 3, 2023 · 8 comments · Fixed by #458
Closed

brew install fails on macos-latest runner #457

jbms opened this issue Jan 3, 2023 · 8 comments · Fixed by #458

Comments

@jbms
Copy link

jbms commented Jan 3, 2023

Describe the bug

The brew install command fails on the macos-latest github-hosted runner:

==> Upgrading [email protected]
  3.10.8 -> 3.10.9 

==> Pouring [email protected]
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'

To force the link and overwrite all conflicting files:
  brew link --overwrite [email protected]

To list all files that would be deleted:
  brew link --overwrite --dry-run [email protected]

Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/2to3
/usr/local/bin/idle3 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/idle3
/usr/local/bin/pydoc3 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/pydoc3
/usr/local/bin/python3 -> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
/usr/local/bin/python3-config -> /Library/Frameworks/Python.framework/Versions/3.11/bin/python3-config

See this log for an example:
https://github.com/jbms/sphinx-immaterial/actions/runs/3820568912/jobs/6499217543

Skipping brew update seems to fix the problem.

@kamiazya
Copy link
Member

kamiazya commented Jan 5, 2023

@all-contributors please add @jbms for bug, idea.

@allcontributors
Copy link
Contributor

@kamiazya

I've put up a pull request to add @jbms! 🎉

@kamiazya
Copy link
Member

kamiazya commented Jan 5, 2023

@jbms

Released in v1.2.0 with additional functionality to correct this issue.

Thnaks!

@dhimmel
Copy link

dhimmel commented Jan 9, 2023

I'm getting brew installation failures on macos-latest for this workflow:

Both setup-graphviz steps are taking 5+ minutes (not sure if that is expected). Not clear to me from the logs what the issue is.

@kamiazya
Copy link
Member

@dhimmel This problem is not resolved by the default behavior.

The macos-skip-brew-update flag must be set to true.

- name: Setup Graphviz
  uses: ts-graphviz/setup-graphviz@v1
  with:
    # Skip to run brew update command on macOS.
    macos-skip-brew-update: 'true' # defalt false

@kamiazya
Copy link
Member

@dhimmel
I created a PullRequest so that others can see how to fix it 👍

related-sciences/nxontology#24

@kamiazya
Copy link
Member

@all-contributors please add @dhimmel for question.

@allcontributors
Copy link
Contributor

@kamiazya

I've put up a pull request to add @dhimmel! 🎉

dhimmel pushed a commit to related-sciences/nxontology that referenced this issue Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants