-
Notifications
You must be signed in to change notification settings - Fork 1.2k
project: Support .gitignore to exclude directories while searching for stage files #1471
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
Another strat would be to store every stage created in the state, but DVC would need a command to |
Using state is a great idea. Introducing That being said, using .gitignore seems like a very reasonable, simple and elegant approach. Especially since it also covers directories that change frequently and won't require us to rescan it every time, like the |
I like the idea with .gitignore! I think we can parallelize the search (if it's not yet, of course :)) and cache mtimes indeed, that alone should make some difference. |
Related to #1820 . Adding It seems unlikely, but I could imagine someone adding dvcfiles to gitignore and yet want dvc to discover them. Using |
Indeed, @efiop , but it is like an extra step that the user needs to do. There are a lot of people adding their virtual environments to docker images because they forgot or might not know about |
Maybe we can include it in an "Advanced Users" guide, with information about reflinks, and more performance enhancements. |
@MrOutis True. If I remember correctly, in our |
Agree, @efiop , let's leave this open and see how it goes with |
Seems like .dvcignore does the job. Let's close this for now, I don't see any users requesting this specifically. If anyone will request it - please feel free to reopen. |
This prevents walking directories like
node_modules
.Maybe this is not the way to speed up the stage-file search but it may help.
It could be more harmful than helpful, so I open this issue for discussion.
The text was updated successfully, but these errors were encountered: