-
Notifications
You must be signed in to change notification settings - Fork 1.2k
cache: test: allow cache to be on different drive #2000
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
Conversation
989dcaa
to
987d6da
Compare
dvc/path/local.py
Outdated
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.
Hm, still catching ValueError here seems too much, since it is only relevant for windows and ValueError could be raised in a lot of cases. Maybe it is worth checking for it separately before trying to relpath()?
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.
Btw, just a note: that check and relpath itself might cause quite a performance hit, as we've learned from cProfile a long time ago, so the plan was to make PathLOCAL do some caching in the future, so it doesn't have to recompute that again and again. But maybe there is a better approach.
tests/conftest.py
Outdated
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.
👍 Neat!
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.
Thanks! 🎉
Have you followed the guidelines in our
Contributing document?
Does your PR affect documented changes or does it add new functionality
that should be documented? If yes, have you created a PR for
dvc.org documenting it or at
least opened an issue for it? If so, please add a link to it.
Fixes Error with "dvc add" on Windows, when local cache is not on the same drive as git repo #1976