]> Cypherpunks repositories - gostls13.git/commit
cmd/go: report 'go get' errors for absolute paths outside module root
authorJay Conrod <jayconrod@google.com>
Wed, 1 Apr 2020 17:08:41 +0000 (13:08 -0400)
committerJay Conrod <jayconrod@google.com>
Mon, 6 Apr 2020 15:59:41 +0000 (15:59 +0000)
commit44ae94751ab35232f72845c7b885c5338220bca5
tree1c3dd93a1afaed8248bbbf25ecaf9be92a46c251
parent98534812bdcdd22b13469ea587e310187876b7d2
cmd/go: report 'go get' errors for absolute paths outside module root

'go get' will now check absolute paths without wildcards the same way
it checks relative paths. modload.DirImportPath may be used for both
without converting path separators.

Fixes #38038

Change-Id: I453299898ece58f3b5002a5e80021d6bfe815fdd
Reviewed-on: https://go-review.googlesource.com/c/go/+/226857
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modget/get.go
src/cmd/go/testdata/script/mod_get_main.txt