Skip to content
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

Feature request: clone only last commit for index repository #7995

Closed
aristarh2704 opened this issue Mar 13, 2020 · 3 comments
Closed

Feature request: clone only last commit for index repository #7995

aristarh2704 opened this issue Mar 13, 2020 · 3 comments

Comments

@aristarh2704
Copy link

aristarh2704 commented Mar 13, 2020

Now, at first cargo running, it download full crate.io repository. It takes many time and sometimes it's happens unsuccessfully . It's needed for cloning only last commit, for time and memory preserve

@aristarh2704
Copy link
Author

Already more than 3 times cargo cannot update repository

@ehuss
Copy link
Contributor

ehuss commented Mar 13, 2020

I don't think this will be possible today. GitHub has asked other registries in the past to not do that due to issues on their servers. Additionally, I believe our git implementation doesn't support shallow clones. See also #2452, #1171, #5597, and RFC 2789.

We periodically squash the index history to reduce the size. Thanks for the ping, though, it looks like we need to squash it again.

I'm not sure if you have particularly poor connectivity to github from where you are, but if you do perhaps there is a vpn or mirror you can use?

@ehuss ehuss closed this as completed Mar 13, 2020
@aristarh2704
Copy link
Author

I can use cargo config for fetching repository with CLI. In which case, it's possible fetch only last commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants