-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add more tests according to gitignore #4166
Conversation
Two issues found.
|
@karajan1001 Sorry for the delay. This is outstanding work! Thank you so much for looking into this!
Should we report it to pathspec and wait for the solution on their side? Or how do you think we should tackle it?
Nice catch! So that one is solved and we are doing it the same way gitignore does it, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor thingy. Great idea with citing the .gitignore
documentation. Makes it much more understandable.
Seems like builds are failing. |
@efiop
|
@karajan1001 Sounds great! π So maybe let's remove or comment-out that particular test case for now, so we could merge? |
There is still something wrong with triple asterisks, According to the document.
What the result from my computer shows that triple asterisks act like double ones. Seems that this because the document is changing all the time, and in a previous version
Seems that And I found another problem. |
Checked latest git master (2.26.0-rc1) and @karajan1001 is right, behavior of x/* is different that explicitly stated in gitignore docs. @karajan1001 that seems like a bug and potential contribution opportunity. As to current build, I think we should comment out failing ones and wait till it gets done on PathSpec side. As to triple asterisk I would just leave it. If some will ever come to us with valid use case of triple asterisk other than 'match all', then we can consider it. There is no point in blindly following git docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outstanding! Thank you so much @karajan1001 ! π
fix #4103
β I have followed the Contributing to DVC checklist.
π If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
β I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)
Thank you for the contribution - we'll try to review it as soon as possible. π