From 927151100ab2c81770211843b48b8c0112dc317d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 31 Oct 2023 13:38:34 -0600 Subject: [PATCH] fix(xcaddy): use updated PATH after installing Go --- xcaddy/install.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xcaddy/install.ps1 b/xcaddy/install.ps1 index aed34b6..b48aaf7 100644 --- a/xcaddy/install.ps1 +++ b/xcaddy/install.ps1 @@ -23,6 +23,12 @@ $pkg_download = "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" Write-Output "Checking for Go compiler..." IF (-Not (Get-Command -Name "go" -ErrorAction Silent)) { & "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" go + $Env:Path = "$HOME\.local\opt\go\bin;$Env:Path" + $Env:Path = "$HOME\go\bin;$Env:Path" + [System.Environment]::SetEnvironmentVariable( + "Path", + $env:Path, + [System.EnvironmentVariableTarget]::User) } # Fetch archive