-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dvc gc -a
fails if dvc.yaml
has the wrong format in a branch
#3885
Comments
Hi @courentin. Thanks for the bug report. We did break
I agree that,
Again, on alpha releases, we could not guarantee the backward compatibility for file formats, as it's expected to be unstable and/or change. EDIT: Oops, missed that this happened on a branches. Definitely, we can improve on this. |
@courentin You could be able to convert it by replacing
with
If it still doesn't fix it, we might consider supporting But regardless, we definitely need to look into handling this error more gracefully. |
@efiop, that won't work as |
Yes, I deleted unused branches and converted
@skshetry I understand, my point was more to say that I struggled to understand the error message as it was something old and I needed to run my debugger on Would it makes sense to add an information about the branch in the error ? |
@courentin, Sorry that I misread it at first. The error message definitely needs to improve with whatever magic |
There's now support for skipping bad revisions and work has been done to improve errors, so closing this one |
Hello !
When running
dvc gc -a -v
, I have this error:I figured out that on some older branches that I have on my local computer, my
dvc_yaml
has the keymetrics_no_cache
which is wrong.I would expect the
dvc gc -a
to be resilient to formatting errors in thedvc.yaml
format in older branches, or at least having a clearer error message (I need to run my debugger to find on which branch thedvc.yaml
is wrong).Here is my config:
The text was updated successfully, but these errors were encountered: