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 #1640

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

dnwe
Copy link
Contributor

@dnwe dnwe commented Jan 9, 2025

Setting this to 1.22.7 requires all consumers to be building with the 1.22.7 or newer release of Go 1.22 and to update their own go.mod accordingly — this seems unnecessarily restrictive for a library module, particularly as the code itself doesn't currently use any modern language constructs and builds fine even with older Go versions.

Instead set the go directive to 1.22.0 and use the toolchain directive to recommend the latest 1.22.x when building locally.

Note: this also upgrade google/trillian to v1.7.1 in order to pull in google/trillian#3713 which is what allows the go directive to be relaxed here.

Checklist

Setting this to 1.22.7 requires all consumers to be building with the
1.22.7 or newer release of Go 1.22 and to update their own go.mod
accordingly — this seems unnecessarily restrictive for a library module,
particularly as the code itself doesn't currently use any modern
language constructs and builds fine even with older Go versions.

Instead set the go directive to 1.22.0 and use the toolchain directive
to recommend the latest 1.22.x when building locally.

Note: this also upgrade google/trillian to v1.7.1 in order to pull in
google/trillian#3713 which is what allows the go
directive to be relaxed here.

Signed-off-by: Dominic Evans <[email protected]>
@dnwe dnwe requested a review from a team as a code owner January 9, 2025 16:42
@dnwe dnwe requested review from phbnf and removed request for a team January 9, 2025 16:42
@AlCutter
Copy link
Member

AlCutter commented Jan 9, 2025

Hehe, hello again :)

@AlCutter
Copy link
Member

AlCutter commented Jan 9, 2025

/gcbrun

Copy link
Member

@AlCutter AlCutter left a comment

Choose a reason for hiding this comment

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

Thanks again!

@AlCutter AlCutter merged commit 113e37f into google:master Jan 9, 2025
7 checks passed
@dnwe dnwe deleted the go-directive branch January 9, 2025 18:03
@dnwe
Copy link
Contributor Author

dnwe commented Jan 9, 2025

@AlCutter no worries! Same request again though, if you wouldn’t mind pushing out a 1.3.1 that would be great so I can pull it into sigstore repos

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.

2 participants