You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First dvc init an empty DVC repo and run the following inside. In my case the working dir is called emptydvcrepo.
$ dvc import https://github.com/iterative/example-get-started data/prepared/...ERROR: failed to import 'data/prepared/' from'https://github.com/iterative/example-get-started'. - current working directory'/path/to/emptydvcrepo' is specified as an output in 'emptydvcrepo.dvc'. Use another CWDto prevent any data removal.
Notice the given path, data/prepared/ ending with / and the error mentioning an inexistent DVC-file called emptydvcrepo.dvc.
It works normally without the slash.
The text was updated successfully, but these errors were encountered:
jorgeorpinel
changed the title
import: error with path ending in /
import: strange error with path ending in /Jul 5, 2019
The problem is that when generating default default_out name in imp_url we do not normalize path, so basename for anything ending with '/' will be ``, which will lead to some strange behaviour, like creating stage file with repo directory name.
Notice the given
path
,data/prepared/
ending with/
and the error mentioning an inexistent DVC-file calledemptydvcrepo.dvc
.It works normally without the slash.
The text was updated successfully, but these errors were encountered: