Replies: 1 comment
-
the tool will soon be able to detect the version for the tools from eg go.mod for go and use it to fetch a proper version. see open issues..
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I run
install-tool golang 1.22
I get the following:What I would hope to get instead: Installing the latest available patch version of 1.22 (as of today that would be 1.22.6).
This feature could be widened to support installing the latest patch version of the latest minor version (
install-tool golang 1
would currently install 1.22.6 but soon 1.23.0 instead). Leaving the version out would give you the latest available (as already supported for node). It could further be expanded to support arbitrary semver constraints like>=1 <2
, but I'm not sure how useful that would be.Obviously there is no reason to limit this to the
golang
tool.install-tool node
for example will give you the latest available (LTS I guess) or you can useinstall-tool node x.y.z
to get an exact version. But there is no easy way to get the latest patch forv21
.See also #3016. I'm willing to contribute this again in TypeScript.
Also, let me know if you want help with the conversion of the golang tool to TypeScript.
Use Case
We use this in renovate
postUpgradeTasks
to re-run the protobuf compiler when it is updated. And usegrep '^go ' go.mod | cut -d' ' -f2
to extract the version (major.minor
format).Everywhere else (e.g. in our Dockerfiles) we use the latest available patch of golang and would like to keep that consistent.
Beta Was this translation helpful? Give feedback.
All reactions