mirror of
https://github.com/golang/go
synced 2024-11-22 05:44:41 -07:00
parent
6dbf7aa129
commit
4bb0271a12
@ -92,7 +92,7 @@ var fsTree RWValue; // *Directory tree of packages, updated with each sync
|
||||
func init() {
|
||||
goroot = os.Getenv("GOROOT");
|
||||
if goroot == "" {
|
||||
goroot = "/home/r/go-release/go";
|
||||
goroot = pathutil.Join(os.Getenv("HOME"), "go");
|
||||
}
|
||||
flag.StringVar(&goroot, "goroot", goroot, "Go root directory");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user