Skip to content

Commit 68036d3

Browse files
committed
Gate vendor.cmd cache wipe behind QUARTO_SKIP_DENO_CACHE_WIPE
Windows counterpart to the vendor.sh change. Behavior matches: default wipes, QUARTO_SKIP_DENO_CACHE_WIPE=1 preserves.
1 parent 007f367 commit 68036d3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

package/scripts/vendoring/vendor.cmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ IF NOT DEFINED DENO_DIR (
1818

1919
ECHO Revendoring quarto dependencies
2020

21-
REM remove deno_cache directory first
21+
REM remove deno_cache directory first, unless explicitly told to preserve
22+
REM (CI sets QUARTO_SKIP_DENO_CACHE_WIPE=1 so a restored cache survives vendor.cmd)
2223
IF EXIST "!DENO_DIR!" (
23-
RMDIR /S /Q "!DENO_DIR!"
24+
IF NOT "!QUARTO_SKIP_DENO_CACHE_WIPE!"=="1" (
25+
RMDIR /S /Q "!DENO_DIR!"
26+
)
2427
)
2528

2629
PUSHD "!QUARTO_SRC_PATH!"

0 commit comments

Comments
 (0)