infisical
infisical copied to clipboard
Unable to inject environment variables into Windows CMD terminal
Describe the bug
When running the infiscal run command on windows powershell, the envs are injected into the process. However, when running the same command in CMD terminal, the command does not inject envs into the process. It seems that the application command does not get executed when using the run command so no envs get injected into the process.
Current work around: Use windows powershell instead of CMD.
To Reproduce
Steps to reproduce the behavior:
- Install Infisical on windows using scoop
- run infisical init and then try to run your application command in CMD
Platform you are having the issue on:
Windows
We use go lang exec method to execute commands https://github.com/Infisical/infisical/blob/main/cli/packages/cmd/run.go#L115-L178
This issue has been resolved