Skip to content

dvc diff calls a file change "added file" (with negative size) #1893

@jorgeorpinel

Description

@jorgeorpinel

Please provide information about your setup
DVC version 0.35.7 installed with Homebrew on macOS v. 10.14.4

To reproduce

git clone https://github.com/iterative/example-get-started
cd example-get-started
dvc fetch -T
dvc diff -t model.pkl baseline-experiment bigrams-experiment

Problem
The output of the last command above is

dvc diff from bc1722d7eeb4cba9a5c8e401199e995739c474a9 to 8c1169d1819c5cf0a4e2aa7e7d8c43854563b251

diff for 'model.pkl'
-model.pkl with md5 a66489653d1b6a8ba989799367b32c43
+model.pkl with md5 3863d0e317dee0a55c4e59d2ec0eef33

added file with size -202464 Bytes

Why "added file" ? The model.pkl file changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDid we break something?p2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions