Skip to content

safe Dvcfile.dump() #4235

@skshetry

Description

@skshetry

Initially, the idea was not to touch dvc.yaml at all, but as we are doing it quite often, it's better to protect dvc.lock rather than dvc.yaml by default.
So, we could change it to the following default:

def dump(pipeline=True, lock=False):
    pass

The only place where we need to update lock are dvc repro and dvc run, at least atm.

Originally posted by @skshetry in #3994 (comment)

Metadata

Metadata

Assignees

Labels

enhancementEnhances DVCp1-importantImportant, aka current backlog of things to dorefactoringFactoring and re-factoring

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions