Skip to content

Fix templates with policies with Go 1.24 #744

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

Merged
merged 2 commits into from
Apr 15, 2025
Merged

Fix templates with policies with Go 1.24 #744

merged 2 commits into from
Apr 15, 2025

Conversation

maraino
Copy link
Contributor

@maraino maraino commented Apr 1, 2025

Description

This commit fixes templates with policy identifiers on a program with the go.mod set to 1.24. With Go 1.24, the policies extension is marshaled using the values in the Policies field, but with Go 1.23 or a previous version, the marshaled field is PolicyIdentifiers.

This commit sets the same values on Policies and PolicyIdentifiers, ensuring that the templates with policies work in different versions of Go.

Fixes #738

This commit fixes templates with policy identifiers on a program
with the go.mod set to 1.24. With Go 1.24, the policies extension is
marshaled using the values in the Policies field, but with Go 1.23 or
a previous version, the marshaled field is PolicyIdentifiers.

This commit sets the same values on Policies and PolicyIdentifiers,
ensuring that the templates with policies work in different versions
of Go.

Fixes #738
@maraino maraino requested a review from hslatman April 1, 2025 23:58
@maraino maraino merged commit 7b69ae9 into master Apr 15, 2025
12 checks passed
@maraino maraino deleted the mariano/policies branch April 15, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update x509util.Certificate to manage policies
2 participants