-
Notifications
You must be signed in to change notification settings - Fork 1.2k
dvc: use dvcignore when adding data with dvc add/run
#1876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Note about get_mtime_and_size: |
HI, This issue relates to my question regarding dvcignore from this Discord message.
I more details my use case is about having a DVC stage depending on a folder containing python code. When executing the stage the python code in the folder will produce the "pycache" folder with the ".pyc" files. However, when reproducing the DVC stage these ".pyc" files may change even if the python code did not change, this forces DVC stage to be reproduced when it is not needed. Therefore, I think the dvcignore feature should exclude these ".pyc" files when computing the DVC stage dependency checksum, if the .dvcignore file defines the exclusion of the "pycache" folder or "*.pyc" files. |
Well then, I guess we should get to spreading dvc ignore to all usages of |
I've been sent here by one of the developers from this conversation on StackOverflow. In general I really need However I'm not sure if my request is a part of this issue or that should be a separate feature request. |
Hi @nik123 ! It is indeed part of this issue, so just hang on tight! 🙂 |
Related to #2010 , maybe worth switching from dulwich to pathspec along the way. |
@nik123 BTW in case you didn't notice DVC can now ignore |
The text was updated successfully, but these errors were encountered: