godotenv
godotenv copied to clipboard
dotenv should look up in parent directories for .env
My .env
file is at the root of my project, but when running tests, the current working directory is within test modules.
This would match the behavior of https://github.com/dotenv-rs/dotenv/tree/3c1a77bc95821777e5ceb996c5e0b082f2a3ea38#usage and https://github.com/theskumar/python-dotenv.
Yep, you're right. Will bring that feature in as a breaking change
@joho I made a PR to resolve this issue: https://github.com/joho/godotenv/pull/166
It would be great to get your feedback!
Hi, any updates?
I've been umming and ahhing on this one. I know I was very supportive when originally opened, but ever since I've been worrying about directory traversal attacks.
I'm about to close the door on breaking changes (see #182) but will hopefully include this one before I do (if I can come to comfort on the traversal risks)