-
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
dvc add
error using wild match operator in windows?
#4705
Comments
@karajan1001 What does that error say, btw? And also could you provide verbose output, please? So far looks like there might be something about the way your shell is evaluating the regex. It actually looks like it is not expanding the wildcards and ? at all and passing them as is to the dvc. Dvc itself doesn't support regexes at all, we simply rely on your shell to do that and then pass the list to |
Yes obviously, DVC didn't get correctly file list. This might be an issue of 1. environment 2. package DVC relied on, not one in DVC itself. But
|
@karajan1001 Great point about the git. Git indeed supports some globing natively, so to match it we also need to pass the targets through |
@efiop
|
@karajan1001 Thanks for the research! 🙏 So we indeed need to pass targets through os.glob to implement that. We could start with doing just that only in Related #4419 |
+1 on this feature! |
Closing in favor of #4816 |
Bug Report
dvc add
failed while using wild match mode. It adds a wrong suffix.dvc
to my pattern.Please provide information about your setup
Output of
dvc version
:Platform: Python 3.8.3 on Windows-10-10.0.18362-SP0
Supports: http, https, ssh
Cache types: hardlink
Cache directory: NTFS on D:
Workspace directory: NTFS on D:
Repo: dvc, git
$ dvc version
Additional Information (if any):
If applicable, please also provide a
--verbose
output of the command, eg:dvc add --verbose
.The text was updated successfully, but these errors were encountered: