about summary refs log tree commit diff
path: root/nix/buildGo/README.md
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-03-31T00·29+0100
committerVincent Ambo <tazjin@google.com>2020-03-31T00·29+0100
commitdb74ffb4b1667a42ac09603d81dc81401f7b85fd (patch)
tree65b85083b8338dbef98359bad63d02e6c519e51d /nix/buildGo/README.md
parenteab4f0e9c09a53fbec11014a62574161b3a48d78 (diff)
fix(nix/buildGo): Remove absolute references to GOROOT from binaries r/606
Setting the GOROOT_FINAL environment variables replaces the absolute
location of the Go standard library sources in the final build
artefacts with a fake location (in this case starting with
go/src/...).

This is despite the documentation for 'trimpath' (in 'go tool
compile') stating that it would affect all source paths: That's only
true for user code!

I figured this out by reading through the implementation of the other
'trimpath' (in 'gob build'):

https://go-review.googlesource.com/c/go/+/173345
Diffstat (limited to 'nix/buildGo/README.md')
0 files changed, 0 insertions, 0 deletions