Repository navigation
Publish a Homebrew cask to duneanalytics/homebrew-tap - #64
Open
norbertdurcansk wants to merge 1 commit into
Open
norbertdurcansk wants to merge 1 commit into
norbertdurcansk wants to merge 1 commit into
Conversation
GoReleaser now generates the dune-cli cask on each release and opens a PR against the tap's main branch, which requires PRs. The cask clears the macOS quarantine bit since the binary is not notarized. Publishing is skipped until the HOMEBREW_TAP_GITHUB_TOKEN secret exists. Towards GRO-1380 Amp-Thread-ID: https://ampcode.com/threads/T-01a1ef85-b72d-741e-af78-85fff2e3f20d Co-authored-by: Amp <amp@ampcode.com>
Author
|
@claude auto-approve |
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.
What & why
Releases now publish a Homebrew cask, so users can run
brew install duneanalytics/tap/dune-clion macOS and Linux.GoReleaser opens a PR against the tap instead of pushing, because the tap's
mainrequires PRs (SOC 2 ruleset).The cask is skipped until the
HOMEBREW_TAP_GITHUB_TOKENsecret exists, so releases keep working until then.Nix support follows in a separate PR.
Architecture
.goreleaser.yml: newhomebrew_casksentrydune-cli(binarydune). It pushes branchdune-cli-<version>toduneanalytics/homebrew-tapand opens a PR intomain. A postflight step removescom.apple.quarantineon macOS, because the binary is not signed or notarized (this is the approach the GoReleaser docs recommend).skip_uploadistruewhile the token is unset andautoonce it is set, so prereleases are never published..github/workflows/release.yml: passesHOMEBREW_TAP_GITHUB_TOKENto GoReleaser..gitignore:/dist/.goreleaser check(v2.20.2, no deprecations) andgoreleaser release --snapshot --clean. I installed the generated cask from a local tap with Homebrew 7.0.14 on macOS arm64, served over HTTP so the download is quarantined. Without the postflight step, the installed binary keepscom.apple.quarantine; with it, the flag is removed anddune --versionruns. I also installed it in ahomebrew/brewLinux container (Homebrew 7.0.14), where it ran.HOMEBREW_TAP_GITHUB_TOKENrepo secret: a fine-grained token or GitHub App token with Contents and Pull requests write access onduneanalytics/homebrew-tap.Agent context
goreleaser check && goreleaser release --snapshot --clean && cat dist/homebrew/Casks/dune-cli.rbduneanalytics/tap/dune-cli) trusts that cask. A short-name install needsbrew trust.Towards GRO-1380