1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:24:41 -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:
Ian Lance Taylor 2013-09-04 17:02:08 -07:00
parent fca660892d
commit f2380a81d7

View File

@ -1660,7 +1660,10 @@ cmdbanner(int argc, char **argv)
xprintf("Installed Go for %s/%s in %s\n", goos, goarch, goroot); xprintf("Installed Go for %s/%s in %s\n", goos, goarch, goroot);
xprintf("Installed commands in %s\n", gobin); 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. // Check that gobin is bound before /bin.
readfile(&b, "#c/pid"); readfile(&b, "#c/pid");
bsubst(&b, " ", ""); bsubst(&b, " ", "");