Hey all, I need to run an inline program inside a docker container image. Since I can’t directly install Pulumi, I’m using precompiled binaries and would like to add them to the Pulumi PATH env var. Inside my program, I can get the absolute path to be binary file, and if I run it programmatically, it works OK. but if I add this location to the PATH and pass that auto.LocalWorkspaceOptions inside envvars, the Pulumi SDK can’t find pulumi executable. Any ideas? Using Golang.
06/14/2022, 2:38 PM
EnvVars is what's set after pulumi has been found and started up. You need to edit PATH in the process that is using automation api so that that process is able to lookup "pulumi" in the new PATH list.