You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest docker-compose v2 has a regression where it can't load defaults from .env files, which it could in v1, this is "blamed" on the use godotenv, specifically https://github.com/joho/godotenv/blob/ddf83eb33bbb136f62617a409142b74b91dbcff3/godotenv.go#L330
Generally I've been resistant to accepting non-standard syntax that isn't present in the upstream/original ruby library
That said, docker is docker, and a flagship in the go ecosystem so I'd be happy to accept a PR supporting it and cut a fresh release (which I'm way overdue for)
hoshsadiq
added a commit
to hoshsadiq/godotenv
that referenced
this issue
Dec 13, 2021
This PR adds some basic support for POSIX like parameter expansion. This
includes the following four scenarios:
- ${VAR:-STRING} If VAR is empty or unset, use STRING as its value.
- ${VAR-STRING} If VAR is unset, use STRING as its value.
- ${VAR:+STRING} If VAR is not empty, use STRING as its value.
- ${VAR+STRING} If VAR is set, use STRING as its value.
This is in addition to the usual "${VAR}" scenario.
Fixesjoho/godotenv#153
The latest docker-compose v2 has a regression where it can't load defaults from .env files, which it could in v1, this is "blamed" on the use godotenv, specifically
https://github.com/joho/godotenv/blob/ddf83eb33bbb136f62617a409142b74b91dbcff3/godotenv.go#L330
See the discussion here: https://github.com/docker/compose-cli/issues/1900
.env
The text was updated successfully, but these errors were encountered: