dvc icon indicating copy to clipboard operation
dvc copied to clipboard

checkout/pull: dvcignored contents are removed on checkout

Open skshetry opened this issue 3 years ago • 2 comments

cd "$(mktemp -d)"
dvc init --no-scm
dvc remote add -d local "$(mktemp -d)"
mkdir -p data/processed
echo "foo" > data/foo
echo "bar" > data/processed/bar
echo "data/processed/" >> .dvcignore
dvc add data
dvc push
rm -rf .dvc/cache data/foo
dvc pull | tee

This is a regression introduced in b349b39d6266a28705b03b1b06e5c0cf98a9080d (see #5812), which was released in 2.2.0 and is present since then.

skshetry avatar Feb 12 '22 16:02 skshetry

#4344 and this issue are related to staging in dvc-data.

skshetry avatar Feb 15 '22 13:02 skshetry

PR #7963 partly solve this problem (for the pull and checkout after a ststus ). To completely close this required some following work on dvc_data side.

karajan1001 avatar Jul 07 '22 09:07 karajan1001

To completely close this required some following work on dvc_data side.

@karajan1001 do you recall what is missing?

daavoo avatar Dec 20 '22 14:12 daavoo

To completely close this required some following work on dvc_data side.

@karajan1001 do you recall what is missing?

Sorry, I forgot about it.

karajan1001 avatar Jan 03 '23 11:01 karajan1001

Looks like this has been fixed at some point. Closing.

skshetry avatar Mar 25 '24 11:03 skshetry