From 588c28fe459d29026c0f153ef1948873ec1dca1b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 24 Aug 2020 01:23:36 +0200 Subject: [PATCH] Fix project pull when deps missing --- spacy/cli/project/pull.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/cli/project/pull.py b/spacy/cli/project/pull.py index 1bf608c40..73cb46bb7 100644 --- a/spacy/cli/project/pull.py +++ b/spacy/cli/project/pull.py @@ -30,6 +30,8 @@ def project_pull(project_dir: Path, remote: str, *, verbose: bool = False): storage = RemoteStorage(project_dir, remote) for cmd in config.get("commands", []): deps = [project_dir / dep for dep in cmd.get("deps", [])] + if any(not dep.exists() for dep in deps): + continue cmd_hash = get_command_hash("", "", deps, cmd["script"]) for output_path in cmd.get("outputs", []): url = storage.pull(output_path, command_hash=cmd_hash)