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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stintel
Copy link
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