Install latest patch version if major.minor semantic version provided; Add latest command to install#252
Conversation
…. Add latest command to install
detro
left a comment
There was a problem hiding this comment.
This is looking already pretty good: I just left a feed comments that have more to do with long-term maintenance than anything else.
Plus, if I got the regexp right, I think you are intending to match "latest" version to also "beta" and "rc" releases, and I don't think it's a great idea. But I'm not the owner of the repo, so I'd leave it to @syndbg and other maintainers to make the call.
Personally, I think the vast majority of users want a tool that lets them easily switch version of go, while they move across their repositories/projects. Those people are rarely interested in non-stable versions of Go.
Addressed all comments @detro |
|
Awesome! |
|
@syndbg This looks ready to merge; tests all passed |
Should resolve the ask in #121.
Adds:
goenv install latestgoenv install unstableif the semantic version is only supplied with major/minor, find the latest patch version and use that for install.
e.g. if
1.19is supplied and the following versions are available:1.19.2will be installedAdded unit tests to validate functionality