-
Notifications
You must be signed in to change notification settings - Fork 78
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
build!: update to golang 1.23 #733
Conversation
@@ -1,6 +1,8 @@ | |||
module github.com/argoproj/pkg | |||
|
|||
go 1.14 | |||
go 1.21 |
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.
Is it necessary to bump the minimum supported Go version here? I mentioned this in #707 (comment) that CI and local use is one thing, but this actually impacts consumers / is a breaking change
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.
I'm pretty sure go mod tidy
did it for me. I can revert the change if you want.
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.
yea, even running make lint will update the go.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.
CI fails without the go.mod update. I reverted the change
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.
That looks like because the toolchain
config you added below requires Go 1.21+
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.
Well I didn't add it. golang automatically added it.
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.
Oh. Huh that was my first time seeing it and we don't have it in Workflows
I guess your newer version of Go will auto-add it? 🤔
Ironically you can't specify the 1.14 toolchain since that's older than 1.21
I'm fine with upgrading it, but since it will require consumers to have newer Go I'd prefer to avoid it if possible
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.
yeah, my local golang is 1.23 from homebrew.
Signed-off-by: william.vanhevelingen <[email protected]>
e03d879
to
3fbe372
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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. Not going to block on the minimum Go changes above because this is an internal package and older versions are EoL anyway
No description provided.