Skip to content

Commit 6617156

Browse files
committed
run - remove --cached-only by default, see #11219
1 parent bf93178 commit 6617156

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/core/run/deno.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@ export const denoRunHandler: RunHandler = {
3636

3737
const importMap = normalize(join(denoDir, "../run_import_map.json"));
3838

39+
const noNet = Deno.env.get("QUARTO_RUN_NO_NET") === "true";
40+
41+
// --cached-only can only be used in bundles as vendoring is not done anymore in dev mode
42+
const cachedOnly = noNet || !quartoConfig.isDebug();
43+
3944
return await execProcess(
4045
{
4146
cmd: [
4247
architectureToolsPath("deno"),
4348
"run",
4449
"--import-map",
4550
importMap,
46-
// --cached-only can only be used in bundles as vendoring is not done anymore in dev mode
47-
...(quartoConfig.isDebug() ? [] : ["--cached-only"]),
51+
...(cachedOnly ? ["--cached-only"] : []),
4852
"--allow-all",
4953
"--unstable-kv",
5054
"--unstable-ffi",

0 commit comments

Comments
 (0)