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

Add Ability to Recursively Clone Git Repo #38

Open
indiv0 opened this issue Apr 16, 2016 · 4 comments
Open

Add Ability to Recursively Clone Git Repo #38

indiv0 opened this issue Apr 16, 2016 · 4 comments

Comments

@indiv0
Copy link

indiv0 commented Apr 16, 2016

Currently, clippy-service only loads the contents of the specified repo as a zip. This causes issues for projects which have git submodules that they depend on (e.g. rusoto).

Would it be possible to either add a feature to use the git clone --recursive command to obtain the code along with the submodules, or replace the current functionality altogether?

@gnunicorn
Copy link
Owner

hello @indiv0,

thanks for your request. I opted for using the ZIP-Archive download, because it has the lower footprint. git clone can easily – as it syncs the entire repo – take a long time and consume lots of bandwidth. And as we are currently not keeping any cached version, it would download everything every time – that's an awefull lot of traffic.

I am wondering: are the submodules also exposed in the ZIP-Archive? Could we instead of fetching with git clone read that file and fetch those ZIPs, too (potentially recursively), instead?

In any case I'd only opt for that feature if we make all of that part of the 10min sandboxed limit, thus, if anyone wants to download too much stuff, it goes of their compile-time...

@mcarton
Copy link

mcarton commented Apr 17, 2016

What about git clone --depth 1? Never really used it but shouldn’t that have a lower footprint?

@indiv0
Copy link
Author

indiv0 commented Apr 17, 2016

Yeah, shallow clone should have a much smaller footprint. I checked the zip, and it does include the .gitmodules file so if you want to parse that and download them as well it should work.

@gnunicorn
Copy link
Owner

Yeah, shallow clone should have a much smaller footprint. I checked the zip, and it does include the .gitmodules file so if you want to parse that and download them as well it should work.

This sounds like a reasonable approach. We could download one level deep and unpack those, too. PRs about this would be welcome.

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

No branches or pull requests

3 participants