-
Notifications
You must be signed in to change notification settings - Fork 65
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
move main.go to be within the cmd directory structure and push all subcommands down one layer #813
move main.go to be within the cmd directory structure and push all subcommands down one layer #813
Conversation
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.
Can't main
live in /cmd
without having a sub folder? cmd/prflight/cmd seems like a weird package path.
Looking at a few other repos, it looks like this pattern is actually common. |
I don’t think so. The package for the entry point must be main, but the cobra commands probably shouldn’t live in the main package. |
hi @komish sorry for the failed job, we got an issue with the folder permissions in Dallas, it is now fixed |
@sebrandon1: changing LGTM is restricted to collaborators In response to this: 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. |
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.
/lgtm
Awesome that the changes were pretty limited and just a 'git mv' in most cases.
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.
/lgtm
@skattoju4: changing LGTM is restricted to collaborators In response to this:
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. |
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.
/lgtm
…bcommands down one layer Signed-off-by: Jose R. Gonzalez <jose@flutes.dev>
19efb51
to
0ba4b17
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bcrochet, komish, sebrandon1, skattoju, skattoju4 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 |
This PR is in preparation for exposing code at the top layer of the directory structure to be library code. We have to move main.go into
cmd
so that the import path can be correct for library code, and also probably should anyway as it doesn't hurt anything.Signed-off-by: Jose R. Gonzalez jose@flutes.dev