Skip to content
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

Merged
merged 3 commits into from
Apr 20, 2023
Merged

Upgrade go.mod files to Go 1.20 #1064

merged 3 commits into from
Apr 20, 2023

Conversation

clfs
Copy link
Contributor

@clfs clfs commented Mar 31, 2023

Summary

Addresses #1063:

Since PR #962, CI runs as Go 1.20:

GO_VERSION: '1.20'

It may make sense to upgrade the go directive in go.mod files to match:

go 1.18

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 read With Go 1.20

I checked by searching "1.17", "1.18", "1.19", and "1.20" in the sigstore/docs repo.

Signed-off-by: Calvin Figuereo-Supraner <mail@calvin.page>
Copy link
Contributor

@haydentherapper haydentherapper left a 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

@clfs
Copy link
Contributor Author

clfs commented Mar 31, 2023

@haydentherapper fair enough, thanks.

@@ -1,6 +1,6 @@
module github.com/sigstore/sigstore/hack/tools

go 1.17
go 1.20
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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>
@clfs
Copy link
Contributor Author

clfs commented Mar 31, 2023

I reverted the top-level go.mod file to Go 1.18 per @cpanato's feedback.

Copy link
Contributor

@haydentherapper haydentherapper left a 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

@cpanato
Copy link
Member

cpanato commented Apr 5, 2023

sgtm to me as well @haydentherapper
@clfs can you sync all in the same? thanks!

Signed-off-by: Calvin Figuereo-Supraner <mail@calvin.page>
@clfs
Copy link
Contributor Author

clfs commented Apr 7, 2023

All go.mod files now sit on Go 1.18. Sorry for not checking beforehand; I could have made this smoother :)

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@cpanato cpanato enabled auto-merge (squash) April 7, 2023 08:05
Copy link
Contributor

@haydentherapper haydentherapper left a 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!

@cpanato cpanato merged commit c288807 into sigstore:main Apr 20, 2023
@clfs clfs deleted the go120 branch April 27, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants