cmd/go: modules can't install a binary unless there is a go.mod in the current directory #26992
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
When trying to install a binary using
go get
the installation fails whenGO111MODULE=on
and the directory you are in does not contain ago.mod
file.This only fails when
GO111MODULE=on
, otherwise thego get
is successful and binary is installed.What version of Go are you using (
go version
)?go version go1.11rc1 darwin/amd64
GO111MODULE=on
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
v0.12.5
What did you see instead?
The text was updated successfully, but these errors were encountered: