-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
gcc@11: add missing version_suffix method #119162
Conversation
Where is this actually used? Because it shouldn't be now that we have |
Exception stack is follow.
https://github.com/Homebrew/brew/blob/master/Library/Homebrew/extend/ENV/super.rb#L141-L158
https://github.com/Homebrew/brew/blob/master/Library/Homebrew/extend/ENV/shared.rb#L286-L297 It seems that |
I tried to set |
This is my Dockerfile, it will fail when remove
|
This should be fixed in |
Agreed with the above, |
Is there an issue in > brew upgrade
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
==> Updated Homebrew from 518c961f4 to d636f5bc0.
No changes to formulae.
==> Upgrading 1 outdated package:
snyk/tap/snyk 1.1088.0 -> 1.1089.0
==> Fetching snyk/tap/snyk
==> Downloading https://static.snyk.io/cli/v1.1089.0/snyk-linux
######################################################################## 100.0%
==> Upgrading snyk/tap/snyk
1.1088.0 -> 1.1089.0
Error: An exception occurred within a child process:
NoMethodError: undefined method `version_suffix' for #<Formulary::FormulaNamespaceAPIe0d511356bd44120af49cc96c9dcf3b3::Gcc:0x0000000008d80290>
Did you mean? version_scheme
|
Just ran > brew upgrade
Running `brew update --auto-update`...
==> Upgrading 2 outdated packages:
linux-headers@5.15 5.15.89 -> 5.15.90
snyk/tap/snyk 1.1088.0 -> 1.1089.0
==> Fetching linux-headers@5.15
==> Downloading https://ghcr.io/v2/homebrew/core/linux-headers/5.15/manifests/5.15.90
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/linux-headers/5.15/blobs/sha256:74d8d15daf4367651a72a46c7aba
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:74d8d15daf4367651a72a46c
######################################################################## 100.0%
==> Fetching snyk/tap/snyk
==> Downloading https://static.snyk.io/cli/v1.1089.0/snyk-linux
Already downloaded: /home/yz/.cache/Homebrew/downloads/55a2484afb83e3dec9dc4ead5a78c5941c9fd5cf8704c0742a2b95552--snyk-linux
==> Upgrading linux-headers@5.15
5.15.89 -> 5.15.90
==> Pouring linux-headers@5.15--5.15.90.x86_64_linux.bottle.tar.gz
✔ /home/linuxbrew/.linuxbrew/Cellar/linux-headers@5.15/5.15.90: 963 files, 5.7MB
==> Running `brew cleanup linux-headers@5.15`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /home/linuxbrew/.linuxbrew/Cellar/linux-headers@5.15/5.15.89... (963 files, 5.7MB)
Removing: /home/yz/.cache/Homebrew/linux-headers@5.15--5.15.89... (1.5MB)
==> Upgrading snyk/tap/snyk
1.1088.0 -> 1.1089.0
Error: An exception occurred within a child process:
NoMethodError: undefined method `version_suffix' for #<Formulary::FormulaNamespaceAPIe0d511356bd44120af49cc3b3::Gcc:0x0000000009a164c8>
Did you mean? version_scheme |
@yermulnik I sidestep that by set env |
@curoky Yay, that worked! Thanks 👍🏻 |
Note: this should have been fixed in Homebrew/brew#14426. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?When I install custom tap's formula with HOMEBREW_INSTALL_FROM_API=1 enabled, I got follow errors.
I found all gcc formulas had
version_suffix
method except gcc@11.homebrew-core/Formula/gcc.rb
Lines 56 to 62 in ca6650b
So should we add
version_suffix
to gcc@11?