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
If repo contains symlink during dvc list/get cli commands (external_repo clone) the process crashes
(dvc) jiojiajiu@pon4ik:~/workspace/DVC/dvc$ python -m dvc list test-project -v
2020-02-17 16:15:52,989 DEBUG: Creating external repo test-project@None
2020-02-17 16:15:53,145 ERROR: unexpected error - can't copy '/tmp/tmpt0f2eavwdvc-clone/.travis.yml': doesn't exist or not a regular file
------------------------------------------------------------
Traceback (most recent call last):
File "/home/jiojiajiu/workspace/DVC/dvc/dvc/main.py", line 49, in main
ret = cmd.run()
File "/home/jiojiajiu/workspace/DVC/dvc/dvc/command/ls.py", line 40, in run
with_color=with_color,
File "/home/jiojiajiu/workspace/DVC/dvc/dvc/repo/ls.py", line 15, in ls
with external_repo(url, rev) as repo:
File "/home/jiojiajiu/.pyenv/versions/3.7.6/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/jiojiajiu/workspace/DVC/dvc/dvc/external_repo.py", line 28, in external_repo
path = _cached_clone(url, rev, for_write=for_write)
File "/home/jiojiajiu/workspace/DVC/dvc/dvc/external_repo.py", line 198, in _cached_clone
copy_tree(clone_path, repo_path)
File "/home/jiojiajiu/.pyenv/versions/3.7.6/lib/python3.7/distutils/dir_util.py", line 163, in copy_tree
dry_run=dry_run)
File "/home/jiojiajiu/.pyenv/versions/3.7.6/lib/python3.7/distutils/file_util.py", line 105, in copy_file
"can't copy '%s': doesn't exist or not a regular file" % src)
distutils.errors.DistutilsFileError: can't copy '/tmp/tmpt0f2eavwdvc-clone/.travis.yml': doesn't exist or not a regular file
I think this is no longer relevant.
Not sure the exact reproductions steps (using external_repo.py in issue description, I think test-repo was just a local dvc repo with some symlink)
But:
Code path changed since then
Trying this with a local dvc project worked ok for me today:
If repo contains symlink during
dvc list/get
cli commands (external_repo
clone) the process crashesPlease provide information about your setup
The text was updated successfully, but these errors were encountered: