-
Notifications
You must be signed in to change notification settings - Fork 168
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
chore: Upgrade to Go 1.21, several AWS dependencies #558
Conversation
Ah, the AWS SDK now requires Go 1.21. https://github.com/aws/aws-sdk-go-v2/releases/tag/release-2024-08-15 |
09676b9
to
b636540
Compare
b07ba71
to
69f0690
Compare
go.mod
Outdated
go 1.20 | ||
go 1.21 | ||
|
||
toolchain go1.21.6 |
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.
open question on this - would we not want this to be the latest go version we are building and running with?
In our Dockerfile
, we're using 1.22 still
Line 1 in 58c5ce1
FROM golang:1.22.6-alpine AS build |
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.
Turns out we don't need the toolchain
line. go mod tidy
added it, I suppose based on what I have locally, but go get toolchain@none
(ref) removed it, and everything still seems OK.
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, as for the Dockerfile, dependabot is already on it: https://github.com/segmentio/chamber/pull/557/files
69f0690
to
9d40ec3
Compare
I filed this as an alternative to five other dependabot PRs, and to investigate why they were failing. Once this one is merged, those other PRs will become obsolete.
The root problem discovered here is that the AWS SDK just increased its minimum Go version to 1.21. Chamber may do the same, since it only supports the most recent two Go versions. Although 1.21 is now the third most recent, we'll leave it in since it can at least build.
#559 also groups future aws-sdk-go-v2 upgrades into single PRs, for easier review and more efficient use of GitHub resources.