Skip to content

Commit

Permalink
Clear NUGET_PACKAGES in the CI environment to unblock tests (#5537)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkl authored Dec 11, 2023
1 parent 1942c17 commit 400ac59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@echo off
SET NUGET_PACKAGES=
powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -Command "%~dpn0.ps1" -SkipDotnetInfo %*
IF ERRORLEVEL 1 (
EXIT /B %ERRORLEVEL%
Expand Down
6 changes: 6 additions & 0 deletions configure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ $ErrorActionPreference = 'Stop'

Trace-Log "Configuring NuGet.Client build environment"

if ($env:CI -eq "true") {
[Environment]::SetEnvironmentVariable("NUGET_PACKAGES", $null, "Machine")
} else {
$Env:NUGET_PACKAGES=""
}

$BuildErrors = @()

if ($ProcDump -eq $true -Or $env:CI -eq "true")
Expand Down
1 change: 1 addition & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fi
export DOTNET_ROOT="$CLI_DIR"
export DOTNET_MULTILEVEL_LOOKUP="0"
export "PATH=$CLI_DIR:$PATH"
export NUGET_PACKAGES=

if [ "$CI" == "true" ]; then
echo "##vso[task.setvariable variable=DOTNET_ROOT;isOutput=false;issecret=false;]$CLI_DIR"
Expand Down

0 comments on commit 400ac59

Please sign in to comment.