Skip to content

Add command line options for toggling go mod validation - #127

Merged
jetstack-bot merged 2 commits into
cert-manager:masterfrom
SgtCoDFish:validate-new
May 10, 2023
Merged

jetstack-bot merged 2 commits into
cert-manager:masterfrom
SgtCoDFish:validate-new

Conversation

@SgtCoDFish

@SgtCoDFish SgtCoDFish commented May 10, 2023 •

Copy link
Copy Markdown
Member

(see second commit message)

We want to allow cmctl to be handled differently to other modules, which implies some changes in how we validate our go module setup.

First, cmctl must not have a replace statement for cert-manager.

Second, the integration tests (which import cmctl) must be able to use a specific version for cert-manager. This comes transitively through their importing of cmctl.

Signed-off-by: Ashley Davis <[email protected]>
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 10, 2023
This is intended to allow cmctl to remain in the cert-manager repo while
still directly importing cert-manager and being usable as a third party
library.

That change implies that cmctl must use an actual version of
cert-manager, and that it must not use any replace statements for
cert-manager.

Signed-off-by: Ashley Davis <[email protected]>

@irbekrm irbekrm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the quick fix Ashley - I have read through the code, can't say I can fully verify if the change makes sense theoretically, so I'd rather approve and cut a beta to see that it works once all the other changes are in 👍🏼

/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label May 10, 2023
@jetstack-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: irbekrm, SgtCoDFish

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

@jetstack-bot
jetstack-bot merged commit fa10147 into cert-manager:master May 10, 2023
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants