]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't include package dir in cache key when -trimpath is set
authorJay Conrod <jayconrod@google.com>
Fri, 13 Sep 2019 17:58:58 +0000 (13:58 -0400)
committerJay Conrod <jayconrod@google.com>
Mon, 16 Sep 2019 16:25:41 +0000 (16:25 +0000)
commitaa680c0c49b55722a72ad3772e590cd2f9af541d
tree3c47dcd237c9b3e347a5a65d57d54ad5f9fed172
parent606019cb4b1c8fb57e5a83747ee0aff1054291d8
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.

Fixes #33772

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>
src/cmd/go/internal/work/exec.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/build_trimpath.txt