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 support for sparse checkouts #680

Closed
wants to merge 5 commits into from

Conversation

jonnelaaglandwinder
Copy link

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)

@arcanis
Copy link

arcanis commented Mar 9, 2022

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.

@tyson-benson
Copy link

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.

@arcanis
Copy link

arcanis commented Sep 13, 2022

Ping @TingluoHuang? Are there any blockers?

Remove test escape hatch

Co-authored-by: Austin Pray <71290498+austinpray-mixpanel@users.noreply.github.com>
@jonnelaaglandwinder jonnelaaglandwinder requested a review from a team as a code owner October 7, 2022 20:41
@blu3mania
Copy link

blu3mania commented Oct 18, 2022

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?

@guitarrapc
Copy link

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

@derekperkins
Copy link

derekperkins commented Dec 6, 2022

Any feedback from the maintainers?

@hyoretsu
Copy link

This would be great for monorepos y'know.

@zchenyu
Copy link

zchenyu commented May 6, 2023

Another friendly bump on this. +1 for this feature

@dfdez
Copy link
Contributor

dfdez commented May 13, 2023

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
Copy link
Contributor

dfdez commented Jun 10, 2023

This PR can be closed due #1369

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

Successfully merging this pull request may close these issues.

<code>actions/checkout</code>-åtgärden