moovweb / gvm

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

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

Open carlosonunez opened 9 months ago

carlosonunez commented 9 months 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 8 months ago

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