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 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>
?Today's 3.2.6 release of
brew
includes the newformula
/cask
livecheck
block DSL methods (see Homebrew/brew#11743), so now we can start using them inlivecheck
blocks.The main purpose of this feature is to allow formulae/casks to use the same check as another, so we can easily sync checks for formulae/casks that use the same
stable
/url
file. Up until now, we've had to duplicatelivecheck
blocks and manually update them when the canonicallivecheck
block changes (e.g.,sqlite
and related formulae). With this, we can simply update the canonicallivecheck
block and others that reference are automatically updated.As mentioned in the related documentation, these methods should only reference a formula/cask in the same tap, as they will error when a tap isn't already tapped.
One thing that I'll need to update the documentation to mention is that this DSL should only be used when one formula/cask is canonical among those with a duplicate
stable
/url
. If the formulae/casks are all of equal stature (e.g., thebeats
formulae), this feature shouldn't be used.With this in mind, this PR updates formulae that have the same
stable
URL asbinutils
to useformula "binutils"
, so these checks are synced.I've identified the other sets of formulae that can use
formula
and I'll be creating follow-up PRs for those.