-
Notifications
You must be signed in to change notification settings - Fork 31
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
Conversation
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 |
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.
why not 1.22?
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 be fine even with 1.23 😄 - changed to 1.22 (upd: 1.22.0
) now
Signed-off-by: Dmitry Savintsev <[email protected]>
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]>
Currently it is impossible to execute any go commands in the repository such as $ 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?
👍 I changed the directive to |
PR updates the
go
directive togo 1.21
fromgo 1.18
ingo.mod
file. Both direct dependencies contain that version in their respective go.mod files: