dev-cmd/bottle: improve :all
bottle handling
#18350
Merged
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.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Currently, we silently ignore cases where a formula previously had an
:all
bottle but now no longer does.These are most often due to (in order of likelihood):
brew
/usr/local
references in text files in a bottleThe former is a bug that should be fixed, while the latter can be fixed
trivally with an
inreplace
.Let's try to make sure we always do this by making
brew bottle
errorout so that we can catch these instances as they happen rather than
after the fact.
I haven't encountered any cases where a formula previously had an
:all
bottle but no longer does for reasons other than the two outlined above.
If we do encouter those in the future, we can either:
brew bottle
to skip this check, perhaps with a new flag:all
bottle before doingbrew bottle
soit doesn't error