goenv icon indicating copy to clipboard operation
goenv copied to clipboard

goenv doesn't respect versions set by aliases anymore

Open pouneh opened this issue 1 year ago • 2 comments

Using a previous version of goenv, I was able to install go 1.21.13 aliased as 1.21. This results in a folder under $GOENV_ROOT/versions/1.21

In that prior version (I think I used 2.1.4), goenv version successfully used 1.21 as the version. Now, it can't find it and insists that the version is set to 1.21.13. Under the hood, yes it's 1.21.13, but now none of my shims work. I get the error message

goenv: 'package_name' command not found

The 'package_name' command exists in these Go versions:
1.21

pouneh avatar Oct 10 '24 07:10 pouneh

Ok thanks for bringing it up. We will look into it

ChronosMasterOfAllTime avatar Nov 04 '24 00:11 ChronosMasterOfAllTime

This is a regression in behavior since 2.2.X after investigating. @reneleonhardt - think you can take this one

ChronosMasterOfAllTime avatar Dec 19 '24 16:12 ChronosMasterOfAllTime