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

replace env files with yaml configs #7

Open
jfhbrook opened this issue May 31, 2024 · 0 comments
Open

replace env files with yaml configs #7

jfhbrook opened this issue May 31, 2024 · 0 comments

Comments

@jfhbrook
Copy link
Owner

While working on #1, I realized that there are a lot of issues with using env files:

  1. They override externally set env vars
  2. They don't respect variables, nor do they expand tilde
  3. While munging the env for global config is fine, doing so for app config is less fine

One fix for this is to use godotenv.Read instead of godotenv.Override. But if I already have a go implementation, it seems like a better idea to use viper to load the config - no?

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

No branches or pull requests

1 participant