Update lockfile after project pull
@@ -4,6 +4,7 @@ from .remote_storage import RemoteStorage
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")
@@ -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)
