You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cloud versioning case when we delete our cache and workspace data and try to dvc push, it will think that it needs to modify/relink a file and in order to do that will delete it but then fail to create a new one because it will turn out that there is no source for data.
We need to add a step that will filter out missing data (probably somewhere even before index.checkout.compare()) from a desired index, so that we don't even think that we can create those missing files.
One of our users already ran into this.
This also applies to dvc checkout and possibly other operations (don't think so, but need to check).
The text was updated successfully, but these errors were encountered:
efiop
changed the title
push: make sure source files exists before applying changes
push: make sure source files exist before applying changes
Dec 20, 2023
Regarding checkout, it is mitigated by the fact that we double check files that we might delete, though that behaviour is a bit contraversial as well and might be changed in the future (to not delete unless we have a file to replace it with, even if deleted file is also in the cache).
There is one more unrelated issue about pulling missing files, but I'll introduce a fix separately. (EDIT: see #10188)
In cloud versioning case when we delete our cache and workspace data and try to
dvc push
, it will think that it needs to modify/relink a file and in order to do that will delete it but then fail to create a new one because it will turn out that there is no source for data.We need to add a step that will filter out missing data (probably somewhere even before
index.checkout.compare()
) from a desired index, so that we don't even think that we can create those missing files.One of our users already ran into this.
This also applies to
dvc checkout
and possibly other operations (don't think so, but need to check).The text was updated successfully, but these errors were encountered: