Skip to content

fix(clustertool): generate build metadata outside GoReleaser dist - #506

Merged
Boemeltrein merged 1 commit into
trueforge-org:mainfrom
Boemeltrein:fix/build-info-temp-dir
Sep 20, 2026
Merged

Boemeltrein merged 1 commit into
trueforge-org:mainfrom
Boemeltrein:fix/build-info-temp-dir

Conversation

@Boemeltrein

Copy link
Copy Markdown
Member

Description

Fix the release workflow failing with:
dist is not empty, remove it before running goreleaser or use the --clean flag

The build-info hook populated dist before GoReleaser's distribution-directory check. Generate the metadata under RUNNER_TEMP/clustertool-build-info instead and update the archive source path accordingly.

⚙️ Type of change

  • 🆕 New feature
  • 🐛 Bugfix
  • 🔃 Chart Updates/Changes included with clustertool
  • 🔃 Refactor (internal changes, no functional impact)
  • ⚠️ Breaking change

🧪 How Has This Been Tested?

  • Validated the configuration with GoReleaser 2.18.2, matching CI.
  • Reproduced the original failure locally.
  • Successfully ran the corrected packaging configuration with a minimal Go test program, without publishing.
  • Inspected all seven archives, including Windows ZIPs and the universal macOS archive.
  • Verified each archive contains the executable, LICENSE and BUILD.txt with the expected version, commit, platform and UTC timestamp.
  • Passed git diff --check.

A full ClusterTool release build was not run locally.

📃 Notes:

Only the metadata output and archive source paths in .goreleaser.yaml change. The shared script and PR test-build workflow remain unchanged.

✔️ Checklist:

  • ⚖️ Followed project style and contribution guidelines
  • 👀 Self-reviewed my changes
  • 🧪 Documented testing steps
  • 🏷️ PR title follows convention: fix(clustertool):

@Boemeltrein
Boemeltrein merged commit 01ef5d7 into trueforge-org:main Sep 20, 2026
9 of 10 checks passed
@Boemeltrein
Boemeltrein deleted the fix/build-info-temp-dir branch September 28, 2026 07:59
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