-
Notifications
You must be signed in to change notification settings - Fork 237
Open
Labels
Description
This line:
Add-Path C:/Users/ContainerAdministrator/AppData/Local/Microsoft/dotnet; ` |
Is failing in builds. It's not a problem, since things succeed anyway, but I don't think it's working as intended.
It's defined here:
PowerShellEditorServices/tools/releaseBuild/Image/dockerInstall.psm1
Lines 79 to 100 in fc2879c
function Add-Path | |
{ | |
param | |
( | |
$path | |
) | |
$machinePathString = [System.Environment]::GetEnvironmentVariable('path',[System.EnvironmentVariableTarget]::Machine) | |
$machinePath = $machinePathString -split ';' | |
if($machinePath -inotcontains $path) | |
{ | |
$newPath = "$machinePathString;$path" | |
Write-Verbose "Adding $path to path..." -Verbose | |
[System.Environment]::SetEnvironmentVariable('path',$newPath,[System.EnvironmentVariableTarget]::Machine) | |
Write-Verbose "Added $path to path." -Verbose | |
$env:Path += ";$newPath" | |
} | |
else | |
{ | |
Write-Verbose "$path already in path." -Verbose | |
} | |
} |