-
Notifications
You must be signed in to change notification settings - Fork 114
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
Upgrade go.mod files to Go 1.20 #1064
Conversation
Signed-off-by: Calvin Figuereo-Supraner <mail@calvin.page>
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.
Since we aren’t using any features of go 1.20, we had decided to keep it at 1.18
@haydentherapper fair enough, thanks. |
hack/tools/go.mod
Outdated
@@ -1,6 +1,6 @@ | |||
module github.com/sigstore/sigstore/hack/tools | |||
|
|||
go 1.17 | |||
go 1.20 |
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 think here we can bump to go1.20 with no problem
test/fuzz/go.mod
Outdated
@@ -1,6 +1,6 @@ | |||
module github.com/sigstore/sigstore/test/fuzz | |||
|
|||
go 1.18 | |||
go 1.20 |
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.
here as well
go.mod
Outdated
@@ -1,6 +1,6 @@ | |||
module github.com/sigstore/sigstore | |||
|
|||
go 1.18 | |||
go 1.20 |
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.
echoing @haydentherapper and this means the minimum required version to build this project
I would keep this as is for now and maybe we bump to go1.19 in a near future
Signed-off-by: Calvin Figuereo-Supraner <mail@calvin.page>
I reverted the top-level |
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'd prefer we keep the same version of Go for the whole library, otherwise development gets tricky if you only have the older version
sgtm to me as well @haydentherapper |
Signed-off-by: Calvin Figuereo-Supraner <mail@calvin.page>
All |
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.
thank you
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.
Sorry for not approving earlier, looks good, thanks!
Summary
Addresses #1063:
Go 1.18 was released ~a year ago; this PR brings Sigstore onto the latest stable version of Go.
I tested this PR against
make
targets. E2E tests, linting, etc. succeed.Release Note
Upgraded module go directives to Go 1.20.
Documentation
I linked the wrong repo below; I haven't identified any documentation changes needed.
I think this only requires one update:- https://docs.sigstore.dev/cosign/installation/#with-go-119 should readWith Go 1.20
I checked by searching "1.17", "1.18", "1.19", and "1.20" in the sigstore/docs repo.