From 4ff4a10b0b197c5525b73a9416ea4d131db36136 Mon Sep 17 00:00:00 2001 From: Cody Lee Date: Wed, 11 Feb 2026 10:54:00 -0600 Subject: [PATCH] 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 --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 25 ++++++++++--------------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ddb7200..90433f2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: '1.21' + go-version: '1.25' cache: true - name: Install cosign diff --git a/.goreleaser.yml b/.goreleaser.yml index 3077b821..b72c1fff 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -157,7 +157,7 @@ changelog: order: 999 # Homebrew Tap -brews: +homebrew_casks: - name: pup repository: owner: DataDog @@ -166,23 +166,18 @@ brews: homepage: https://github.com/DataDog/pup description: "Datadog API CLI - OAuth2 + API key authentication for Datadog APIs" license: Apache-2.0 - directory: Formula commit_author: name: goreleaserbot email: bot@goreleaser.com - commit_msg_template: "chore(formula): update {{ .ProjectName }} to {{ .Tag }}" - install: | - bin.install "pup" - test: | - system "#{bin}/pup", "version" - dependencies: - - name: go - type: optional - extra_install: | - # Generate shell completions - bash_completion.install "completions/pup.bash" => "pup" - zsh_completion.install "completions/pup.zsh" => "_pup" - fish_completion.install "completions/pup.fish" + commit_msg_template: "chore(cask): update {{ .ProjectName }} to {{ .Tag }}" + binaries: + - pup + completions: + bash: "completions/pup.bash" + zsh: "completions/pup.zsh" + fish: "completions/pup.fish" + url: + verified: github.com/DataDog/pup/releases/download # Announce releases announce: