Thanks for the reply. Yes, I want to override the manifest for a particular build of the binary.
I have two modules:
For various unfortunate reasons, repo1 cannot have a checked-in resource.syso file that is consistent. It's possible that repo2 will want to build with multiple distinct syso manifests during a single build.
We can override version information in the binary itself using `-ldflags "-X main.version=$(VERSION)"` in repo2, but I can't figure out a way to do the same with the manifest contents.
Existing workarounds are:
2. We modify
foo.com/repo1/cmd/the-binary in the go mod cache, overwriting the resource.syso file for each build. Nobody like making the mod cache rw.
I was hoping for some equivalent of the ldflags symbol modification for the resource.syso file.