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.
As @pared noticed, when you run two sequential
dvc runcommands with the same output: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-persistflag.