Skip to content

run: at least unprotect existing outputs #1786

@efiop

Description

@efiop

As @pared noticed, when you run two sequential dvc run commands with the same output:

dvc run -o out 'echo 1 >> out'
dvc run -o out 'echo 2 >> out'

you actually corrupt your cache file for first out, as it is still linked to the cache. We should at least unprotect outputs in this case or maybe even consider removing them by default. That will play nicely with the new --outs-persist flag.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions