-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
3.3.7 killed DotEnv :( #24015
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
Comments
I won't be able to have a look at this today, but if someone can make a PR to fix this, I can probably make a release tonight. |
Sorry, something went wrong.
/cc @nicolas-grekas? |
@PhilETaylor can you provide a reproducer asap please? eg a standard edition which has the issue? |
on the case :) |
@PhilETaylor can you please check #24016, does it fix the issue? |
@nicolas-grekas 🎉 BINGO! - #24016 fixes my problem ;-) Incredible turnaround time! |
…aphs (nicolas-grekas) This PR was merged into the 3.3 branch. Discussion ---------- [DI] Fix tracking env var placeholders nested in object graphs | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24015 | License | MIT | Doc PR | - Commits ------- a8397cf [DI] Fix tracking env var placeholders nested in object graphs
3.3.8 released. |
thats insane... :-) thanks! |
Thanks for the quick report. |
Upgraded to 3.3.8 and confirmed all is ok :) 💤 bedtime now :) |
Hey @nicolas-grekas I think I have another one of these for you to think about - when deploying to production :-( I could not replicate this on a fresh install, but it looks related to the 3.3.7 issue :) in my config_prod.yml I have
and in .env
and I get
|
@PhilETaylor env placeholders don't work fine for configuration nodes now allowing strings, as they are strings. This is not related to the 3.3.7 issue. This is the case since the introduction of env placeholders. |
ah ok - still seems that this should be a perfectly acceptable assumption that I can use env placeholders where ever I like in a config yml right? Isnt that the whole point of DotEnv? I note also that
gives and thus the env() placeholder is returning the wrong value... thus making it unuseable :( |
Despite indeed being neither a bug nor related to the previous issue I would most certainly recommend making a new issue to track this, as it is a practical shortcoming of the current implementation with, as far as I ca B2A1 n see, no real workaround right now without reintroducing deployment information in the environments, which is exactly what env variables are meant to fix. We may need some kind of syntax like
Yes and no. Methinks it should be possible to import env variables as ints, floats or bools according to strictly defined rules. We should certainly not magically decide that the string |
No need for a new issue, this is #22151, we're working on it already. |
ok in this case I think I need to move back to vlucas/phpdotenv and use SYMFONY__ prefixed env vars in .env again :-( I'm all for being an early adopter, but it seems symfony/dotenv and env() placeholders is too young at the moment for me :) :) Thanks for the speedy replies. Appreciated much. |
Uh oh!
There was an error while loading. Please reload this page.
3.3.6 working fine.
Composer update to 3.3.7, cleared all caches..
config.yml like:
turns into
note the:
[tcp://env_redis_server_b4db6b8d7bb2020da1133e356d30a3e5:6379]
that is NOT a server name :(
The text was updated successfully, but these errors were encountered: