mirror of https://github.com/golang/go.git
cmd/go/internal/modload: add error message for go mod init when disabled
This commit is contained in:
parent
964fe4b80f
commit
47a35bd9a3
|
|
@ -99,6 +99,7 @@ func Init() {
|
|||
case "on", "":
|
||||
mustUseModules = true
|
||||
case "off":
|
||||
base.Fatalf("go: modules disabled by GO111MODULE=off; see 'go help modules'")
|
||||
mustUseModules = false
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue