Open
Description
Environment variable names are converted to lower case internally. This is surprising undocumented behavior. We want to be able to override values from a configuration file with environment variables. It would be natural to use the same spelling (not counting the prefix), but this doesn't work if the configuration file keys are upper case. To make it work, the configuration file keys must be lower case.
config.toml
FOO="You can't override me!"
bar="You can override me just fine."
In the shell
APP_FOO="Why are you ignoring me?" APP_BAR="Yay! New bar." ./target/debug/app
I was using TOML for the config file and bash for the shell, if it matters.
Metadata
Metadata
Assignees
Labels
No labels