Explicitly create the DevDrive tmpdir before use (#7644)

A suggested solution to #6940 — unfortunately only time will tell if it
works.
This commit is contained in:
Zanie Blue 2024-09-23 12:59:22 -05:00 committed by GitHub
parent a541d6cf70
commit 47eeef5c09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ Write-Output $Volume
$Drive = "$($Volume.DriveLetter):" $Drive = "$($Volume.DriveLetter):"
$Tmp = "$($Drive)/uv-tmp" $Tmp = "$($Drive)/uv-tmp"
# Create the directory ahead of time in an attempt to avoid race-conditions
New-Item $Tmp -ItemType Directory
Write-Output ` Write-Output `
"DEV_DRIVE=$($Drive)" ` "DEV_DRIVE=$($Drive)" `
"TMP=$($Tmp)" ` "TMP=$($Tmp)" `