Skip to content
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

No prompt: fail when checking out without cache #2801

Closed
dmpetrov opened this issue Nov 16, 2019 · 1 comment
Closed

No prompt: fail when checking out without cache #2801

dmpetrov opened this issue Nov 16, 2019 · 1 comment
Labels
enhancement Enhances DVC

Comments

@dmpetrov
Copy link
Member

dmpetrov commented Nov 16, 2019

See #2498

Some quotes:

dvc init --no-scm
echo 'foo' > foo
dvc add foo
rm -rf .dvc/cache/d3/b07384d113edec49eaa6238ad5ff00
dvc checkout

# WARNING: Cache 'd3b07384d113edec49eaa6238ad5ff00' not found. File 'foo' won't be created.
#   0%|          |Checkout                                                                                                 0/1 [00:00<?,     ?file/s]
# file 'foo' is going to be removed. Are you sure you want to proceed? [y/n]

Is there are cases when it makes sense to checkout data files without checking out a particular one (answer Yes case)? It seems like in most of the cases this is going to happen when a user forgets to run dvc pull\fetch - it is fine to fail in this case (wee can also show a proper message like Data file 'foo' is missing in cache. Please run 'dvc fetch' first.). Also, I can imagine when dvc fetch won't give you the data file (corrupted cache and remote) - in this "debug" mode partial checkout can be done by *.dvc files. So, in both of cases, failing seems like a better option.

@triage-new-issues triage-new-issues bot added the triage Needs to be triaged label Nov 16, 2019
@dmpetrov dmpetrov added the enhancement Enhances DVC label Nov 16, 2019
@triage-new-issues triage-new-issues bot removed the triage Needs to be triaged label Nov 16, 2019
@dmpetrov dmpetrov changed the title Not prompt: fail when checking out without cache No prompt: fail when checking out without cache Nov 16, 2019
@efiop
Copy link
Contributor

efiop commented Dec 8, 2023

dvc checkout no longer deletes/prompts in this case.

@efiop efiop closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances DVC
Projects
None yet
Development

No branches or pull requests

2 participants