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

Remove usage of github.com/spf13/viper for reading in config from environment variables and read them in manually instead #73

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

kkajla12
Copy link
Member

@kkajla12 kkajla12 commented Apr 11, 2023

We currently use viper to read the warrant.yaml config file and/or read env vars and assign them into our Config struct. In order to get the latter working, we've already had to write quite a bit of custom code. Now we've noticed that viper does not correctly return a viper.ConfigFileNotFoundError when the configured yaml config file is not found, so the library doesn't really provide much value. As a result, I've decided to remove it and instead implement our own yaml file parsing + env var parsing. This PR adds that.

…ironment variables and read them in manually instead
@kkajla12 kkajla12 merged commit 43a7d25 into main Apr 11, 2023
@kkajla12 kkajla12 deleted the feat/removeViperForConfig branch April 11, 2023 16:55
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