From 478867172acc5871d0846f2d409fec561a42e1a9 Mon Sep 17 00:00:00 2001 From: Felitendo Date: Tue, 15 Sep 2026 13:56:25 +0200 Subject: [PATCH] build: turn off turbo's local cache --- scripts/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 45bc719..496037d 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -20,6 +20,14 @@ cp "$WORKTREE/packages/app-lib/.env.prod" "$WORKTREE/packages/app-lib/.env" log "Installing JavaScript dependencies" (cd "$WORKTREE" && pnpm install --frozen-lockfile) +# The frontend is built through turbo, whose local cache keeps every task's +# outputs, and upstream counts the Rust target directory among them: gigabytes +# a build, never cleaned up, and copied back over target/ on a cache hit. A +# release build wants none of that, so the local cache is off and what an +# earlier build left there is removed. +export TURBO_CACHE=remote:r +rm -rf "$WORKTREE/.turbo/cache" + tauri_args=() case "$(uname -s)" in MINGW* | MSYS* | CYGWIN* | Windows_NT)