infisical icon indicating copy to clipboard operation
infisical copied to clipboard

Unable to inject environment variables into Windows CMD terminal

Open maidul98 opened this issue 3 years ago • 1 comments

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:

  1. Install Infisical on windows using scoop
  2. run infisical init and then try to run your application command in CMD

Platform you are having the issue on:

Windows

maidul98 avatar Dec 23 '22 01:12 maidul98

We use go lang exec method to execute commands https://github.com/Infisical/infisical/blob/main/cli/packages/cmd/run.go#L115-L178

maidul98 avatar Dec 23 '22 02:12 maidul98

This issue has been resolved

maidul98 avatar Jan 15 '23 19:01 maidul98