gh: enable --HEAD install and upgrade notifier#70784
gh: enable --HEAD install and upgrade notifier#70784mislav wants to merge 1 commit intoHomebrew:masterfrom
--HEAD install and upgrade notifier#70784Conversation
--head install and upgrade notifier--HEAD install and upgrade notifier
88e2bf9 to
e3f357a
Compare
Formula/gh.rb
Outdated
There was a problem hiding this comment.
| revision 1 |
We need the revision so that existing users get a version with this update.
There was a problem hiding this comment.
Thank you, but I purposefully left the revision out from my PR, since it's not needed. The feature this enables is only present in the HEAD of the cli/cli repo and is slated for the next release. So I do not want the bottles for gh v1.5.0 to be rebuilt.
There was a problem hiding this comment.
So the new feature only works on HEAD builds? Seems like you should wrap the changes in an if build.head? block first, though I guess it's fine if they're a no-op for source builds from the current stable release.
If we're leaving out the revision, then let's be consistent with other formulae:
There was a problem hiding this comment.
@carlocab I have pushed the removal of the blank line.
The new feature will work for all future stable releases. That's why I don't want to add the if build.head? condition. It's just that the current bottles shouldn't be rebuilt.
|
Probably my comment is about the feature itself than this PR:
|
This does seem more reliable. The current mechanism seems to assume the new version will be available in Homebrew no later than 24 hours after a new release is tagged. While that is almost always true, it'd be nice to never have to be concerned about the situation where |
I understand, but in our experience, a lot of Homebrew users don't get the auto-updating behavior on We wanted to give users copy-pasteable instructions that are guaranteed to work.
For sure, this is a good suggestion, but I feel better if |
e3f357a to
5fe131e
Compare
|
🤖 A scheduled task has triggered a merge. |
This enables the following upgrade notifier when
ghnotices that it is out of date:Ref. cli/cli#2929
As a bonus, this also enables
brew install gh --HEAD.