From 3cb288d9ee5aa5049f71030eb7cec0bc1ba36cd4 Mon Sep 17 00:00:00 2001 From: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Date: Thu, 3 Jul 2025 02:29:39 -0700 Subject: [PATCH] [no gbp] Fixes build cache issue (#91901) --- tools/bootstrap/javascript_.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/bootstrap/javascript_.ps1 b/tools/bootstrap/javascript_.ps1 index 5f286dd4d4c..dbf9a7a9b81 100644 --- a/tools/bootstrap/javascript_.ps1 +++ b/tools/bootstrap/javascript_.ps1 @@ -37,6 +37,11 @@ function Get-Bun { $BunTag = " (baseline)" } + if (Test-Path $BunTargetDir -PathType Container) { + Write-Output "Bun target directory exists but bun.exe is missing. Re-downloading." + Remove-Item $BunTargetDir -Recurse -Force + } + $BunSource = "https://github.com/oven-sh/bun/releases/download/bun-v$BunVersion/$BunRelease.zip" Write-Output "Downloading Bun v$BunVersion$BunTag"