-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 Sparse checkouts #800
Comments
Worth noting that this https://github.com/actions/checkout/blob/main/src/git-source-provider.ts#L188 causes all LFS files to be retrieved for the given branch. When using sparse-checkout AND lfs, checkout will only download lfs files as needed so the sparse rules can be used to prevent a lot of stuff being downloaded which is great, but only with the call to |
any news on this? I this feature planned to be implemented? |
Hey everyone! Good news for those that need this feature, I have created a PR to add |
This Issue has been solved! #1369 |
This can probably be closed? @TingluoHuang |
Thank you very much team. |
Discussed in #798
Originally posted by devminded May 20, 2022
Support sparse checkouts
Purpose
When using large project with many modules (AKA monorepo) being able to do sparse checkouts (supported since git 2.25.x) would be very helpful.
Example
Repo containing:
We want to only checkout and build the mobile-client (nice when combined with paths/paths_ignore).
So the equivalent of
git sparse-checkout init --cone && git sparse-checkout set modules/mobile-client scripts tools
would be:Ref: https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout/
The text was updated successfully, but these errors were encountered: