-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Reduce bandwidth for installation with git #9603
Comments
creating incomplete clones regularly creates issues with build tools that use git metadata |
Which git metadata is affected? |
There are tools that rely on git tags and commit hashes to infer a package’s version, and a non-full clone may break them. In fact, we already tried some of the methods, and ended up reverting to the current behaviour because every attempt broke something. I’ll close this as wont-fix. Don’t use VCS URLs if the performance is an issue for you. |
I would certainly be interested in reading a proof of concept if you think it would work. |
@sbidoul
As per Github article
Treeless clone are best suited for this issue as pip only has to create a wheel for it
Till now I haven't had any issue with it but this should be checked, at least github and bitbucket works fine |
This was implemented with |
What's the problem this feature will solve?
When installing a project with
git
, pip clones the full repository thereby cloning all the history and takes a lot of time and bandwidth.Describe the solution you'd like
When installing a project with
git
, pip should Treeless clone or Blobless cloneRepositories with large history would be benefitted a lot.
Additional context
https://github.blog/2020-12-22-git-clone-a-data-driven-study-on-cloning-behaviors/
The text was updated successfully, but these errors were encountered: