moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
10.33k stars 540 forks source link

gvm install go1.5 fails - looks at 1.4 directory? #162

Open tejasmanohar opened 9 years ago

tejasmanohar commented 9 years ago

Why is the installation of go 1.5 looking a directory that references a 1.4 installation? I just installed gvm and have no go installations yet.

$ gvm install go1.5
Downloading Go source...
Installing go1.5...
 * Compiling...
ERROR: Failed to compile. Check the logs at /Users/tejas/.gvm/logs/go-go1.5-compile.log
ERROR: Failed to use installed version
$ cat /Users/tejas/.gvm/logs/go-go1.5-compile.log
##### Building Go bootstrap tool.
cmd/dist
ERROR: Cannot find /Users/tejas/go1.4/bin/go.
Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.
./make.bash: line 121: /Users/tejas/go1.4/bin/go: No such file or directory

Do I need to do something w/ $GOROOT_BOOTSTRAP?

fromkeith commented 9 years ago

I've found the following workaround works for me:

gvm install go1.4
gvm use go1.4
gvm install go1.5
satoshi75nakamoto commented 9 years ago

Thanks @fromkeith that workaround worked for me as well.

leanhthang commented 8 years ago

it's bad feature, in Ruby on Rails not need set version oldest to install later vesions.