Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Salamandar opened this issue Jun 10, 2024 · 5 comments
Open

Comments

@Salamandar
Copy link
Contributor

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: d8de3f4

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

@ChronosMasterOfAllTime
Copy link
Contributor

@reneleonhardt can you look into this?

@Salamandar
Copy link
Contributor Author

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
Copy link
Contributor

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

@ChronosMasterOfAllTime
Copy link
Contributor

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

@Salamandar
Copy link
Contributor Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants