andrewkroh / gvm

Go Version Manager (written in Go for cross-platform usability)
Apache License 2.0
186 stars 24 forks source link

gvm available - Refresh source repo and always report binary versions #39

Closed andrewkroh closed 2 years ago

andrewkroh commented 2 years ago

It looks like gvm available does not refresh the git repo when source is present. So there are two code paths:

So there is room for improvement here in the case of source code being present. It should do a better job at merging the results of the Go repo git tags and the available binary versions from the Go website. And it should automatically refresh the git repo if it's more than a day old (that's how other code paths behave that use the source repo).

Relates https://github.com/andrewkroh/gvm/issues/38#issuecomment-960734701