motdotla / dotenv-expand

Variable expansion for dotenv. Expand variables already on your machine for use in your .env file.
https://dotenvx.com
BSD 2-Clause "Simplified" License
953 stars 95 forks source link

Expand to self without stack overflow #100

Closed mch closed 8 months ago

mch commented 1 year ago

Addresses issue #98.

My use case invovles setting a variable to a default if it is not already set.

mch commented 1 year ago

This isn't actually fixing the problem in my production set up.

mch commented 1 year ago

My prod set up contained something like THING=${THING-default}, missing the :, which I guess is valid bash but not supported here.

motdotla commented 9 months ago

we should add support for ${THING-default}. ticket added https://github.com/motdotla/dotenv-expand/issues/105

motdotla commented 8 months ago

support added here: https://github.com/motdotla/dotenv-expand/pull/109

being released as v11.0.0