Closed pashaosipyants closed 2 years ago
Hai!,
Thanks for this fix! I was not aware of this bug
I'll merge this next week, in unison with some tests to ensure there aren't any regressions
@hyperupcall are any updates on those tests? awaiting this fix :)
Yup! got it, thanks for the reminder :) The failing tests are due to a new testing suite I'm working on atm, so everything should still be good
What I have?
/path/to/my/project/.env
/path/to/my/project/.env.leave
/path/to/my/project/src
(project subdirectory)cat /path/to/my/project/.env
cat /path/to/my/project/.env.leave
What I do?
cd /path/to/my/project/src
echo $MY_VAR
cd /
echo $MY_VAR
What I expect?
cd /path/to/my/project/src
echo $MY_VAR
cd /
echo $MY_VAR
Summary
When leave happens out of a subdirectory of the directory containing
.env.leave
it is not sourced.