flogo icon indicating copy to clipboard operation
flogo copied to clipboard

Environment Vars set via Windows SET not working

Open ayh20 opened this issue 7 years ago • 0 comments

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[] feature request
[] support request
[] general question

Current behavior (how does the issue manifest): When running a Flogo exe on a windows command prompt the $env.VARNAME assignment does not work for EnvVars that have been set via the windows SET command. This is the same for both a CMD prompt and a BAT script

System level EnvVars work. But the following syntax doesn't.

set MYVAR="Hello" flogotest.exe

Will not be able to pickup MYVAR

Expected behavior: Should be able to get EnvVars regardless of how they are set. Windows Powershell works

Minimal steps to reproduce the problem (not required if feature enhancement): Create a flogo app that pulls in a env var .....

What is the motivation / use case for changing the behavior? Lack of consistency across platforms

Please tell us about your environment (Operating system, docker version, browser & web ui version, etc): Windows 10

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X 0.5.5

Additional information you deem important (e.g. issue happens only occasionally):

ayh20 avatar Jul 20 '18 08:07 ayh20