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

Support .env files via godotenv package #62

Open
atc0005 opened this issue Oct 22, 2019 · 2 comments
Open

Support .env files via godotenv package #62

atc0005 opened this issue Oct 22, 2019 · 2 comments

Comments

@atc0005
Copy link
Owner

atc0005 commented Oct 22, 2019

When implemented, the traditional precedence of .env files should be followed.

This would modify the load order to look something like this:

  1. Default values
  2. Existing environment variables
  3. gotdotenv import of .env files
  4. Configuration file
  5. Command-line flags

As of this writing we're using the alexflint/go-arg package for flags and environment variable support. My understanding is that by using the godotenv package to load .env files the alexflint/go-arg package will automatically "see" the environment variables and use them. This should make the existing configuration setup seamless.

@atc0005
Copy link
Owner Author

atc0005 commented Oct 22, 2019

See also #3

@atc0005
Copy link
Owner Author

atc0005 commented Nov 1, 2019

Worth noting:

amacneil/dbmate@73e5dda

@atc0005 atc0005 modified the milestones: Future, v0.7.0 Nov 11, 2019
@atc0005 atc0005 pinned this issue Nov 13, 2019
@atc0005 atc0005 modified the milestones: v0.7.0, Future Jan 15, 2020
@atc0005 atc0005 unpinned this issue Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant