New comment by travankor on void-packages repository https://github.com/void-linux/void-packages/pull/20996#issuecomment-614306801 Comment: `-trimpath` should also clear the go buildid: "The golang compiler (gc) does not provide by default the ".note.gnu.build-id" section that GCC does. Though, if the binary being built supports being compiled with gccgo, the gccgo compiler does support and include the .note.gnu.build-id." https://fedoraproject.org/wiki/PackagingDrafts/Go#Build_ID Edit: If `-trimpath` doesn't work, `-ldflags=-buildid=` should