Skip to content

Commit be9d67e

Browse files
committed
fix /var vs. /private/var mismatch on macos
1 parent 81b051f commit be9d67e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

integration-test/aot.Tests.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Describe 'Publish' {
1010
throw "No NuGet package found in src/Sentry/bin/Release."
1111
}
1212

13-
$tempDir = Join-Path ([System.IO.Path]::GetTempPath()) ([System.IO.Path]::GetRandomFileName())
13+
$tempDir = Resolve-Path ([System.IO.Path]::GetTempPath())
14+
$tempDir = Join-Path $tempDir ([System.IO.Path]::GetRandomFileName())
1415
New-Item -ItemType Directory -Path $tempDir -Force | Out-Null
1516
Set-Location $tempDir
1617
Write-Host "Testing $package in $tempDir"
@@ -21,6 +22,7 @@ Describe 'Publish' {
2122
Copy-Item $package $localPackages
2223
$localConfig = Join-Path $tempDir "nuget.config"
2324
Copy-Item $PSScriptRoot/nuget.config $localConfig
25+
(Get-Content $localConfig) -replace '\./packages', $localPackages | Set-Content $localConfig
2426
$env:NUGET_PACKAGES = Join-Path $tempDir "nuget"
2527
New-Item -ItemType Directory -Path $env:NUGET_PACKAGES -Force | Out-Null
2628
dotnet nuget list source | Write-Host

0 commit comments

Comments
 (0)