BUILD: GoReleaser integration for Homebrew Cask#3734
BUILD: GoReleaser integration for Homebrew Cask#3734cafferata wants to merge 7 commits intoStackExchange:mainfrom
Conversation
|
This PR is kept in draft state for now. Work here depends on the outcome of the migration path within Homebrew. |
|
@cafferata |
…ld not be used anymore, check https://goreleaser.com/deprecations#homebrew_casksconflictsformula for more info. > "It was a no-op before, and is now removed from Homebrew": Homebrew/brew#20499.
2b56814 to
f61e020
Compare
|
Hi @tlimoncelli! Yes, this is still being worked on. I just reviewed and finalized the configuration. To give some background: the reason this PR stayed in draft was because there was a lot of uncertainty around the migration path within Homebrew. The short version:
After merging this PR, GoReleaser will automatically publish the prebuilt binary as a Homebrew cask to Action needed from you: Please configure a Once the secret is in place, I'll mark this PR as ready for (re)review. goreleaser build --snapshot --clean • skipping validate...
• cleaning distribution directory
• loading environment variables
• getting and validating git state
• git state commit=f61e020501b53cb5b042460cd8d6daf72d99e08d branch=build/goreleaser-homebrew current_tag=v4.33.1 previous_tag=v4.33.0 dirty=true
• pipe skipped or partially skipped reason=disabled during snapshot mode
• parsing tag
• setting defaults
• dockers and docker_manifests are being phased out and will eventually be replaced by dockers_v2, check https://goreleaser.com/deprecations#dockers for more info
• dockers and docker_manifests are being phased out and will eventually be replaced by dockers_v2, check https://goreleaser.com/deprecations#dockers for more info
• snapshotting
• building snapshot... version=4.33.2-next
• running before hooks
• running hook=go fmt ./...
• running hook=go mod tidy
• running hook=go generate ./...
• ensuring distribution directory
• setting up metadata
• writing release metadata
• loading go mod information
• build prerequisites
• building binaries
• building binary=dist/build_darwin_amd64_v1/dnscontrol
• building binary=dist/build_windows_amd64_v1/dnscontrol.exe
• building binary=dist/build_darwin_arm64_v8.0/dnscontrol
• building binary=dist/build_linux_amd64_v1/dnscontrol
• building binary=dist/build_freebsd_amd64_v1/dnscontrol
• building binary=dist/build_windows_arm64_v8.0/dnscontrol.exe
• building binary=dist/build_freebsd_arm64_v8.0/dnscontrol
• building binary=dist/build_linux_arm64_v8.0/dnscontrol
• universal binaries
• creating from 2 binaries id=build binary=dist/build_darwin_all/dnscontrol
• writing artifacts metadata
• build succeeded after 9s
• thanks for using GoReleaser! |
|
Wow! Thank you for working out all that! Sounds rather complicated. The PAT has been created as specified. It has It expires on Sat, Feb 6 2027. I've created a google calendar entry for Jan 18, 2027 to remind us to rotate the key. It should be ready to go. Thanks for looking into this! I've become a big fan of Homebrew recently. |
No worries, it's not as complicated as it looks, mostly just a lot of reading along and connecting the dots.
Great, thanks! I've marked the pull request as ready for review.
Good thinking! I've accepted the calendar invite.
That's great to hear! What got you interested in Homebrew recently? |
GoReleaser can generate and publish (since v2.10) a Homebrew Cask into a repository (Tap), reducing the delay for Brew users to receive the latest release.
After this initial setup, SLSA Provenance can be revisited:
See also:
These tasks are currently blocked, pending the creation of the
StackExchange/homebrew-taprepository by @tlimoncelli, as discussed today in #3674.