-
Notifications
You must be signed in to change notification settings - Fork 3k
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
{Packaging} Fix test homebrew formula task #29078
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Packaging |
microsoft-github-policy-service
bot
requested review from
jiasli,
wangzelin007 and
yonzhan
June 3, 2024 02:21
bebound
commented
Jun 20, 2024
# Force relink python@3.xx in Homebrew to resolve the conflict with pre-installed python 3.xx on macOS-12 image | ||
# See: https://github.com/Azure/azure-cli/issues/29054 | ||
python_version=3.11 | ||
brew unlink python@$python_version && brew link --overwrite python@$python_version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running brew link
without unlink
raises this error:
brew link --overwrite python@3.11
Warning: Already linked: /opt/homebrew/Cellar/python@3.11/3.11.9
To relink, run:
brew unlink python@3.11 && brew link python@3.11
jiasli
approved these changes
Jun 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fix #29054 by relinking the brew
python@3.xx
formula.Original error message:
This can be reverted after runner image fixing actions/runner-images#9966
PS: I guess this results from a change in runner image: The pre-installed packages do not requires
python@3.11
exceptazure-cli
. Previously, uninstallingazure-cli
does not removepython@3.11
and this bug is not triggered.