Skip to content

fix(release): Homebrew tap token as exactly {{ .Env.HOMEBREW_TAP_TOKEN }} - #123

Merged
coyl merged 1 commit into
mainfrom
fix/goreleaser-tap-token
Oct 24, 2026
Merged

coyl merged 1 commit into
mainfrom
fix/goreleaser-tap-token

Conversation

@coyl

@coyl coyl commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

v1.3.1 stopped in the Homebrew step too: expected {{ .Env.VAR_NAME }} only (no plain-text or other interpolation). GoReleaser applies a tap token with ApplySingleEnvOnly, which accepts only ^{{\s*\.Env\.NAME\s*}}$ and has no isEnvSet in its function map. That map is where 1.3.0's error came from: isEnvSet itself is not Pro-only, so #121's diagnosis was wrong.

  • token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" for both formulas. It is read only on upload, and skip_upload turns that off when the secret is unset, as in 1.2.0.
  • CHANGELOG: a Fixed entry for 1.3.2, and the 1.3.1 entry corrected (that release did not fix it).

1.3.0 and 1.3.1 have binaries on GitHub but no images, chart or formulas; 1.3.2 follows in its own release PR.

…N }}

GoReleaser accepts a tap token only in that form; the conditional
template stopped 1.3.0, and the index form stopped 1.3.1, both right
after their GitHub releases. The CHANGELOG now says so.
@github-actions

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedOct 24, 2026, 7:23 PM

@coyl
coyl merged commit 3f7dd67 into main Oct 24, 2026
11 checks passed
@coyl coyl mentioned this pull request Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant