-
Notifications
You must be signed in to change notification settings - Fork 288
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
Add replace directive for cluster-api
in go.mod
#1510
Add replace directive for cluster-api
in go.mod
#1510
Conversation
Hi @ditsuke. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@geetikabatra call for review. Also, should I push updates made by |
/ok-to-test |
This commit adds `replace` directive for `sigs.k8s.io/cluster-api`, which is required because we use the `cluster-api/test` package which uses a relative import for `cluster-api`. Signed-off-by: ditsuke <ditsuke@protonmail.com>
e83a9cb
to
6e85ef2
Compare
/retest |
@@ -2,6 +2,8 @@ module sigs.k8s.io/cluster-api-provider-vsphere | |||
|
|||
go 1.17 | |||
|
|||
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.1.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if we really need this. Why can't we update our cluster-api version than doing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v1.1.3
is the latest release right now. After some investigation, I think this issue was introduced when we upgraded to v1.1.3
and removed the replace
directives with bf4a27f.
/retest |
1 similar comment
/retest |
@ditsuke Nice catch, the garbled version number is the CAPI dependency version from the |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: srm09 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 |
What this PR does / why we need it:
This PR adds a
replace
directive forsigs.k8s.io/cluster-api
, which is required because of our dependence on thecluster-api/test
package which uses a relative import forcluster-api
. Reference: vmware-tanzu/tanzu-framework#1590.Currently, running
go mod tidy
/make modules
orgo get -d ./...
returns (tested on go1.16.0
and1.17.0
):With this patch applied, we should no longer expect this outcome.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1509