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

update go to 1.21 in go.mod #418

Merged
merged 3 commits into from
Oct 22, 2024
Merged

update go to 1.21 in go.mod #418

merged 3 commits into from
Oct 22, 2024

Conversation

dmitris
Copy link
Contributor

@dmitris dmitris commented Oct 18, 2024

PR updates the go directive to go 1.21 from go 1.18 in go.mod file. Both direct dependencies contain that version in their respective go.mod files:

Both direct dependencies specify `go 1.21` in their go.mod files.

Signed-off-by: Dmitry Savintsev <[email protected]>
go.mod Outdated
@@ -1,6 +1,6 @@
module github.com/sigstore/protobuf-specs

go 1.18
go 1.21
Copy link
Member

Choose a reason for hiding this comment

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

why not 1.22?

Copy link
Contributor Author

@dmitris dmitris Oct 21, 2024

Choose a reason for hiding this comment

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

I'd be fine even with 1.23 😄 - changed to 1.22 (upd: 1.22.0) now

Signed-off-by: Dmitry Savintsev <[email protected]>
@kommendorkapten
Copy link
Member

What problem are you trying to solve with this? The go version directive is a bit confusing, but IIRC it refers to the minimum version need to to compile the module.

if we are bumping the version to > 1.22, we must set the patch version too, as it won't work otherwise (i.e. 1.22.0).

Signed-off-by: Dmitry Savintsev <[email protected]>
@dmitris
Copy link
Contributor Author

dmitris commented Oct 22, 2024

What problem are you trying to solve with this? The go version directive is a bit confusing, but IIRC it refers to the minimum version need to to compile the module.

Currently it is impossible to execute any go commands in the repository such as go list ./...:

$ go mod tidy && git diff
diff --git a/go.mod b/go.mod
index 0ac4c88..b66c03f 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,8 @@
 module github.com/sigstore/protobuf-specs

-go 1.18
+go 1.21
+
+toolchain go1.23.2

 require (
        google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e

I'm surprised the CI doesn't have any complaints - maybe we should add some check that would reveal problems like this one?

if we are bumping the version to > 1.22, we must set the patch version too, as it won't work otherwise (i.e. 1.22.0).

👍 I changed the directive to 1.22.0.

@kommendorkapten kommendorkapten merged commit cd05d79 into sigstore:main Oct 22, 2024
1 check passed
@dmitris dmitris deleted the patch-1 branch October 22, 2024 11:47
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.

3 participants