From 2b5f05cac86e20f8bfae9cfd24e0e029c9eba162 Mon Sep 17 00:00:00 2001 From: Yves Brissaud Date: Tue, 27 Oct 2026 07:11:40 +0100 Subject: [PATCH] runtime: cache dependency installs across edits Signed-off-by: Yves Brissaud --- entrypoint/build.dang | 4 ++-- runtime/build.dang | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint/build.dang b/entrypoint/build.dang index b57df09b..3729f3e0 100644 --- a/entrypoint/build.dang +++ b/entrypoint/build.dang @@ -190,7 +190,7 @@ type PythonModuleBuild { # In a scope, sync installs the members the project depends on, which # --no-install-project leaves in. mounted - .withExec(["uv", "sync", "--no-dev", "--locked", "--no-editable", "--no-install-project"]) + .withExec(["uv", "sync", "--no-dev", "--locked", "--no-editable", "--no-install-project"], disableDaggerInDagger: true) .withoutMount(inputsPath) .withEnvVariable("VIRTUAL_ENV", "$UV_PROJECT_ENVIRONMENT", expand: true) .withEnvVariable("PATH", "$VIRTUAL_ENV/bin:$PATH", expand: true) @@ -202,7 +202,7 @@ type PythonModuleBuild { ["-r", projectCfg] } mounted - .withExec(["uv", "pip", "install", "--no-editable"] + localPackages(cfg) + deps) + .withExec(["uv", "pip", "install", "--no-editable"] + localPackages(cfg) + deps, disableDaggerInDagger: true) .withoutMount(inputsPath) } } diff --git a/runtime/build.dang b/runtime/build.dang index 71d5d75e..3afb957c 100644 --- a/runtime/build.dang +++ b/runtime/build.dang @@ -197,7 +197,7 @@ type PythonModuleBuild { # In a scope, sync installs the members the project depends on, which # --no-install-project leaves in. mounted - .withExec(["uv", "sync", "--no-dev", "--locked", "--no-editable", "--no-install-project"]) + .withExec(["uv", "sync", "--no-dev", "--locked", "--no-editable", "--no-install-project"], disableDaggerInDagger: true) .withoutMount(inputsPath) .withEnvVariable("VIRTUAL_ENV", "$UV_PROJECT_ENVIRONMENT", expand: true) .withEnvVariable("PATH", "$VIRTUAL_ENV/bin:$PATH", expand: true) @@ -209,7 +209,7 @@ type PythonModuleBuild { ["-r", projectCfg] } mounted - .withExec(["uv", "pip", "install", "--no-editable"] + localPackages(cfg) + deps) + .withExec(["uv", "pip", "install", "--no-editable"] + localPackages(cfg) + deps, disableDaggerInDagger: true) .withoutMount(inputsPath) } }