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
I see the same behaviour with files with executable bit set in a tracked folder. The folder is listed as modified on every pull or checkout. Removing the executable permission on all the files stopped this.
Bug Report
checkout: incorrectly states files are modified when they are executable
Description
When tracking a file that is executable, using a shared cache with symlinks, dvc checkout keeps stating changes are applied to the file.
Reproduce
contents of
dvc.yaml
:contents of
config
steps to reproduce:
mkdir -p dvc_mwe/dvc_mwe/data dvc_mwe/cache dvc_mwe/remote
touch dvc_mwe/dvc_mwe/data/data.txt && chmod +x dvc_mwe/dvc_mwe/data/data.txt
cd dvc_mwe/dvc_mwe
git init && dvc init
dvc_mwe/dvc_mwe/data/dvc.yaml
dvc_mwe/dvc_mwe/.dvc/config
dvc add data/data.txt
dvc repro data/dvc.yaml
dvc push
dvc checkout
dvc checkout
dvc checkout will keep stating that
some_new_file.txt
has been modifiedExpected
repeatedly calling
dvc checkout
without any data changes should not print any files that have been modifiedEnvironment information
python==3.10.12
dvc==3.55.2
Output of
dvc doctor
:Additional Information (if any):
The text was updated successfully, but these errors were encountered: