moovweb / gvm

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

gvm use doesn't seem to work anymore with aliases #448

Open carlosonunez opened 1 year ago

carlosonunez commented 1 year ago

This works:

$: gvm install go1.20 --binary && gvm use go1.20
Installing go1.20 from binary source
Now using version go1.20

...but this does not work

$: gvm install go1.20 --name=test-go1.20 --binary && gvm use test-go1.20
Installing test-go1.20 from binary source
ERROR: Failed to use installed version

...even though it used to work.

$: bash -s -- 19365a6 < <(curl -sSL https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
$: source $HOME/.gvm/scripts/gvm                                                                                                                                                              
$: gvm install go1.20 --name=test-go1.20 && gvm use test-go1.20
Installing go1.20 as test-go1.20...
 * Compiling...
test-go1.20 successfully installed!
Now using version test-go1.20
ankitcharolia commented 1 year ago

@carlosonunez kindly try this out. I am using this goenv: https://github.com/ankitcharolia/goenv.