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 viper bug fix #17

Merged
merged 8 commits into from
Aug 23, 2024
Merged

Config viper bug fix #17

merged 8 commits into from
Aug 23, 2024

Conversation

jakeschuurmans
Copy link
Collaborator

@jakeschuurmans jakeschuurmans commented Aug 22, 2024

What does this PR do

  • Viper has a limitation that doesnt allow it to use ENV variables as overrides unless the key was found in the yaml that is read in. This leads to mysterious values not being set. So I added a function to read through and set a default value for every struct item in config so you never have to worry about it.

  • Small fix for dummy config so it matches the Configuration struct.

internal/app/config.go Outdated Show resolved Hide resolved
joelrebel
joelrebel previously approved these changes Aug 23, 2024
@jakeschuurmans jakeschuurmans merged commit 47be061 into main Aug 23, 2024
4 checks passed
@jakeschuurmans jakeschuurmans deleted the ConfigViperBugFix branch August 23, 2024 14:49
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