Skip to content

Add support for sparse checkouts#680

Closed
jonnelaaglandwinder wants to merge 5 commits into
actions:mainfrom
jonnelaaglandwinder:main
Closed

Add support for sparse checkouts#680
jonnelaaglandwinder wants to merge 5 commits into
actions:mainfrom
jonnelaaglandwinder:main

Conversation

@jonnelaaglandwinder

Copy link
Copy Markdown

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

arcanis commented Mar 9, 2022

Copy link
Copy Markdown

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
Copy Markdown

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

arcanis commented Sep 13, 2022

Copy link
Copy Markdown

Ping @TingluoHuang? Are there any blockers?

Comment thread __test__/verify-sparse-checkout.sh Outdated
Remove test escape hatch

Co-authored-by: Austin Pray <[email protected]>
@jonnelaaglandwinder jonnelaaglandwinder requested a review from a team as a code owner October 7, 2022 20:41
@blu3mania

blu3mania commented Oct 18, 2022

Copy link
Copy Markdown

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
Copy Markdown

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

@derekperkins

derekperkins commented Dec 6, 2022

Copy link
Copy Markdown

Any feedback from the maintainers?

@hyoretsu

Copy link
Copy Markdown

This would be great for monorepos y'know.

@zchenyu

zchenyu commented May 6, 2023

Copy link
Copy Markdown

Another friendly bump on this. +1 for this feature

@dfdez

dfdez commented May 13, 2023

Copy link
Copy Markdown
Contributor

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

dfdez commented Jun 10, 2023

Copy link
Copy Markdown
Contributor

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