mirror of
https://github.com/golang/go
synced 2024-11-20 04:54:44 -07:00
fix bug in $GOROOT handling: error calling Getenv.
R=gri OCL=31047 CL=31047
This commit is contained in:
parent
22b93dfb5c
commit
519a70da54
@ -99,7 +99,7 @@ var (
|
||||
|
||||
func init() {
|
||||
goroot = os.Getenv("GOROOT");
|
||||
if goroot != "" {
|
||||
if goroot == "" {
|
||||
goroot = "/home/r/go-release/go";
|
||||
}
|
||||
flag.StringVar(&goroot, "goroot", goroot, "Go root directory");
|
||||
|
Loading…
Reference in New Issue
Block a user