After updating to dvc version 3.0.0, these files now cause “dvc status” to crash with an error of the form
validation failed.
extra keys not allowed, in outs -> 0 -> metric, line 3, column 3
As I understand it, version 3.0 removed support for some older types of “.dvc” files. Is there a command to convert existing files to the new format without having to download the data and run “dvc add” again?
I had been concerned that just deleting the extra keys like “metric” wouldn’t work because the newer .dvc files have extra values like “nfiles” and “size” that aren’t in older version. I wrote a script to drop the values, and it seemed to work though, so all good there.
It does mean that if we want to check out an older version of our data repo we need to
do a git checkout
run the script to patch the .dvc files
run dvc
That’s doable but a bit unfortunate. Is there a chance of modifying DVC to drop deprecated params in the .dvc files instead of crashing?
Since you asked, there’s about 5000 .dvc files in this repo, and probably that many more again spread across other repos. We’re pretty heavy DVC users, so thanks for your work!
2.56.0, okay, thanks, I have installed the latest version of dvc, but with poetry I use the venv in a slightly different way, so the old dvc without any venv was mistakenly used