Skip to content

Easy way to update existing DVC-file for "run" stage #3102

@PavelKovalets

Description

@PavelKovalets

I often need to update existing dvc file (say train.dvc) for run stage with some minor changes like slightly modifying the cmd section, or adding new outs or deps.

The way I do it now is to reverse-engineer the original dvc run -d ... -o ... -f train.dvc <cmd> command that was used to create this train.dvc file's content.

This is cumbersome and seems like an unnecessary work.

I've tried to edit train.dvc manually, but sometimes it resulted in a corrupted file.
Also it seems that there is some special format that is preserved while splitting cmd into multiple line.

Is there any easy and not so hacky way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responsewe are waiting for your reply, please respond! :)questionI have a question?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions