-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conflicting options: 'override' and 'cascade' #89
Comments
That's interesting. You raise a valid point, but I'm not sure how to easily make both work together. The problem is |
What if we reversed the |
Yeah, there was an earlier discussion: #63 (comment) I think it's just incompatible. Feel free to make a PR to update the README to document this but this is not really solvable. I think the best solution is just erroring out if using |
Ooh man, this one bit me in the butt the other day. Like @llovett2 found, when you run override with cascade, the order of files is effectively inverted such that values in We need to do something about this, because of the potential impact. In my case, a dev on my team ran unit tests that blew away our QA database. I'm available to submit a new pull-request, but @entropitor, I'm looking to discover what you're likely to accept, considering this issue was closed before.
|
I think it's best to throw. I knew this was a problem when merging that's why I pushed back so hard on cascade. The other solution has a problem with expanding variables so I don't think that's valid either. I guess throwing is the most elegant solution! Happy to merge such a pr |
The
override
option introduced in #87 by @jfairley conflicts with thecascade
option when both are used together.Example
.env
.env.local
Command
I would expect
Joe
from.env.local
to overrideBob
from.env
based on howcascade
works, but when theoverride
option is presentBob
prevails because.env
is processed last (see here and here).The text was updated successfully, but these errors were encountered: