I use DVC to track my media files. I use MacOS and I want".DS_Store" files to be ignored by DVC. According to DVC documentation I can achieve it with .dvcignore. I created .dvcignore
file with ".DS_Store" rule. However every time ".DS_Store" is created dvc status
still says that content has changed
Here is the little test to reproduce my issue:
$ git init
$ dvc init
# create directory to store data
# and track it's content with DVC
$ mkdir data
$ dvc add data
# Ignore .DS_Store files created by MacOS
$ echo ".DS_Store" > .dvcignore
# create .DS_Store in data dir
$ touch "data/.DS_Store"
If I understand DVC documentation correctly then dvc status
should print something like "Pipeline is up to date. Nothing to reproduce". However dvc status
gives me:
data.dvc:
changed outs:
modified: data
How I can really ignore ".DS_Store" files?
UPDATE: The .dvcignore support noticeably improved in latest versions and the problem is no more relevant.