Skip to content

Support for multiple .dvc roots in a single git repo #2349

@guysmoilov

Description

@guysmoilov

This request comes from a large company that has used DVC in the past but moved away mostly due to this issue.

Some companies (.e.g Google) store all of their different projects' and teams' code in a single big git repo.

In this scenario, each project has its own subdirectory in the repo, and they are expected to only make changes to that subdirectory, unless they are contributing code to another project in the organization.

Unfortunately, DVC can only create its .dvc folder in the git repo root. This is problematic for a couple of reasons:

  1. The data science team in question might want to work with DVC, but they are blocked from doing so, either just politically or even with automatically enforced authorizations
  2. DVC can break backwards compatibility, and different projects in the monorepo might use different versions of DVC

I could probably think of a couple other reasons why this might be a problem.

It seems to me that requiring the .dvc folder be in the root folder is pretty arbitrary, and giving the option to put it in other places in the tree would open the way for wider adoption.

Metadata

Metadata

Assignees

Labels

feature requestRequesting a new featurep1-importantImportant, aka current backlog of things to doproduct: VSCodeIntegration with VSCode extensionresearch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions