-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Fix bad livecheck block url symbols #195414
Conversation
`:url` is only used in casks and this should be `:stable` in formulae.
`:url` is only used in casks and this should be `:stable` in formulae.
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.
Seems weird that these passed the brew livecheck
test run by test-bot
anyway.
@carlocab livecheck doesn't error if a When a bad symbol is provided, likecheck ignores it and goes through the checkable URLS in the formula (the default behavior). The It only becomes apparent if the check fails or you use |
That doesn't seem like the right behaviour. |
I agree. I should have been clear that it's not intentional behavior and only happens because we forgot to account for this error condition. I'll have a brew PR up once I finish testing (edit: Homebrew/brew#18622). |
HOMEBREW_NO_INSTALL_FROM_API=1 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 doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?The
livecheck
blocks in this PR useurl :url
but:url
should only be used in casks and this should beurl :stable
instead.For what it's worth, I'm creating a RuboCop for this, so bad symbol references should be surfaced in the future. I'm currently working on refactoring the livecheck RuboCop setup, so the cops will also apply to
livecheck
blocks in resources and casks. It's most of the way done (it works for formulae/resources and most casks) but I have to account for some unusual cask setups before I create a PR.