-
-
Notifications
You must be signed in to change notification settings - Fork 297
Make params.depth work correctly with submodules
#212
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
Make params.depth work correctly with submodules
#212
Conversation
149ea85 to
71b81b4
Compare
|
@vito what's your opinion of the new implementation? |
|
@norbertbuchmueller Hey, sorry, been tuned out a bit on PRs as we try to squeeze a next release out before our big code restructure. I'll get back to this soon! |
@vito How does it look now, would you have time to look into this soon? |
|
Hey @vito thanks for your review thus far! Do you have time to move this one along? It would be very helpful to us. |
To be re-used for shallow submodule deepening.
Similarly to how it's handled for the main repo.
71b81b4 to
02442f1
Compare
|
@jeremyhuiskamp @norbertbuchmueller Sorry, things dragged on a bit longer than I expected. The latest changes look good to me, at least for now. Thanks for adding tests; to be honest without them (and without the existing ones) it'd be kinda hard for me to trust the code, as the I'm hoping the scary amount of |
|
I'm pretty sure this is broken if the user doesn't set a Might want to try to replicate it yourself, though - I'm only pretty sure. This is happening to me, but I have added a few tweaks to the version of this resource in my concourse pipeline (#172, while I'm waiting on spatial resource flows, for instance). |
|
I want this feature, so I'm trying to get my repo to work with it, but there are more problems. It also has opposite behavior with respect to re-setting submodule update values - it will use |
@ndmckinley You are right. Sorry. (Actually this behavior does not even depend on whether all or just some submodules are selected.).
That's also correct. Sorry. See #226 for the fixes for both of those bugs. It would be great if you could also test it with your repo. |
|
Added a few comments on that PR - it's pretty close to what I wound up running with yesterday. (edit: although it got linked there, you definitely shouldn't use what I wound up running with - the branch logic I have written to work around the lack of concourse/concourse#1707 is pretty entwined with everything everywhere.) |
Incrementally deepen shallow clones of submodules if the ref recorded for the submodule is not found. Similarly to how it's already handled for the main repo (see #205).
This fixes errors like this: