Home | History | Annotate | Download | only in dist

Lines Matching full:goroot

28 	goroot           string
85 // xinit handles initialization of the various global state, like goroot and goarch.
87 goroot = os.Getenv("GOROOT")
88 if slash == "/" && len(goroot) > 1 || slash == `\` && len(goroot) > 3 {
90 goroot = strings.TrimSuffix(goroot, slash)
92 if goroot == "" {
93 fatal("$GOROOT must be set")
98 goroot_final = goroot
103 b = goroot + slash + "bin"
132 p := pathf("%s/src/all.bash", goroot)
134 fatal("$GOROOT is not set correctly or not exported\n"+
136 "\t%s does not exist", goroot, p)
210 os.Setenv("GOROOT", goroot)
220 tooldir = pathf("%s/pkg/tool/%s_%s", goroot, gohostos, gohostarch)
237 b := run(goroot, CheckExit, "git", "log", "--decorate=full", "--format=format:%d", "master.."+branch)
267 // The $GOROOT/VERSION file takes priority, for distributions
269 path := pathf("%s/VERSION", goroot)
282 // The $GOROOT/VERSION.cache file is a cache to avoid invoking
285 path = pathf("%s/VERSION.cache", goroot)
292 fatal("FAILED: not a Git repo; must put a VERSION file in $GOROOT")
297 branch := chomp(run(goroot, CheckExit, "git", "rev-parse", "--abbrev-ref", "HEAD"))
311 tag += chomp(run(goroot, CheckExit, "git", "log", "-n", "1", "--format=format: +%h %cd", "HEAD"))
340 // The old tools that no longer live in $GOBIN or $GOROOT/bin.
364 // Unreleased directories (relative to $GOROOT) that should
376 if p := pathf("%s/bin", goroot); !isdir(p) {
381 if p := pathf("%s/pkg", goroot); !isdir(p) {
385 p := pathf("%s/pkg/%s_%s", goroot, gohostos, gohostarch)
392 p := pathf("%s/pkg/%s_%s", goroot, goos, goarch)
404 if p := pathf("%s/pkg/obj/libgc.a", goroot); isfile(p) {
405 xremoveall(pathf("%s/pkg/obj", goroot))
407 p = pathf("%s/pkg/obj/%s_%s", goroot, gohostos, gohostarch)
421 xremoveall(pathf("%s/bin/tool", goroot))
425 xremove(pathf("%s/bin/%s", goroot, old))
442 if p := pathf("%s/%s", goroot, dir); isdir(p) {
491 // which is relative to $GOROOT/src.
509 path := pathf("%s/src/%s", goroot, dir)
524 link = []string{"pack", pathf("%s/pkg/%s_%s/%s.a", goroot, goos, goarch, dir)}
607 xmkdirall(pathf("%s/pkg/include", goroot))
609 copyfile(pathf("%s/pkg/include/textflag.h", goroot),
610 pathf("%s/src/runtime/textflag.h", goroot), 0)
611 copyfile(pathf("%s/pkg/include/funcdata.h", goroot),
612 pathf("%s/src/runtime/funcdata.h", goroot), 0)
686 "-I", pathf("%s/pkg/include", goroot),
907 path := pathf("%s/src/%s", goroot, name)
923 path := pathf("%s/src/runtime", goroot)
930 xremoveall(pathf("%s/pkg/obj/%s_%s", goroot, gohostos, gohostarch))
933 xremoveall(pathf("%s/pkg/%s_%s", goroot, gohostos, gohostarch))
934 xremoveall(pathf("%s/pkg/%s_%s", goroot, goos, goarch))
938 xremove(pathf("%s/VERSION.cache", goroot))
980 xprintf(format, "GOROOT", goroot)
1010 if isdir(pathf("%s/src/pkg", goroot)) {
1012 "The Go package sources have moved to $GOROOT/src.\n"+
1017 pathf("%s/src/pkg", goroot))
1125 // there happens to be symlinks in goroot, then the hasprefix test
1127 // goroot/src before the comparison to avoid this problem.
1129 src := pathf("%s/src/", goroot)
1167 xprintf("Installed Go for %s/%s in %s\n", goos, goarch, goroot)
1170 if !xsamefile(goroot_final, goroot) {
1191 if !xsamefile(goroot_final, goroot) {
1194 goroot, goroot_final)