]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.13] cmd/go: don't include package dir in cache key when -trimpath...
authorJay Conrod <jayconrod@google.com>
Fri, 13 Sep 2019 17:58:58 +0000 (13:58 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 1 Oct 2019 18:47:04 +0000 (18:47 +0000)
commit8c8a881688ea386070ee9f6646b9ef7af52ad5ba
treefdff3b6db7bbf2c0401de53ff8916c8f90b0347f
parent0c076032726ac1182d880ddac7abe77a90351f38
[release-branch.go1.13] cmd/go: don't include package dir in cache key when -trimpath is set

The '-trimpath' flag tells 'go build' to trim any paths from the
output files that are tied to the current workspace or toolchain. When
this flag is set, we do not need to include the package directory in
the text hashed to construct the action ID for each package.

Updates #33772
Fixes #34326

Change-Id: I20b902d2f58019709b15864ca79aa0d9255ae707
Reviewed-on: https://go-review.googlesource.com/c/go/+/195318
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
(cherry picked from commit aa680c0c49b55722a72ad3772e590cd2f9af541d)
Reviewed-on: https://go-review.googlesource.com/c/go/+/198259
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/work/exec.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/build_trimpath.txt