]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/load: trim the " (test)" suffix from ImportStack paths
authorBryan C. Mills <bcmills@google.com>
Fri, 3 Aug 2018 14:38:22 +0000 (10:38 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 3 Aug 2018 15:37:24 +0000 (15:37 +0000)
commitac6d1564795e662b5b930c6b3d86f12351ff83d5
tree1e32250f703ae29c6153e21d59766224a2ca142e
parent490035b0b9dd27e8868ccc5dced45a29e9b21227
cmd/go/internal/load: trim the " (test)" suffix from ImportStack paths

We were passing untrimmed paths to ModPackageModuleInfo, which was then failing
the build because it was asked to resolve an invalid path.

Fixes #26722

Change-Id: I043cc9c26f2188c5e005c0353620d9c55b339df9
Reviewed-on: https://go-review.googlesource.com/127795
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/script/mod_test.txt [new file with mode: 0644]