From 5899fb9ea5cb02fba24595b4a025dc08bbfeb8ef Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 22 Dec 2023 15:28:58 -0500 Subject: [PATCH] always add --- pkg/global/global.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/global/global.go b/pkg/global/global.go index 2ce00f7de..4c78c8a50 100644 --- a/pkg/global/global.go +++ b/pkg/global/global.go @@ -42,6 +42,7 @@ func InstallPlugins() error { } func NeedsPulumi() bool { + os.Setenv("PATH", os.Getenv("PATH")+":~/.pulumi/bin") _, err := exec.LookPath("pulumi") if err != nil { return true @@ -58,6 +59,5 @@ func InstallPulumi() error { cmd := `curl -fsSL https://get.pulumi.com | sh` _, err := exec.Command("bash", "-c", cmd).CombinedOutput() - os.Setenv("PATH", os.Getenv("PATH")+":~/.pulumi/bin") return err }