cmd/go: executables built with
-trimpath are not reproducible with development Go toolchains unless
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
The build IDs in unversioned copies of Go include a hash of the compiler binary to incorporate the semantics of the compiler somehow (the version string is assumed good enough in a versioned copy, although that's only true if you don't modify the files in your versioned checkout), so this is working as expected.
Shouldn't, no. But maybe on 1.20.3 the build-ID depends on the
Sure, let me find a working commit first :)
FWIW, creating a VERSION file that says 'go1.999' and then doing
is known to produce the same binaries on Linux and Windows, because that's a subset of what we were testing in #58884, which no one was able to break. It's possible something has broken since then, but unlikely.
I believe that if you:
You should get identical output on any machine you run this on. The output is a hash of the overall distribution archive, which includes test2json as well as all the other binaries.
Can I leave out the 2nd time line?