checkout icon indicating copy to clipboard operation
checkout copied to clipboard

Add support for sparse checkouts

Open jonnelaaglandwinder opened this issue 4 years ago • 4 comments

I've taken a crack at implementing a sparse checkout option suggested in #172. It may prove useful for large monorepos, especially if a --filter option for fetch were to be implemented as well.

I've put a temporary escape hatch in the test script, since it would fail without the test data branch being present, but it should pass with those lines removed when the test data exists. (test-data/v2/sparse-checkout)

jonnelaaglandwinder avatar Feb 01 '22 01:02 jonnelaaglandwinder

Bump @thboop? This would be extremely useful for repositories that check-in (somewhat) large artifacts, like their zipped dependencies, which is a somewhat common pattern with Yarn.

arcanis avatar Mar 09 '22 10:03 arcanis

action.yml

Wrathchyld avatar Mar 21 '22 20:03 Wrathchyld

This would be a great addition 👍 It would be a valuable capability for those that want to adopt mono-repo design. I hope this PR gets the attention it deserves.

tyson-benson avatar Mar 25 '22 20:03 tyson-benson

Ping @TingluoHuang? Are there any blockers?

arcanis avatar Sep 13 '22 09:09 arcanis

Shouldn't lfs.fetchinclude also be set or use "-I" (or "--include") parameter in GitCommandManager.lfsFetch to make sure LFS only fetches from included paths?

blu3mania avatar Oct 18 '22 23:10 blu3mania

Is any blocker exists? I'm eager to use this feature but wait for half a year.

guitarrapc avatar Nov 18 '22 08:11 guitarrapc

Any feedback from the maintainers?

derekperkins avatar Dec 06 '22 00:12 derekperkins

This would be great for monorepos y'know.

hyoretsu avatar Jan 18 '23 14:01 hyoretsu

Another friendly bump on this. +1 for this feature

zchenyu avatar May 06 '23 00:05 zchenyu

Hey everyone! I see that this PR has been frozen for a while...

In my company we need to use the sparse-checkout functionality, that is why I have invested time in order to retake this.

Here you can find a PR with an updated version to add support for the sparse-checkout!

I have to mention that this PR has helped me in order to make mine so thanks @jonnelaaglandwinder to start this, let's hope we can finally have this functionality implemented!

dfdez avatar May 13 '23 11:05 dfdez

This PR can be closed due https://github.com/actions/checkout/pull/1369

dfdez avatar Jun 10 '23 00:06 dfdez