-
Notifications
You must be signed in to change notification settings - Fork 204
Remove optGenVersion from api path for goimports #430
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 optGenVersion from api path for goimports #430
Conversation
ack-generate crossplane fails if there is no apis/<service>/v1alpha1 directory. The code includes optGenVersion in the api path for goimports which causes an error when the directory doesn't exist. Removing optGenVersion from the api path causes goimports to run on all files/directorys under apis/<service> Signed-off-by: Bob Haddleton <[email protected]>
Hi @bobh66. Thanks for your PR. I'm waiting for a aws-controllers-k8s 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. |
@a-hilaly can you have a look ? unblocks us for an PR crossplane-contrib/provider-aws#1704 |
ec2-controller failures are unrelated. Please ignore :) |
@a-hilaly the crossplane sub-command does not accept the --version flag so it fails with:
I would not expect any impact on previously generated CRDs as this is only affecting the execution of |
@bobh66 Gotcha, thank you! merging this soon. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: A-Hilaly, bobh66 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 |
@bobh66: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
…#430) `ack-generate crossplane` fails if there is no `apis/_service_/v1alpha1 directory`. The code includes optGenVersion in the apiPath for goimports which causes an error when the directory doesn't exist. Removing optGenVersion from the apiPath causes `goimports` to run on all files/directorys under `apis/<service>` Signed-off-by: Bob Haddleton <[email protected]> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description of changes:
ack-generate crossplane
fails if there is noapis/_service_/v1alpha1 directory
. The code includes optGenVersion in the apiPath for goimports which causes an error when the directory doesn't exist.Removing optGenVersion from the apiPath causes
goimports
to run on all files/directorys underapis/<service>
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.