Lookup environment variables instead of checking if the value is empty#440
Lookup environment variables instead of checking if the value is empty#440bep merged 3 commits intospf13:masterfrom sagikazarmark:lookup_env
Conversation
Empty environment variables are perfectly valid values. Fortunately Go provides a way to check whether an env var is empty or not set. Fixes #317
|
@tsl0922 test cases provided in this PR |
|
Sure would be nice to see this working. I'd like to be able to use empty environment variables. |
|
Can someone restart the build please? Tests passed for me locally. |
|
@sagikazarmark you can do a force push to trigger it. |
|
Ping |
|
@bep @andrewstuart can you help us out here? |
|
So my main concern here is that this has the potential to be considered a breaking change if are using empty environment variables in place of unsetting. I'd be a lot more comfortable merging this if it was behind a default-off option. |
On one side, I think the map lookups follow the |
|
@andrewstuart @bep Thanks for your comments. I added an |
|
Breaking tests seem to be unrelated |
Empty environment variables are perfectly valid values.
Fortunately Go provides a way to check whether an env var
is empty or not set.
Fixes #317
Resubmitted #429