Skip to content

Commit 4ff4a10

Browse files
fix(release): update Go version to 1.25 and migrate to homebrew_casks
Two critical fixes for the release workflow: 1. Updated Go version from 1.21 to 1.25 in release.yml - Required for building with latest Go features and dependencies 2. Migrated from deprecated 'brews' to 'homebrew_casks' in .goreleaser.yml - 'brews' was deprecated in GoReleaser v2.10 - Updated configuration structure: - Removed 'directory: Formula' field - Changed to modern 'binaries' format - Simplified completions configuration - Added 'url.verified' field for audit compliance - Updated commit message template from formula to cask Fixes: - Release workflow failures from deprecated configuration - Go version compatibility issues Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 83fefcf commit 4ff4a10

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Go
2626
uses: actions/setup-go@v6
2727
with:
28-
go-version: '1.21'
28+
go-version: '1.25'
2929
cache: true
3030

3131
- name: Install cosign

.goreleaser.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ changelog:
157157
order: 999
158158

159159
# Homebrew Tap
160-
brews:
160+
homebrew_casks:
161161
- name: pup
162162
repository:
163163
owner: DataDog
@@ -166,23 +166,18 @@ brews:
166166
homepage: https://github.com/DataDog/pup
167167
description: "Datadog API CLI - OAuth2 + API key authentication for Datadog APIs"
168168
license: Apache-2.0
169-
directory: Formula
170169
commit_author:
171170
name: goreleaserbot
172171
email: bot@goreleaser.com
173-
commit_msg_template: "chore(formula): update {{ .ProjectName }} to {{ .Tag }}"
174-
install: |
175-
bin.install "pup"
176-
test: |
177-
system "#{bin}/pup", "version"
178-
dependencies:
179-
- name: go
180-
type: optional
181-
extra_install: |
182-
# Generate shell completions
183-
bash_completion.install "completions/pup.bash" => "pup"
184-
zsh_completion.install "completions/pup.zsh" => "_pup"
185-
fish_completion.install "completions/pup.fish"
172+
commit_msg_template: "chore(cask): update {{ .ProjectName }} to {{ .Tag }}"
173+
binaries:
174+
- pup
175+
completions:
176+
bash: "completions/pup.bash"
177+
zsh: "completions/pup.zsh"
178+
fish: "completions/pup.fish"
179+
url:
180+
verified: github.com/DataDog/pup/releases/download
186181

187182
# Announce releases
188183
announce:

0 commit comments

Comments
 (0)