From 4e3684c993a2fb9da98a09d44def47e02cb16c56 Mon Sep 17 00:00:00 2001 From: ethernet Date: Wed, 23 Sep 2026 18:10:09 -0400 Subject: [PATCH] fix(install): create the pm store root before publishing pinned git Prerequisites is the first stage, so on a fresh Windows host \tools does not exist when Get-PinnedGit runs, and Move-Item throws DirectoryNotFoundException (reported against the source path). The uv stager already creates its slot with New-Item -Force. --- scripts/install.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install.ps1 b/scripts/install.ps1 index 30b5619086..fa26d97b7d 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -467,6 +467,9 @@ function Get-PinnedGit { if ($inner.Count -eq 1 -and $inner[0].PSIsContainer) { $src = $inner[0].FullName } if (-not (Test-Path (Join-Path $src "cmd\git.exe"))) { Fail "git.exe not found in the downloaded archive" } if (Test-Path $entry) { Remove-Item -Recurse -Force $entry } + # Prerequisites run first, so on a fresh host the store root does not + # exist yet; Move-Item never creates the destination's parent. + New-Item -ItemType Directory -Force -Path (Split-Path -Parent $entry) | Out-Null Move-Item $src $entry } finally { Remove-Item -Path $tmpDir -Recurse -Force -ErrorAction SilentlyContinue