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

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.

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 directory to 1.22.0 and use the toolchain directive
to recommend the latest 1.22.x when building locally.

Signed-off-by: Dominic Evans <[email protected]>
@dnwe dnwe requested a review from a team as a code owner January 9, 2025 15:18
@dnwe dnwe requested a review from AlCutter January 9, 2025 15:18
@AlCutter
Copy link
Member

AlCutter commented Jan 9, 2025

/gcbrun

@AlCutter AlCutter self-assigned this Jan 9, 2025
@AlCutter
Copy link
Member

AlCutter commented Jan 9, 2025

Thanks @dnwe, good call.

@AlCutter AlCutter merged commit a429f08 into google:master Jan 9, 2025
12 checks passed
@dnwe
Copy link
Contributor Author

dnwe commented Jan 9, 2025

@AlCutter thanks Al — would you be happy to cut a v1.7.1 so I can adopt it in some other modules?

@dnwe dnwe deleted the go-directive branch January 9, 2025 16:19
@AlCutter
Copy link
Member

AlCutter commented Jan 9, 2025

@AlCutter thanks Al — would you be happy to cut a v1.7.1 so I can adopt it in some other modules?

Sure!

@AlCutter
Copy link
Member

AlCutter commented Jan 9, 2025

--> https://github.com/google/trillian/releases/tag/v1.7.1 👍

dnwe added a commit to dnwe/certificate-transparency-go that referenced this pull request 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.

Signed-off-by: Dominic Evans <[email protected]>
AlCutter pushed a commit to google/certificate-transparency-go that referenced this pull request 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.

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.

2 participants