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

chore: relax go directive to permit 1.22.x #384

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dnwe
Copy link

@dnwe dnwe commented Jan 17, 2025

Summary

Now that sigstore/sigstore#1878 and sigstore/rekor#2323 have both landed in tagged release we can pull those updates into sigstore-go and similarly relax the go.mod go directive here to 1.22.0 as well.

The go directive sets the minimum version of Go required to use this module. There's no need to set this to the latest semver patch version of a given Go release unless the semantics of that version of Go are required to build/test/use the module.

Ref: https://go.dev/ref/mod#go-mod-file-go

Release Note

NONE

Documentation

NONE

Now that sigstore/sigstore#1878 and sigstore/rekor#2323 have both landed
in tagged release we can pull those updates into sigstore-go and
similarly relax the go.mod go directive here to 1.22.0 as well.

The go directive sets the minimum version of Go required to use this
module. There's no need to set this to the latest semver patch version
of a given Go release unless the semantics of that version of Go are
required to build/test/use the module.

Ref: https://go.dev/ref/mod#go-mod-file-go

Signed-off-by: Dominic Evans <[email protected]>
@dnwe dnwe requested a review from a team as a code owner January 17, 2025 00:51
github.com/sigstore/rekor v1.3.7 // indirect
github.com/sigstore/timestamp-authority v1.2.3 // indirect
github.com/sigstore/rekor v1.3.8 // indirect
github.com/sigstore/timestamp-authority v1.2.2 // indirect
Copy link
Member

Choose a reason for hiding this comment

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

Was timestamp-authority downgraded by accident??

Copy link
Author

Choose a reason for hiding this comment

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

No, it’s an indirect dep and has been downgraded elsewhere, presumably because the current version has a higher go directive. It’ll need similar changes to this repo to bring it in-line

Copy link
Author

Choose a reason for hiding this comment

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

Raised sigstore/timestamp-authority#927 for that one

Copy link
Author

Choose a reason for hiding this comment

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

Looking at the version tag comparison sigstore/timestamp-authority@v1.2.2...v1.2.3 it seems to be 95% dependabot dependency bumps and only sigstore/timestamp-authority#644 is a functional change, which is in CLI tooling that doesn't effect the import usage here, so I think it is fine for it to be downgraded in the meantime anyway

Copy link
Contributor

Choose a reason for hiding this comment

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

We can cut a new release of timestamp-authority with the downgrade.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Now that v1.2.4 is available with a similar go1.22.0 we can bump it back up again. Added a commit to bump timestamp-authority

Copy link
Contributor

Choose a reason for hiding this comment

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

Should this go mod file be updated as well?

Copy link
Author

Choose a reason for hiding this comment

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

Yep fixed with new commit to do that and go mod tidy

Also bumped toolchain to latest go1.23.5 as that has been released in the interim too

Now that v1.2.4 is available with a similar go1.22.0 we can bump it back
up again.

Signed-off-by: Dominic Evans <[email protected]>
Also bump toolchain to latest go1.23.5 as that has been released in the interim

Signed-off-by: Dominic Evans <[email protected]>
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