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
formula_versions: handle references to too old MacOS in formulae #8389
Conversation
Library/Homebrew/os/mac/version.rb
Outdated
mavericks: "10.9", | ||
mountain_lion: "10.8", |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This seems extreme. Why is it going back that far? Adding brew/Library/Homebrew/formula_versions.rb Lines 8 to 12 in 56ed27a
seems reasonable, though would ultimately make it skip the revision. |
brew/Library/Homebrew/formula_versions.rb Line 14 in 56ed27a
It falls exactly on the second version — With ignoring |
Yes, please do that 👍🏻. That's preferable to adding any old versions. Alternatively, handle this loop but exit immediately when it sees an old version in this case because we know that we're not going to see anything useful then. |
I like this approach, will take a look a bit later |
5ee127d
to
b43f17b
Compare
brew style
with your changes locally?brew tests
with your changes locally?Bottling of
gource
formula fails with an errorError: unknown or unsupported macOS version: :mountain_lion
(in Homebrew/homebrew-core#59779)When brew does
Determining gource bottle rebuild
, it went back to https://github.com/homebrew/homebrew-core/tree/44d524b9a505e14a4af60d231ca5162dadab18d7 revision which has linedepends_on :macos => :mountain_lion
This PR adds
mavericks
andmountain_lion
versions to makemountain_lion
known version.I'm not completely sure if this is a right solution (of we should handle such cases in
Homebrew#bottle_formula
, for example), but these changes look safe enough from the first glance.The full log is here: