Skip to content
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: preserve desc on add/run/imp #5003

Merged
merged 1 commit into from
Dec 1, 2020
Merged

dvc: preserve desc on add/run/imp #5003

merged 1 commit into from
Dec 1, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Dec 1, 2020

Fixes #4907

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

@@ -161,6 +161,7 @@ def compute_md5(stage):
# Remove md5 and meta, these should not affect stage md5
d.pop(stage.PARAM_MD5, None)
d.pop(stage.PARAM_META, None)
d.pop(stage.PARAM_DESC, None)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot about it the last time πŸ€¦β€β™‚οΈ πŸ€¦β€β™‚οΈ πŸ€¦β€β™‚οΈ


run_copy("foo1", "bar1", single_stage=True, force=True, fname="bar.dvc")
# CRLF on windows makes the generated file bigger in size
Copy link
Contributor Author

@efiop efiop Dec 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related #4658 One more point is that our md5s go through dos2unix, but sizes don't, so md5 <-> size relations are not constant :( We'll be looking at it soon in 2.0

@efiop efiop merged commit 7f05370 into iterative:master Dec 1, 2020
@efiop efiop added the ui user interface / interaction label Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui user interface / interaction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dvc: preserve desc when re-add/import[-url]/run'ing
1 participant