-
Notifications
You must be signed in to change notification settings - Fork 19
build(deps): set go.mod to 1.24 and retract v2.1.4 #37
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
Conversation
.go-version
Outdated
| @@ -1 +1 @@ | |||
| 1.25.1 | |||
| 1.24.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be using the oldest 1.24 or the current 1.24 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need to match either the go directive or the toolchain directive in the mod file. Otherwise linter will protest that we need to tidy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all this is to say: we should be setting go in go.mod and .go-version here to the same exact version. Or have a toolchain directive in the mod file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I'm concerned about here is that there's going to be a CVE in Go and someone is going to end up rev'ing the minimum version again instead of fixing the toolchain itself. So while I think the linter is frankly just wrong, if we need to set a toolchain directive to shut it up, that seems fine to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tgross
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR sets Go mod version for the package to 1.24 and retracts package v2.1.4 which set an unnecessarily high requirement for Go to be 1.25.1.