mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-13 18:10:35 +03:00
Fix project pull when deps missing
This commit is contained in:
parent
001546c19e
commit
588c28fe45
|
@ -30,6 +30,8 @@ def project_pull(project_dir: Path, remote: str, *, verbose: bool = False):
|
||||||
storage = RemoteStorage(project_dir, remote)
|
storage = RemoteStorage(project_dir, remote)
|
||||||
for cmd in config.get("commands", []):
|
for cmd in config.get("commands", []):
|
||||||
deps = [project_dir / dep for dep in cmd.get("deps", [])]
|
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"])
|
cmd_hash = get_command_hash("", "", deps, cmd["script"])
|
||||||
for output_path in cmd.get("outputs", []):
|
for output_path in cmd.get("outputs", []):
|
||||||
url = storage.pull(output_path, command_hash=cmd_hash)
|
url = storage.pull(output_path, command_hash=cmd_hash)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user