Skip to content

Commit

Permalink
Update lockfile after project pull
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Aug 24, 2020
1 parent 588c28f commit 64df376
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spacy/cli/project/pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .remote_storage import get_command_hash
from .._util import project_cli, Arg
from .._util import load_project_config
from .run import update_lockfile


@project_cli.command("pull")
Expand Down Expand Up @@ -36,3 +37,6 @@ def project_pull(project_dir: Path, remote: str, *, verbose: bool = False):
for output_path in cmd.get("outputs", []):
url = storage.pull(output_path, command_hash=cmd_hash)
yield url, output_path

if cmd.get("outptus") and all(loc.exists() for loc in cmd["outputs"]):
update_lockfile(project_dir, cmd)

0 comments on commit 64df376

Please sign in to comment.