We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dbb0a5 commit 2bb820fCopy full SHA for 2bb820f
src/cmd/go/main.go
@@ -151,7 +151,7 @@ func main() {
151
// This setting is equivalent to not setting GOPATH at all,
152
// which is not what most people want when they do it.
153
if gopath := cfg.BuildContext.GOPATH; filepath.Clean(gopath) == filepath.Clean(cfg.GOROOT) {
154
- fmt.Fprintf(os.Stderr, "warning: GOPATH set to GOROOT (%s) has no effect\n", gopath)
+ fmt.Fprintf(os.Stderr, "warning: both GOPATH and GOROOT are the same directory (%s); see https://go.dev/wiki/InstallTroubleshooting\n", gopath)
155
} else {
156
for _, p := range filepath.SplitList(gopath) {
157
// Some GOPATHs have empty directory elements - ignore them.
0 commit comments