-
Notifications
You must be signed in to change notification settings - Fork 201
chore: relax go directive to permit 1.22.x #2323
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| module github.com/sigstore/rekor | ||
|
|
||
| go 1.23.4 | ||
| go 1.22.0 | ||
|
|
||
| toolchain go1.23.4 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will make/force to download Go1.23.4 and then you will not build with go1.22 anymore so i think here we need to be in go1.23.4 and the toolchain request that
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you're possibly misunderstanding here? The
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dnwe thanks for the clarification but my understanding was that it will require updating go when building, and if any downstream projects import rekor they will be required to use the go 1.23 as well and not 1.22 But I think I did not understand that. I think I am totally wrong. This isn't very clear to me.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah for anything importing rekor toolchain is completely ignored, that’s only used if people go install rekor standalone or clone and build the repo (and even then only if their GOTOOLCHAIN contains auto)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From what I've learned, the motivation to set We should set the go.mod version to be as low as possible, based on if we need features from a newer version of Go. This is for libraries that depend on Rekor, which they themselves can choose to build with either the newest Go binary or one that matches the go.mod. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 toolchain does not cascade to imports, go directive can stay 1.22 alongside using a newer toolchain to build. |
||
|
|
||
| require ( | ||
| github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 | ||
|
|
@@ -45,7 +47,7 @@ require ( | |
| google.golang.org/grpc v1.69.4 | ||
| google.golang.org/protobuf v1.36.2 | ||
| gopkg.in/ini.v1 v1.67.0 | ||
| sigs.k8s.io/release-utils v0.9.0 | ||
| sigs.k8s.io/release-utils v0.8.4 | ||
| sigs.k8s.io/yaml v1.4.0 | ||
| ) | ||
|
|
||
|
|
@@ -141,6 +143,7 @@ require ( | |
| github.com/klauspost/compress v1.17.11 // indirect | ||
| github.com/klauspost/pgzip v1.2.6 // indirect | ||
| github.com/kylelemons/godebug v1.1.0 // indirect | ||
| github.com/mattn/go-sqlite3 v1.14.24 // indirect | ||
| github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
| github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect | ||
| github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| module github.com/sigstore/rekor/hack/tools | ||
|
|
||
| go 1.23.2 | ||
| go 1.22.0 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why we are downgrading and not keep in go1.23?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're not downgrading, we are permissively declaring "this go.mod file and the module source code is API compatible with the Go standard library and toolchain from go version 1.22.0 onwards" |
||
|
|
||
| require ( | ||
| github.com/AdamKorcz/go-fuzz-headers-1 v0.0.0-20230329111138-12e09aba5ebd | ||
|
|
@@ -56,13 +56,13 @@ require ( | |
| github.com/toqueteos/webbrowser v1.2.0 // indirect | ||
| go.mongodb.org/mongo-driver v1.14.0 // indirect | ||
| go.uber.org/multierr v1.11.0 // indirect | ||
| golang.org/x/crypto v0.31.0 // indirect | ||
| golang.org/x/crypto v0.32.0 // indirect | ||
| golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect | ||
| golang.org/x/mod v0.17.0 // indirect | ||
| golang.org/x/mod v0.22.0 // indirect | ||
| golang.org/x/sync v0.10.0 // indirect | ||
| golang.org/x/sys v0.28.0 // indirect | ||
| golang.org/x/sys v0.29.0 // indirect | ||
| golang.org/x/text v0.21.0 // indirect | ||
| golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect | ||
| golang.org/x/tools v0.29.0 // indirect | ||
| gopkg.in/ini.v1 v1.67.0 // indirect | ||
| gopkg.in/yaml.v2 v2.4.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.