just version 1.40.0 (on MacOS) strips some characters out of json values in the .env file.
Example:
.env:
Justfile:
set dotenv-load
default:
echo $VAR
Output:
Output using npx dotenv-cli -p VAR:
Note how just is stripping the quotes off the key and value.
I see that just is using dotenvy. Perhaps this bug is related: allan2/dotenvy#84
Workaround:
Putting quotes around the value in the .env file, e.g.:
just version 1.40.0 (on MacOS) strips some characters out of json values in the .env file.
Example:
.env:
Justfile:
Output:
Output using
npx dotenv-cli -p VAR:Note how just is stripping the quotes off the key and value.
I see that just is using dotenvy. Perhaps this bug is related: allan2/dotenvy#84
Workaround:
Putting quotes around the value in the .env file, e.g.: