]> Cypherpunks repositories - gostls13.git/commit
cmd/go: in module mode, populate PackagePublic.Root with the module root
authorBryan C. Mills <bcmills@google.com>
Tue, 11 Dec 2018 22:13:50 +0000 (17:13 -0500)
committerBryan C. Mills <bcmills@google.com>
Thu, 18 Jul 2019 19:06:47 +0000 (19:06 +0000)
commit4a2d3d06873559df2b6933f260dc8f75c54c9771
tree4a323df3ac68b4ca07c654518c4a37adf3f2b4d1
parent5ba15db77f7ba92884b9a2fce21c9938c233967f
cmd/go: in module mode, populate PackagePublic.Root with the module root

'go test' uses the Root field to determine the set of files that
invalidate test results, and there is no other sensible meaning of
“root” for code within a module.

Fixes #29111

Change-Id: Icf1be90a26d22665613e42cb968087b63c36e74c
Reviewed-on: https://go-review.googlesource.com/c/go/+/154100
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/script/build_cache_output.txt
src/cmd/go/testdata/script/mod_test_cached.txt [new file with mode: 0644]