mirror of
https://github.com/golang/go
synced 2024-11-21 22:04:39 -07:00
cmd/dist: don't print misleading warning when using GOROOT_FINAL
Fixes #5240. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13546044
This commit is contained in:
parent
fca660892d
commit
f2380a81d7
5
src/cmd/dist/build.c
vendored
5
src/cmd/dist/build.c
vendored
@ -1660,7 +1660,10 @@ cmdbanner(int argc, char **argv)
|
||||
xprintf("Installed Go for %s/%s in %s\n", goos, goarch, goroot);
|
||||
xprintf("Installed commands in %s\n", gobin);
|
||||
|
||||
if(streq(gohostos, "plan9")) {
|
||||
if(!xsamefile(goroot_final, goroot)) {
|
||||
// If the files are to be moved, don't check that gobin
|
||||
// is on PATH; assume they know what they are doing.
|
||||
} else if(streq(gohostos, "plan9")) {
|
||||
// Check that gobin is bound before /bin.
|
||||
readfile(&b, "#c/pid");
|
||||
bsubst(&b, " ", "");
|
||||
|
Loading…
Reference in New Issue
Block a user