Skip to content

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

Merged
codysoyland merged 4 commits intosigstore:mainfrom
dnwe:go-directive
Jan 24, 2025
Merged

chore: relax go directive to permit 1.22.x#384
codysoyland merged 4 commits intosigstore:mainfrom
dnwe:go-directive

Conversation

@dnwe
Copy link
Copy Markdown
Contributor

@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

@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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
Contributor 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

Hayden-IO
Hayden-IO previously approved these changes Jan 22, 2025
dnwe added 3 commits January 24, 2025 08:51
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 <dominic.evans@uk.ibm.com>
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 <dominic.evans@uk.ibm.com>
Also bump toolchain to latest go1.23.5 as that has been released in the interim

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
This reverts sigstore#388 to maintain go1.22.0 compatibility

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
@dnwe
Copy link
Copy Markdown
Contributor Author

dnwe commented Jan 24, 2025

@haydentherapper please can you re-review, I had to add another commit to rollback #388 which was just merged to master and required 1.23

@codysoyland
Copy link
Copy Markdown
Member

Thanks @dnwe!

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