diff --git a/src/cmd/go/internal/cfg/cfg.go b/src/cmd/go/internal/cfg/cfg.go index 325e7d50af..31c1fb84ef 100644 --- a/src/cmd/go/internal/cfg/cfg.go +++ b/src/cmd/go/internal/cfg/cfg.go @@ -73,7 +73,6 @@ var ( Goarch = BuildContext.GOARCH Goos = BuildContext.GOOS ExeSuffix string - Gopath = filepath.SplitList(BuildContext.GOPATH) // ModulesEnabled specifies whether the go command is running // in module-aware mode (as opposed to GOPATH mode).