1
0
mirror of https://github.com/golang/go synced 2024-11-08 00:26:18 -07:00
go/src/cmd
Bryan C. Mills 68170aa677 cmd/go: forbid use of one module with two different paths
If a single module is imported via two different paths (e.g., as itself and as a
replacement for something else), some users may be surprised if the two paths
do not share the same package-level state. Others may be surprised if the two
paths do share state.

Punt on the question for now by rejecting that condition explicitly.

Fixes #26607.

Change-Id: I15c3889f61f8dd4ba5e5c48ca33ad63aeecac04e
Reviewed-on: https://go-review.googlesource.com/126156
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2018-07-31 02:02:51 +00:00
..
addr2line
api
asm cmd/internal/obj/arm64: reject incorrect form of LDP/STP 2018-07-30 15:31:06 +00:00
buildid
cgo cmd/cgo: document that #including source files in subdirectories is a bad idea 2018-07-28 01:14:45 +00:00
compile cmd/compile: set stricter inlining threshold in large functions 2018-07-24 16:11:08 +00:00
cover cmd/cover: invoke go command to find packages 2018-07-10 03:56:55 +00:00
dist cmd/cgo: update JNI's jobject to uintptr check for newer Android NDKs 2018-07-17 16:51:15 +00:00
doc cmd/doc: continue to search when package import fails 2018-06-11 22:09:14 +00:00
fix
go cmd/go: forbid use of one module with two different paths 2018-07-31 02:02:51 +00:00
gofmt
internal cmd/internal/obj/arm64: reject incorrect form of LDP/STP 2018-07-30 15:31:06 +00:00
link cmd/link: added test of availability of gcc 2018-07-27 18:35:13 +00:00
nm cmd/nm: fix TestGoExec on Plan 9 2018-06-11 20:58:09 +00:00
objdump
pack
pprof cmd/pprof: disable readline UI support for TERM=dumb 2018-07-11 01:08:56 +00:00
test2json
trace runtime, sycall/js: add support for callbacks from JavaScript 2018-06-14 21:50:53 +00:00
vendor cmd/vendor/golang.org/x/sys/unix: pick up fixes for TestUtimesNanoAt 2018-07-02 15:39:44 +00:00
vet cmd/vet: if a function modifies its args, it's not a print wrapper 2018-07-23 22:45:16 +00:00