Skip to content

Commit

Permalink
installing pulumi
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Dec 22, 2023
1 parent 5899fb9 commit bdb8131
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/global/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func NeedsPulumi() bool {
}

func InstallPulumi() error {
slog.Info("installing pulumi")
if runtime.GOOS == "windows" {
psCommand := `"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://get.pulumi.com/install.ps1'))" && SET "PATH=%PATH%;%USERPROFILE%\.pulumi\bin"`
_, err := exec.Command("cmd", "/C", psCommand).CombinedOutput()
Expand Down

0 comments on commit bdb8131

Please sign in to comment.