lean-cli icon indicating copy to clipboard operation
lean-cli copied to clipboard

`lean cloud push` does not sync properly when files were moved

Open ArthurAsenheimer opened this issue 2 years ago • 0 comments

Perform the following steps to reproduce the issue:

1. Starting point (in sync between local Lean CLI and QC Cloud):

image

2. Now in Lean CLI move new_file.py to another_dir/ then run lean cloud push <project_name>.

Results

This is how the directory structure looks like locally:

image

And this is how it looks like in QC Cloud:

image

Probably related to #52, but want to make clear that it's not limited to deleted files, but also affect files that were just moved to a different directory.

Note, the Unix command mv src dest just renames src to dest (at least as long as dest is on the same device as src). This is also how it works in Git as far as I know. And that's why I think this error could perhaps have a different cause than #52 .

ArthurAsenheimer avatar Aug 23 '22 14:08 ArthurAsenheimer