You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
/
|- ci
|- service-a
|- service-b
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 the paths param set to their respective directories:
This is great, but it doesn't actually clone service-x and ci 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:
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: