From e7d0702b79623b4a192ca2b0475679610e39f651 Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger Date: Wed, 20 Nov 2024 10:55:08 -0700 Subject: [PATCH] run - remove --cached-only by default, see #11219 --- src/core/run/deno.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/run/deno.ts b/src/core/run/deno.ts index 2f3af8fdd9..a3e8cea7ee 100644 --- a/src/core/run/deno.ts +++ b/src/core/run/deno.ts @@ -36,6 +36,11 @@ export const denoRunHandler: RunHandler = { const importMap = normalize(join(denoDir, "../run_import_map.json")); + const noNet = Deno.env.get("QUARTO_RUN_NO_NETWORK") === "true"; + + // --cached-only can only be used in bundles as vendoring is not done anymore in dev mode + const cachedOnly = noNet; + return await execProcess( { cmd: [ @@ -43,8 +48,7 @@ export const denoRunHandler: RunHandler = { "run", "--import-map", importMap, - // --cached-only can only be used in bundles as vendoring is not done anymore in dev mode - ...(quartoConfig.isDebug() ? [] : ["--cached-only"]), + ...(cachedOnly ? ["--cached-only"] : []), "--allow-all", "--unstable-kv", "--unstable-ffi",