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_installer: improve no-bottle error message #10183
Conversation
Review period will end on 2020-12-31 at 14:52:26 UTC. |
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.
I think the no bottle available!
message is a tad misleading in this case. Maybe instead: bottle conditions not met!
. No bottle available feels more "final" as if it's saying "sorry there's nothing you can do except build from source" while this is more like "before you can use a bottle you must do this".
Maybe that's not the case for all formulae that use pour_bottle?
, though.
How about |
1ebed31
to
2dedca3
Compare
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.
Sorry, wasn't clear with what I was thinking.
I was thinking this "unable to pour bottle" message would be only for instances where formula.pour_bottle?
is false.
When this message is showing in situations like no ARM bottles are available, I think it makes sense to still have the "no bottle available" message. That's a little more accurate to what the exact issue is for the user, I think.
I agree, but I'm still mulling over the best way to implement it. For instance, maybe it's enough to just add Alternatively, I could add an |
Ah, you know what? I think this is what you want to do instead: Change the You may also need to adjust the messaging. See if that gives a better result. |
I've considered that too, but decided against it since adjusting the messaging already in the |
Thinking about it some more, I don't think I should change the messaging in the |
Review period skipped due to |
Follow up to Homebrew#10183. This improves the error message displayed when `formula.pour_bottle?` is false. Before: ❯ brew install python@3.8 Error: python@3.8: no bottle available! The bottle needs the Apple Command Line Tools to be installed. You can install them, if desired, with: xcode-select --install You can try to install from source with e.g. brew install --build-from-source python@3.8 Please note building from source is unsupported. You will encounter build failures with some formulae. If you experience any issues please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. After: ❯ brew install python@3.8 Error: python@3.8: the bottle needs the Apple Command Line Tools to be installed. You can install them, if desired, with: xcode-select --install You can try to install from source with e.g. brew install --build-from-source python@3.8 Please note building from source is unsupported. You will encounter build failures with some formulae. If you experience any issues please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?java_spec
error and atap-new_spec
error.brew tests
produces these errors even when run on the master branch.brew man
locally and committed any changes?Closes #10180.
This PR changes the error message when you try to install
python@3.9
and you have no CLT installed to:If the formula does not specify a
pour_bottle?
method but also has no bottles:I suspect there may be more refactoring in order for the
pour_bottle?
method informula_installer.rb
, but I'd prefer to address those later.