Allow use of sparse checkout when vendoring from git #400
Description
Describe the problem/challenge you have
Vendoring from big repositories takes a long time currently. It would be great if that could be improved when using includePath
and excludePath
Describe the solution you'd like
When the user declares includePath
or excludePath
, and explicitly asks for a sparse checkout, perform a git sparse checkout for them using includePaths
and excludePaths
(with globs you'd use no cone mode).
Example new config:
apiVersion:
---
apiVersion: vendir.k14s.io/v1alpha1
kind: Config
directories:
- path: vendor
contents:
- path: kubernetes
git:
url: https://github.com/yannh/kubernetes-json-schema
ref: master
depth: 1
sparseCheckout: true
includePaths:
- v1.30.5-standalone/**
Anything else you would like to add:
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
Metadata
Assignees
Labels
Type
Projects
Status
Unprioritized