-
Notifications
You must be signed in to change notification settings - Fork 413
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
added submodule support #62
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. |
I don't see anything wrong with this, but I don't know submodules well. Can you add a set of cases to the test_e2e.sh to demonstrate this? |
also, you need to sign the CLA :) |
From a submodule perspective it looks good. Waiting for some test cases and the CLA. |
FWIW this is working well for me -- I made a build at |
@abh That's great to hear. I've been running with success as well for some months, I haven't gotten around to implementing shallow checkouts though which would help a lot for large/ancient dependencies and make it consistent with the top level checkout features. |
Sorry for letting this languish. It looks overall ok, but it needs an e2e test, please? |
@@ -54,6 +54,8 @@ var flWait = flag.Float64("wait", envFloat("GIT_SYNC_WAIT", 0), | |||
"the number of seconds between syncs") | |||
var flOneTime = flag.Bool("one-time", envBool("GIT_SYNC_ONE_TIME", false), | |||
"exit after the initial checkout") | |||
var flSubmodule = flag.Bool("submodule", envBool("GIT_SYNC_SUBMODULE", false), |
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.
should the flag be "submodules" ?
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@japettyjohn any chance of resurrecting this so it can be merged? :-) |
@abh ... I'd like to hear more about how it's working for you. Background: I took a stab at adding E2E tests to cover @japettyjohn 's work. The code works as expected in the repo itself, but it does not work down the symlinked-path. My tests are failing, since I'm expecting the submodule in the symlinked path. As I understand it, the symlinked path is what is supposed to matter; from the docs:
In the tree below,
https://git-scm.com/docs/git-worktree tells me that:
|
Added option to init and update submodules. If depth is specified it uses shallow submodules.