-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
tekton pipeline git resource should init and update submodules recursively. #1523
Comments
I was debating whether to submit a PR for a simple fix to this. There are two ways to address this issue:
There are pros/cons for either option: pro: it is simpler for the few cases where someone needs to clone submodules pro: the documentation provides useful guidance where it is applicable Personally, I prefer (2). |
I think a better logic is to first determine if |
@chengjingtao I thought of that initially, that said, those commands are fully no-op if there is no submodules so, running them almost doesn't cost anything 👼 I needed for a task (that uses the |
Wow, I understand what you mean. It really makes sense |
@chengjingtao sorry about that 😅 There is plenty (and if not enough, we need to triage them to add more |
Expected Behavior
Suppose we have a git pipeline resource as described in the doc:
https://github.com/tektoncd/pipeline/blob/master/docs/resources.md#git-resource
Suppose that
https://github.com/wizzbangcorp/wizzbang.git
has.gitmodules
with one or more git submodules.When the git resource is cloned, the behavior should be equivalent to this:
where
<remote url>
would behttps://github.com/wizzbangcorp/wizzbang.git
Actual Behavior
Based on the latest commit of
pkg/git/git.go
here:pipeline/pkg/git/git.go
Line 47 in ea94852
This is equivalent to the following:
In other words, the submodules have not been initialized nor updated recursively.
Steps to Reproduce the Problem
Additional Info
The text was updated successfully, but these errors were encountered: