go-nv / goenv

:blue_car: Like pyenv and rbenv, but for Go.
https://github.com/go-nv/goenv
MIT License
2.05k stars 245 forks source link

Using xxenv-latest for goenv latest --print does not work in 2.2.0 #386

Open Salamandar opened 2 months ago

Salamandar commented 2 months ago

Hi, we were using goenv latest --print 1.20 to get the latest downloadable go version in, for example, 1.20.

Now, the command fails:

$ goenv latest --print 1.20
goenv: no versions installed

git bisect shows that this commit broke this feature: d8de3f4b6a722abacb9da27c970d8308449a5a8d

Now, i don’t know how to get the latest downloadable version. What’s the recommended way ?

ChronosMasterOfAllTime commented 4 weeks ago

@reneleonhardt can you look into this?

Salamandar commented 4 weeks ago

FYI i found a workaround since, by calling directly the goenv-latest plugin instead of calling goenv. See https://github.com/YunoHost/yunohost/blob/9083a5cc3d0685d71d7856439a35ea3dab480263/helpers/helpers.v2.1.d/go#L100

reneleonhardt commented 4 weeks ago

I will look into this tonight, thank you for reporting it!