-
Notifications
You must be signed in to change notification settings - Fork 56
feature: git clone specific tag instead of clone and checkout #172
Comments
This seems to be a design choice from conda-build https://github.com/conda/conda-build/blob/master/conda_build/source.py#L236 |
maybe you could use the E.g. |
And yeah, we just use conda-build for fetching the source so I'd also have to go look into conda-build docs / or the conda-build code to figure this out :) |
Those are the GitHub-generated archives for a tag, not proper sdists. I.e., the git submodules will be missing. So that won't work. Fixing in conda-build sounds good, I can't see a reason this would not work as an opt-in option. |
I'd be happy with censoring the code from conda-build for checking out source code in boa. It might get us a higher dev velocity and we can push changes upstream later on |
understood. I figured I would post it upstream as well. Good to know that this is useful for boa. |
Sorry, not censoring -- vendoring is what I meant to type. :) |
I'm trying to use boa to speed up build times for pytorch in hopes of gaining a few minutes on CIs.
I'm hoping that I can save time cloning a gigantic repository.
However, git clone and checkout fail for shallow clones.
I feel like git should be able to clone a single branch or tag with the command
however, it seems that the checkout happens after the clone.
Is there a way to run them both at the same time?
Cloning a specific branch: 18MB
Cloning full tree: 500MB
The text was updated successfully, but these errors were encountered: