Skip to content

Bump the go directive to 1.27 - #9440

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:masterfrom
FelixPhipps:chore/bump-go-1.27
Oct 8, 2026
Merged

cert-manager-prow[bot] merged 1 commit into
cert-manager:masterfrom
FelixPhipps:chore/bump-go-1.27

Conversation

@FelixPhipps

@FelixPhipps FelixPhipps commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

cert-manager is already built with Go 1.27.1. Moving the go directive to 1.27.0 in every go.mod lets code use APIs that are new in Go 1.27, such as crypto/mldsa, which the ML-DSA private keys design (#9436) needs.

GODEBUG defaults follow the go directive. Between Go 1.26 and 1.27 only tracebacklabels and x509sslcertoverrideplatform change; the latter only affects macOS and Windows.

Go 1.27 also enables golangci-lint's modernize/embedlit check, which reports hundreds of struct literals that could omit embedded field types. Disable it for now so that the fixes can go in a separate mechanical PR.

Bumped the go directive in all go.mod files to 1.27

cert-manager is already built with Go 1.27.1. Moving the go directive
to 1.27.0 in every go.mod lets code use APIs that are new in Go 1.27,
such as crypto/mldsa, which the ML-DSA private keys design (cert-manager#9436)
needs.

GODEBUG defaults follow the go directive. Between Go 1.26 and 1.27 only
tracebacklabels and x509sslcertoverrideplatform change; the latter only
affects macOS and Windows.

Go 1.27 also enables golangci-lint's modernize/embedlit check, which
reports hundreds of struct literals that could omit embedded field
types. Disable it for now so that the fixes can go in a separate
mechanical PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felix Phipps <[email protected]>
@cert-manager-prow cert-manager-prow Bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. area/acme Indicates a PR directly modifies the ACME Issuer code area/testing Issues relating to testing needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 8, 2026

@erikgb erikgb left a comment

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.

Thanks @FelixPhipps! 🚀

Can you please prepare the mechanical golangci-lint PR after this is merged?

/lgtm
/approve

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 8, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: erikgb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 8, 2026
@erikgb

erikgb commented Oct 8, 2026

Copy link
Copy Markdown
Member

/kind cleanup

@cert-manager-prow cert-manager-prow Bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Oct 8, 2026
@cert-manager-prow
cert-manager-prow Bot merged commit ba1f133 into cert-manager:master Oct 8, 2026
6 checks passed
@FelixPhipps

Copy link
Copy Markdown
Member Author

Thanks for the approval @erikgb! Will do. 🚀

FelixPhipps pushed a commit to FelixPhipps/FelixPhippsCertMgr that referenced this pull request Oct 9, 2026
Update the Go version section now that cert-manager#9440 has merged, note that
pass-through issuers need the PublicKeysEqual change, use explicit
ML-DSA cases for key comparison, add ML-DSA key usage defaults and
validation per RFC 9881, and enable the gate in the e2e test runner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felix Phipps <[email protected]>
cert-manager-prow Bot pushed a commit that referenced this pull request Oct 25, 2026
Go 1.27 allows omitting embedded field types from struct literals.
Re-enable golangci-lint's modernize/embedlit check, which was disabled
in #9440, and apply its fixes with make fix-golangci-lint. Remove the
imports that became unused as a result.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felix Phipps <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/acme Indicates a PR directly modifies the ACME Issuer code area/testing Issues relating to testing dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants