Open u1735067 opened 1 year ago
Workaround:
def patch_invoke_env():
def _to_env_var(self, key_path):
if len(key_path) > 2 and key_path[0].lower() == 'run' and key_path[1].lower() == 'env':
return '_'.join(('_'.join(key_path[:2]).upper(), '_'.join(key_path[2:])))
return "_".join(key_path).upper()
import invoke.env
invoke.env.Environment._to_env_var = _to_env_var
patch_invoke_env()
Hi,
I think I discovered an issue with the environment system, you can't set default environment variables with both upper and lowercase variants, like for HTTP_PROXY:
This is also true with the following:
I guess
only keys with the invoke prefix or only external (not set in config) environment variables should be analyzed?RUN_ENV_
subkeys should be analyzed without case modification?