Skip to content
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

backend/env: treat empty environment variables as not found #78

Merged
merged 1 commit into from Nov 20, 2019

Conversation

rogpeppe
Copy link
Contributor

It's very unusual to distinguish between an environment variable
that's unset and one that's empty. When a value is required, looking
for a non-empty environment variable feels more correct.

As a recent example, the kafka-go config contained a "required" entry
for KAFKA_ADDRS which was satisfied by an empty environment
variable.

It's very unusual to distinguish between an environment variable
that's unset and one that's empty. When a value is required, looking
for a non-empty environment variable feels more correct.

As a recent example, the kafka-go config contained a "required" entry
for `KAFKA_ADDRS` which was satisfied by an empty environment
variable.
Copy link
Contributor

@yaziine yaziine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that 👍

@rogpeppe rogpeppe requested a review from tealeg November 19, 2019 16:41
Copy link
Contributor

@tealeg tealeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rogpeppe rogpeppe merged commit ec7d80e into master Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants