This repository was archived by the owner on Feb 26, 2026. It is now read-only.
Repository navigation
fix: use resource_windows_amd64.syso to avoid ARM64 linker error - #24
Merged
Merged
Conversation
The AMD64 COFF object produced by goversioninfo -64 contains AMD64-specific relocations that the Go linker rejects when cross-compiling for windows/arm64. Renaming the output to resource_windows_amd64.syso tells the Go toolchain to only link it for GOOS=windows GOARCH=amd64, leaving the ARM64 build clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lucasmodrich
added a commit
that referenced
this pull request
Feb 21, 2026
The old generic .syso was superseded by resource_windows_amd64.syso in #24 but wasn't gitignored. Adding it prevents accidentally reintroducing the ARM64 cross-compile failure if go generate ever emits the non-arch-specific filename again. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
resource_windows.syso→resource_windows_amd64.sysoin.goreleaser.ymland.gitignoreRoot Cause
The v2.2.1 release failed with:
goversioninfo -64produces an AMD64 COFF object. Go's linker accepts it forwindows/amd64but rejects the AMD64 relocations when cross-compiling forwindows/arm64.Go's build system uses filename suffixes to scope
.sysofiles:resource_windows_amd64.sysois only linked whenGOOS=windows && GOARCH=amd64, so the ARM64 build proceeds without it (no VERSIONINFO on arm64, but it builds successfully).Test plan
goreleaser checkpasses (verified locally ✓)goversioninfo -64 -o resource_windows_amd64.syso ...compiles without error (verified locally ✓)gwtm_Windows_x86_64.exeProperties → Details shows populated fields🤖 Generated with Claude Code