-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty environment variable problem #193
Comments
workaround fail: field:
name: _env:ENV but this works: field:
name: _env:ENV:'' |
The comment in the code you link seems to describe the situation. It's interpreting whether to treat as a string or not based on the default value. And otherwise it parses the input as YAML, which for an empty string is in fact null I believe. |
Can similar behavior for |
I don't understand the request. This is working as designed. Please clarify what alternative implementation you'd like to see, "similar behavior" doesn't make sense in this context, at least to me. |
I mean: e.g. read empty environment variable value for all |
That would break existing programs, which expect YAML parsing to occur. |
Reasonable remark, that's sad. But there still can be added |
Wait a moment. Which cases will that brake? Currently the lib just generate a runtime error for |
This is all too vague for me to follow. I can’t guarantee it will get merged, but at this point I think your best bet is opening a PR with the changes you want to see. |
This makes no sense on Windows because there is no difference between an unset environment variable and one set to the empty string, even at the C API level. |
How to pass an environment variable which is set, but value is empty, and expected type is string (Text)? (shoul be encoded as
''
value in yaml configuration)Currently it interprets empty environment variable as a null (just empty space in yaml configuration, of Null type).
The text was updated successfully, but these errors were encountered: