-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Support for shallow clones with git_repository skylark rules #4359
Comments
Can someone with the requisite superpowers reopen this so that we don't lose track of the outstanding work discussed in #4537 |
I think it's a good idea to try and think of the use-cases (one dimension is how far is the commit from the tip) |
Reopend by 40c757f. |
Add an optional 'shallow_since' parameter to new_git_repository to allow more shallow clones. As opposed to a fixed depths, specifying a date does not get outdated if the branch progresses further. Also, use fully shallow clones if no commit is specified. A (floating) branch or tag can always be cloned in a truly shallow fashion. Improves on #4359. Change-Id: I8459c8f55042c98da2e43f57b7960a291004d26b PiperOrigin-RevId: 185504534
With shallow clones for tag and |
It's a bit of a shame this was done without any community discussion as I would like to have contributed. There appears to be no documentation on the expected date format, nor does there seem to be any tests for the above changeset. |
Fixes bazelbuild#4359 Closes bazelbuild#4360. PiperOrigin-RevId: 181161619
is there still point in this issue given git itself doesn't support full shallow clones? |
Well, that's why we went the |
As discussed in #1408 by @davidzchen, this issue tracks adding support for shallow clones to the
git_repository
skylark rules.Also #1246 and #2696 related.
The text was updated successfully, but these errors were encountered: