Skip to content

fix ability to override values set in env file by interpolation #793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Jun 4, 2025

as we process env file, need to resolve interpolation variables from the env bine processed, which includes both env parsed from earlier file + variables read from previous lines in file. Still, values set by os.Env have higher precedence

closes docker/compose#12901

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof merged commit 8da9902 into compose-spec:main Jul 15, 2025
8 checks passed
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.

[BUG] Environment Variables Override Incorrect When Interpolation Used In --env-file
2 participants