]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow list of absolute directory path
authorRuss Cox <rsc@golang.org>
Mon, 30 Jul 2018 16:59:42 +0000 (12:59 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 1 Aug 2018 00:35:23 +0000 (00:35 +0000)
commitcdac6c22c30cbe75031563ff2859d0314aa8477b
treeb1d4f091bdbf325a6945251900db21322dd963c8
parent30a84b389daf8f6c358f92da056ac19280e3640d
cmd/go: allow list of absolute directory path

Relative directory paths have always worked.
This CL makes absolute directory paths be handled the same way.
(It was an oversight that they were excluded.)

It also fixes the case of naming the directory holding source code
for a package in a module dependency.

Fixes #14177.
Fixes #26550.

Change-Id: I29a0ca2795d35eca773121ee91a97628b56947ce
Reviewed-on: https://go-review.googlesource.com/126715
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/modload/load.go
src/cmd/go/testdata/script/mod_list_dir.txt [new file with mode: 0644]