Closed 0x2b3bfa0 closed 1 year ago
Thanks @0x2b3bfa0 ! We should probably make sure that it fails if one of the commands fails (and make sure that plots fail in this case, probably CML report also should fail?)
The vl2svg
command exits with code 0
no matter what, so there is no elegant solution on that front. As well, CML doesn't fail when a linked file doesn't exist, because it can also be a remote URL. 😅
Maybe DVC should exit with non-zero status if the --target
doesn't exist?
Alternatively, there are “solutions” like this: 🙃
test -s input.json
vl2svg $_ output.svg
dvc plots diff
target paths pointed to non-existent locations and causedvl2svg
to fail.