Repository navigation
feat: add Homebrew installation - #302
Merged
Merged
Conversation
Homebrew 7 deprecates the postflight stanza that the install hook renders; install_steps (GoReleaser v2.19+) renders postflight_steps. Publish to gotd/homebrew-tap over SSH with a write deploy key (HOMEBREW_TAP_DEPLOY_KEY) instead of a personal access token.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Carries #273 by @zamai (closed unmerged) onto current
main, authorship kept, plus one follow-up commit.GoReleaser publishes a
tgcask to gotd/homebrew-tap on each release; README documentsbrew install --cask gotd/tap/tg. The cask drops the quarantine attribute from the unsigned binary on macOS.Changes on top of #273:
hooks.post.install→install_steps. The old hook renderspostflight, which Homebrew 7 reports as deprecated on every install. Needs GoReleaser v2.19+ (CI takes the latest v2).gotd/homebrew-tap(HOMEBREW_TAP_DEPLOY_KEY) instead of a personal access token. The key and the secret are already set up.Checked:
goreleaser checkand a snapshot build with v2.20.2:Casks/tg.rbfor macOS and Linux, amd64/arm64, withgithub.com/gotd/cli/releases/download/...URLs.file://):brew styleclean, no deprecation warning, the downloaded archive is quarantined and the installed binary is not,tg --helpruns, uninstall is clean.git push --dry-run).Not checked: GoReleaser's own push to the tap and an install from the real tap; both first run on the next release. Intel macOS was not tested.
Fixes #247