Skip to content

Commit 007f367

Browse files
committed
Gate vendor.sh cache wipe behind QUARTO_SKIP_DENO_CACHE_WIPE
Default behavior unchanged: local ./configure.sh still wipes deno_cache before re-vendoring. CI opts into cache preservation by setting QUARTO_SKIP_DENO_CACHE_WIPE=1, enabling actions/cache to restore the cache and have it survive vendor.sh.
1 parent 2407761 commit 007f367

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

package/scripts/vendoring/vendor.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ fi
1515

1616
echo Revendoring quarto dependencies
1717

18-
# remove deno_cache directory first
19-
if [ -d "$DENO_DIR" ]; then
18+
# remove deno_cache directory first, unless explicitly told to preserve
19+
# (CI sets QUARTO_SKIP_DENO_CACHE_WIPE=1 so a restored cache survives vendor.sh)
20+
if [ -d "$DENO_DIR" ] && [ "${QUARTO_SKIP_DENO_CACHE_WIPE}" != "1" ]; then
2021
rm -rf "$DENO_DIR"
2122
fi
2223

0 commit comments

Comments
 (0)