pulumi-local icon indicating copy to clipboard operation
pulumi-local copied to clipboard

`pulumilocal` does not work on Windows

Open KelSolaar opened this issue 1 year ago • 1 comments

Hello,

I was giving a test drive a pulumi / pulumi-local with LocalStack but out-of-the-box, the wrapper does not work:

PS D:\Development\pulumi-ramblings> pulumilocal up
Updating this Stack with LocalStack config
[WinError 2] The system cannot find the file specified

Removing all the executable=PULUMI_CMD in the subprocess calls did the job:

subprocess.run(executable=PULUMI_CMD, ...

to

subprocess.run(...

I know that there are platform dependent subtleties but I never had to pass the executable argument on Windows if the executable itself is already present in the args passed to POpen et al.

KelSolaar avatar Aug 01 '24 22:08 KelSolaar

Hi @KelSolaar, Thanks for reporting this issue. As a current workaround, could you please set the PULUMI_CMD env variable in your shell to the absolute path of your pulumi executable and rerun your command and share the output?

lakkeger avatar Aug 02 '24 13:08 lakkeger