goenv icon indicating copy to clipboard operation
goenv copied to clipboard

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

Open Salamandar opened this issue 1 year ago • 3 comments
trafficstars

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 ?

Salamandar avatar Jun 10 '24 10:06 Salamandar

@reneleonhardt can you look into this?

ChronosMasterOfAllTime avatar Aug 07 '24 14:08 ChronosMasterOfAllTime

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

Salamandar avatar Aug 08 '24 15:08 Salamandar

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

reneleonhardt avatar Aug 09 '24 07:08 reneleonhardt

I think this may be resolved @Salamandar in the latest release. Can you confirm?

ChronosMasterOfAllTime avatar Dec 19 '24 15:12 ChronosMasterOfAllTime

oopsies, did not see your message. As i said, I had found a workaround, but I'll check it out (once i'm back from CCC).

Salamandar avatar Dec 26 '24 22:12 Salamandar

Ok, we can reopen if it's not resolved

ChronosMasterOfAllTime avatar Jan 10 '25 14:01 ChronosMasterOfAllTime