checkout icon indicating copy to clipboard operation
checkout copied to clipboard

Add support for sparse checkouts

Open jonnelaaglandwinder opened this issue 2 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