]> Cypherpunks repositories - gostls13.git/commit
cmd/go: include module path and version in cache key with -trimpath
authorJay Conrod <jayconrod@google.com>
Thu, 14 Nov 2019 21:17:47 +0000 (16:17 -0500)
committerJay Conrod <jayconrod@google.com>
Thu, 14 Nov 2019 22:55:12 +0000 (22:55 +0000)
commit4de3c7d30b82deb1824d5caf3d1542d6b0cc990b
tree42d9983e9fed49a5472731edf181dbdbb89d1fd0
parentfc3eae52810f8a89ed656b30a98ad7a08104dc33
cmd/go: include module path and version in cache key with -trimpath

When -trimpath is used, packages built from the module cache still
have debug into that contains the module path and version. Only the
module cache directory is stripped.

With this CL, we now include the module path and version in the cache
key for build actions.

Fixes #35412

Change-Id: I1956592d0d86fcea2cca7c5fc8957e83543d6aa2
Reviewed-on: https://go-review.googlesource.com/c/go/+/207317
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/mod/example.com_stack_v1.0.0.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/example.com_stack_v1.0.1.txt [new file with mode: 0644]
src/cmd/go/testdata/script/build_cache_trimpath.txt