-
Notifications
You must be signed in to change notification settings - Fork 288
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
Suggestion: Allow git sparse checkout / checkout specific directory #267
Comments
Bump. @wyattjsmith1 Did you ever get an response on this? |
Nope! I don't use concourse anymore, but I still think this would be a nice feature. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As I have everything in a monorepo, it would be great if we could checkout specific directories as resources.
Consider a case with a monorepo with 2 services and a
ci
directory for task configurations:I only want to run tests on a specific service if the files within that service change, so I'd use two separate resources (named
service-a/b
) with thepaths
param set to their respective directories:I'd have two jobs, one for each service, and each job would start with a
get: service-a/b
and aget: ci
:This is great, but it doesn't actually clone
service-x
andci
into the task working directory, it clones the entire repository. In the case above, the task directory would contain two instances of the monorepo, just named differently. There is no technical issue with this, but it is annoying and confusing to have to prepend/ci/ci
when specifying my task.I believe allowing a git resource to clone a sub-directory of the repository would solve this issue easily.
The text was updated successfully, but these errors were encountered: