Skip to content

Fix goversioninfo hook after Copilot dropped skip-versioninfo - #50

Merged
davidnewhall merged 1 commit into
mainfrom
ci/fix-goversioninfo-json
Aug 30, 2026
Merged

davidnewhall merged 1 commit into
mainfrom
ci/fix-goversioninfo-json

Conversation

@davidnewhall

Copy link
Copy Markdown
Contributor

Summary

  • The v0.2.1 release failed because Copilot Autofix removed -skip-versioninfo from the GoReleaser hook, so goversioninfo tried to open a default versioninfo.json that was not in the repo.
  • The akavel/rsrc download is goversioninfo's COFF writer library, not the old rsrc CLI.
  • Put --skip-versioninfo=true on the go run line (YAML-safe) and add init/windows/versioninfo.json as a fallback.

Test plan

  • Merge this, then tag v0.2.2 (do not re-run v0.2.1; that tag still points at the broken hook and GitHub already created an empty release).
  • Confirm the release job no longer errors on versioninfo.json.
  • Confirm Windows zips have FileVersion 0.2.2.<REVISION> in Explorer Properties.

Made with Cursor

Copilot Autofix removed -skip-versioninfo as a YAML list item, so the
release hook failed looking for the default JSON. Put the skip flag on
the go run line and ship a zeros JSON as fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
@davidnewhall
davidnewhall merged commit 7826959 into main Aug 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant