Version 0.58.1
$ git clone https://github.com/iterative/example-get-started
$ cd example-get-started
$ git checkout -b mybranch 6-featurization
Switched to a new branch 'mybranch'
$ dvc checkout
ERROR: failed to download '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' to '../../../../var/folders/hq/h82mgrhx37nc89_1rcg6gm280000gn/T/tmp1rw0hv0c' - [Errno 2] No such file or directory: '/Users/dmitry/src/example-get-started/.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir'
Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!
ERROR: Failed to load dir cache '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' - Expecting value: line 1 column 1 (char 0)
Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!
WARNING: Cache '3338d2c21bdb521cda0ba4add89e1cb0.dir' not found. File 'data/features' won't be created.
ERROR: failed to download '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' to '../../../../var/folders/hq/h82mgrhx37nc89_1rcg6gm280000gn/T/tmpnnu4ga3u' - [Errno 2] No such file or directory: '/Users/dmitry/src/example-get-started/.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir'
Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!
ERROR: Failed to load dir cache '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' - Expecting value: line 1 column 1 (char 0)
Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!
Problems:
../../../../var/folders/hq/h82mgrhx37nc89_1rcg6gm280000gn/T/tmp1rw0hv0c?Having any troubles?. Hit us up at https://dvc.org/support 4 times!?.EDIT:
No such file or directory: '/Users/dmitry/src/example-get-started/.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' we probably should not output full paths - no value.Minimal example script
#!/bin/bash
rm -rf repo repo_remote storage repo_local
mkdir repo_remote storage
cd repo_remote
git init --bare
cd ..
git clone repo_remote repo_local
cd repo_local
dvc init -q
dvc remote add -d storage ../storage
mkdir data
echo content >> data/content
dvc add data
git add -A
git commit -am "init"
git tag 1.0
git push origin master
git push --tags
cd ..
git clone repo_remote repo
cd repo
git checkout -b mybranch 1.0
dvc checkout
@dmpetrov
"failed to download"? it does not seem like a download problem.
and
why it shows a temporary path ../../../../var/folders/hq/h82mgrhx37nc89_1rcg6gm280000gn/T/tmp1rw0hv0c
Actually, it is download problem, mostly due to fact that remote/base has generic logic for loading dir cache for all remote types (that assumes downloading). Created issue to deal with that: #2513
@pared that's exactly the same problem we discussed with @mroutis recently. Separation of UI/UX (in out case command output) logic from the actual business logic. I haven't found any good example so far in terms how it can be implemented though.