cli icon indicating copy to clipboard operation
cli copied to clipboard

[Bug] TEMPORAL_ENV may not be working

Open cretz opened this issue 1 year ago • 1 comments

Describe the bug

Confirm TEMPORAL_ENV env var properly sets the equivalent of --env. This may require special handling since that flag is used before others (because it governs what the other flags have to be).

cretz avatar Apr 29 '24 19:04 cretz

Took a quick look at the code and preprocessOptions() does not appear to check the environment variable, but looks directly at the command line arguments. So I think this is an implementation oversight.

(We should probably have more testing around --env in general I think; I noticed another regression around temporal env delete I'll have to either fix or write up properly tomorrow.)

josh-berry avatar Apr 30 '24 00:04 josh-berry