]> Cypherpunks repositories - gostls13.git/commit
cmd/go: ignore /tmp/go.mod
authorRuss Cox <rsc@golang.org>
Sat, 11 Aug 2018 00:22:21 +0000 (20:22 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 17 Aug 2018 14:35:32 +0000 (14:35 +0000)
commitc265c893de73727b3a54511acf0e3f60593c1fa6
treefc134acedf527352c2f2ecd3aaaeb96c460984a4
parentdea36a6f751783c3c511e2eb0e1de3696daec1f7
cmd/go: ignore /tmp/go.mod

Two different people have created /tmp/go.mod for experimentation
and then had other tests that create fresh work directories
below /tmp fail unexpectedly because the go command finds
/tmp/go.mod. Refuse to use /tmp/go.mod. /tmp/anything/go.mod is fine.

Fixes #26708.

Change-Id: I2a4f61ea63099cff59fbf9e8798e5dcefefd5557
Reviewed-on: https://go-review.googlesource.com/129063
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/mod_enabled.txt