-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
utils/shared_audits.rb: check version :all for non-cask formulae in the prerelease allowlist #9427
Conversation
Review period will end on 2020-12-08 at 00:00:00 UTC. |
@@ -59,7 +60,8 @@ def github_release(user, repo, tag, formula: nil, cask: nil) | |||
end | |||
|
|||
if release["prerelease"] | |||
return if formula && GITHUB_PRERELEASE_ALLOWLIST[formula.name] == formula.version | |||
return if formula && (GITHUB_PRERELEASE_ALLOWLIST[formula.name] == formula.version || | |||
GITHUB_PRERELEASE_ALLOWLIST[formula.name] == :all) |
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.
This should probably also fail if it's not a pre-release anymore but still in the GITHUB_PRERELEASE_ALLOWLIST
like above.
c5c3b9d
to
cd12a17
Compare
@@ -46,6 +46,7 @@ def github_release_data(user, repo, tag) | |||
"telegram-cli" => "1.3.1", | |||
"toggl-track" => :all, | |||
"volta" => "0.8.6", | |||
"gron" => :all, |
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 to be picky, but would you mind putting this in alphabetical order? I regularly add Casks to this list, and having them in alphabetical order really helps. Thanks.
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.
Sure, no problem!
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.
Thank you @Moisan.
…he prerelease allowlist
…n the GITHUB_PRERELEASE_ALLOWLIST
cd12a17
to
8d505c4
Compare
Review period ended. |
@Moisan Can you rebase this and shout if/when it's ready? Thanks! |
I don't think this is needed anymore. The logic was modified in #10087 and the lists were migrated to their respective taps. Formulae should not have the ability to specify {
...
"gron": "all",
...
} |
Perfect, I'll close this PR and open one to add gron to the pre-release list in homebrew-core. |
brew style
with your changes locally?brew tests
with your changes locally?brew man
locally and committed any changes?All
gron
releases are pre-releases: https://github.com/tomnomnom/gron/releasesWhile adding this formula to the prerelease allowlist, I spotted that
:all
version was only used for casks.