Skip to content

dvc: dvc_walk() and related things are broken by design #2914

Closed
@Suor

Description

@Suor

A few things:

  • when we collect stages in a branch dvcignore is not used at all, i.e. we go into .dvc and other ignored dirs
  • dvc_walk() and walk_files() always walk the working dir, but might accept dvcignore built from a branch. The results will make no sense.

We may approach this from two sides:

  • wrap dvcignore into a tree, i.e. dvctree = TreeWithIgnores(some_tree); dvctree.walk(...).
  • check that we only use dvcignore built from working dir if we os.walk().

Metadata

Metadata

Assignees

Labels

bugDid we break something?p1-importantImportant, aka current backlog of things to doresearch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions