diff options
author | Bryan C. Mills <bcmills@google.com> | 2019-05-10 11:21:51 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2019-05-14 14:28:29 +0000 |
commit | 5b4ea626e00e998eb9c72b9d80f1c167e72da569 (patch) | |
tree | 4f65e0f54390cc83eacdbf9ba5632853fb7de216 /src/cmd/go/internal/get/get.go | |
parent | 45d74aad539c645d4e50a405f55ca46811dd70d6 (diff) | |
download | go-5b4ea626e00e998eb9c72b9d80f1c167e72da569.tar.gz go-5b4ea626e00e998eb9c72b9d80f1c167e72da569.zip |
cmd/go: default to GO111MODULE=auto and make it trigger in GOPATH/src
Fixes #31857
Change-Id: Ib0b791376acb7ee1cdc163f808b8ecf77dbdaf06
Reviewed-on: https://go-review.googlesource.com/c/go/+/176580
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/go/internal/get/get.go')
-rw-r--r-- | src/cmd/go/internal/get/get.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/go/internal/get/get.go b/src/cmd/go/internal/get/get.go index c70013c3f5..e4945fe144 100644 --- a/src/cmd/go/internal/get/get.go +++ b/src/cmd/go/internal/get/get.go @@ -118,11 +118,6 @@ func runGet(cmd *base.Command, args []string) { // Should not happen: main.go should install the separate module-enabled get code. base.Fatalf("go get: modules not implemented") } - if cfg.GoModInGOPATH != "" { - // Warn about not using modules with GO111MODULE=auto when go.mod exists. - // To silence the warning, users can set GO111MODULE=off. - fmt.Fprintf(os.Stderr, "go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;\n\tignoring %s;\n\tsee 'go help modules'\n", base.ShortPath(cfg.GoModInGOPATH)) - } work.BuildInit() |