Skip to content

Conversation

@shyim
Copy link
Contributor

@shyim shyim commented Oct 26, 2024

when I have a .env

foo=1

and then do:

export foo=my-value

symfony php -i | grep foo

I see it is set to 1. and this is wrong. When I export a env variable it should win

@tucksaun
Copy link
Member

tucksaun commented Dec 7, 2024

I’m wondering if instead we should not change the logic in Executor.Execute() to force the current environment to be appended instead of being preprended.
/cc @nicolas-grekas wdyt?

@nicolas-grekas
Copy link
Contributor

No opinion about the implementation, but the description of the issue looks correct to me, the precedence needs a fix.

@nussjustin-hmmh
Copy link

Got bitten by this quite a lot in the last few days. Would be nice to see it changed.

I agree with the previous comments that it would be better to change the precedence. I opened #684 which does exactly that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants