Skip to content

Commit

Permalink
run - remove --cached-only by default, see #11219
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Nov 20, 2024
1 parent bf93178 commit e7d0702
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/core/run/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@ 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: [
architectureToolsPath("deno"),
"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",
Expand Down

0 comments on commit e7d0702

Please sign in to comment.