Skip to content

always use values from lookup function if available#266

Merged
ndeloof merged 1 commit into
compose-spec:masterfrom
glours:env-var-priority
May 30, 2022
Merged

always use values from lookup function if available#266
ndeloof merged 1 commit into
compose-spec:masterfrom
glours:env-var-priority

Conversation

@glours
Copy link
Copy Markdown
Collaborator

@glours glours commented May 26, 2022

This PR is a simple workaround to fix an existing issue with env variables not taking precedence to env file values

We definitely should take time to refactor the parsing and interpolating process to strictly follow the rules defines in the compose doc
I think, we also need to make those rules clear in the Compose Specification, WDYT? @ulyssessouza @ndeloof

Signed-off-by: Guillaume Lours [email protected]

@glours glours requested a review from ulyssessouza May 26, 2022 11:46
@glours glours requested a review from ndeloof as a code owner May 26, 2022 11:46
@glours glours self-assigned this May 26, 2022
@glours glours marked this pull request as draft May 27, 2022 12:28
@glours glours force-pushed the env-var-priority branch from 58c0096 to da32e3a Compare May 27, 2022 19:55
@glours glours marked this pull request as ready for review May 27, 2022 19:57
@glours glours force-pushed the env-var-priority branch from da32e3a to ac04a5c Compare May 30, 2022 13:44
@glours glours force-pushed the env-var-priority branch 2 times, most recently from 08acaac to a4f05be Compare May 30, 2022 14:22
@glours glours force-pushed the env-var-priority branch from a4f05be to 8256ba8 Compare May 30, 2022 14:25
@ndeloof ndeloof merged commit 704c890 into compose-spec:master May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interpolation of variables in .env ignores variable precedence in V2 - was working in V1

2 participants