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

Remove patch versions from go directives #209

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

SgtCoDFish
Copy link
Member

This helps older versions of go parse these directives

Specifically, our build process for the default trust package locally depends on trust-manager@main, but older releases (the release-0.6 branch) use go 1.20 and won't be able to parse them.

This tangle isn't ideal, but for future versions (i.e. when we can retire the release-0.6 branch and all supported versions use go 1.21) we can move past this and add the patch releases to our go directives again.

Motivation: This test failure for the release-0.6 branch. Specifically:

#15 20.52 go: github.com/cert-manager/trust-manager/cmd/validate-trust-package@main (in github.com/cert-manager/trust-manager@v0.7.0-alpha.2.0.20231024102130-94e8d110291e): go.mod:3: invalid go version '1.21.3': must match format 1.23

This helps older versions of go parse these directives

Specifically, our build process for the default trust package locally
depends on trust-manager@main, but older releases (the release-0.6
branch) use go 1.20 and won't be able to parse them.

This tangle isn't ideal, but for future versions (i.e. when we can retire
the release-0.6 branch and all supported versions use go 1.21) we can move past this
and add the patch releases to our go directives again.

Signed-off-by: Ashley Davis <ashley.davis@venafi.com>
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 24, 2023
@inteon
Copy link
Member

inteon commented Oct 24, 2023

/approve
/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 24, 2023
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

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

The pull request process is described here

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

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 24, 2023
@jetstack-bot jetstack-bot merged commit b52cb70 into cert-manager:main Oct 24, 2023
4 checks passed
@SgtCoDFish SgtCoDFish deleted the removepatch branch October 24, 2023 15:24
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. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants