{Packaging} Fix test homebrew formula task#29078
Merged
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Collaborator
|
Packaging |
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 |
Contributor
Author
There was a problem hiding this comment.
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
This file contains hidden or 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
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.xxformula.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.11exceptazure-cli. Previously, uninstallingazure-clidoes not removepython@3.11and this bug is not triggered.