Skip to content

fix: fix release builds for monorepo#85

Merged
rianjs merged 1 commit intomainfrom
fix/82-83-release-builds
Feb 7, 2026
Merged

fix: fix release builds for monorepo#85
rianjs merged 1 commit intomainfrom
fix/82-83-release-builds

Conversation

@rianjs
Copy link
Copy Markdown
Contributor

@rianjs rianjs commented Feb 7, 2026

Summary

  • Remove GoReleaser Pro-only alternative_names field from .goreleaser-jtk.yml — caused immediate YAML parse failure on every jtk release since cbe3071
  • Add post-GoReleaser "Fix release tag" step to both release workflows — retags releases from temp v{version} to {tool}-v{version} so chocolatey/winget can find them
  • Fix Go dependency cache path in both workflows (go.sum is at tools/{tool}/go.sum, not repo root)

All release builds (20+ runs) have been broken since the monorepo consolidation on Feb 2. These three fixes address the three distinct failure modes.

Test plan

  • Merge this PR (commit message starts with fix:, touches workflow files)
  • Verify auto-release creates a tag for jtk
  • Verify GoReleaser step passes (no more alternative_names parse error)
  • Verify "Fix release tag" step retags the release to jtk-v{version}
  • Verify chocolatey/winget jobs can find the release (no more "release not found")
  • After confirming, do stale tag/release cleanup (chore: Clean up stale tags and misnamed releases from broken release builds #84)

Fixes #82
Fixes #83

Three fixes for broken release builds since monorepo consolidation:

1. Remove GoReleaser Pro-only `alternative_names` from jtk cask config
   (caused immediate YAML parse failure on every jtk release)

2. Add post-GoReleaser step to retag releases from temp `v{version}` to
   `{tool}-v{version}` and clean up leaked temp tags. GoReleaser OSS
   doesn't support monorepo tag prefixes, so the workaround creates a
   temp semver tag. But GoReleaser publishes the release under that temp
   tag, and chocolatey/winget look for it under the real prefixed tag.

3. Fix Go dependency cache path (go.sum is at tools/{tool}/go.sum, not
   repo root)

Fixes #82
Fixes #83
@rianjs rianjs merged commit 9d36f1c into main Feb 7, 2026
7 checks passed
@rianjs rianjs deleted the fix/82-83-release-builds branch February 7, 2026 12:54
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.

fix: Release tag mismatch — chocolatey/winget can't find GoReleaser releases fix: Remove GoReleaser Pro-only alternative_names from jtk cask config

1 participant