Skip to content

config: use figment to merge config file with env vars#6

Open
stintel wants to merge 1 commit into
mainfrom
feature/config_from_env
Open

config: use figment to merge config file with env vars#6
stintel wants to merge 1 commit into
mainfrom
feature/config_from_env

Conversation

@stintel
Copy link
Copy Markdown
Collaborator

@stintel stintel commented May 22, 2024

This makes it possible to override the configuration in the TOML config
file with environment variables.

Adding a test for this seems prohibitively difficult, as setting the
environment variable in the build script, or even using Figment's jail
feature, seems to impact the other tests.

@stintel stintel force-pushed the feature/config_from_env branch from 50ace4c to 1b79575 Compare May 22, 2024 17:32
@stintel stintel force-pushed the feature/config_from_env branch from 1b79575 to a867c28 Compare May 31, 2024 07:29
This makes it possible to override the configuration in the TOML config
file with environment variables.

Adding a test for this seems prohibitively difficult, as setting the
environment variable in the build script, or even using Figment's jail
feature, seems to impact the other tests.
@stintel stintel force-pushed the feature/config_from_env branch from a867c28 to 3849084 Compare May 31, 2024 07:47
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.

2 participants