cmd/go: build_trimpath test doesn't correctly test executable reproducibility #35435
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputObserved this on both darwin and windows.
What did you do?
I saw this when expanding src/cmd/go/testdata/script/build_trimpath.txt. In short, this test builds a binary in one directory, copies the source and go.mod file to another directory, builds the binary again there, and compares the two executable files. When
-trimpath
is used, they should be identical.Here's the modified version of that test I was using.
What did you expect to see?
Test should pass.
What did you see instead?
The executable files were not identical. They are the same size and the differences don't seem to be in file paths or build ids. So this doesn't seem to be an exact duplicate of #33772.
The text was updated successfully, but these errors were encountered: