Repository navigation
Fix service environment precedence and interpolation sources - #177
Merged
Merged
Conversation
Mcrich23
marked this pull request as ready for review
November 14, 2026 17:35
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes which environment variables
uppasses to a container:.envprovides values for${VARIABLE}substitutions. Its variables are no longer automatically added to every container or allowed to overrideenv_filevalues.env_filefiles, later files override earlier ones.environmentvalues override file values, including empty strings and values containing${...}.For example, if
app.envcontainsMODE=productionand.envcontainsMODE=development, a service usingenv_file: app.envnow receivesMODE=production. Settingenvironment: {MODE: "${MODE}"}explicitly uses the substitution value instead.Added regression coverage using temporary env files and the same environment assembly function that
upcalls. Updated the README to reflect the fixed behavior. Null values, bare-key inheritance, dotenv parsing, and remaining interpolation limitations are outside this change.Validation: 67 static unit tests across 7 suites passed, including environment assembly, interpolation, file loading, and list-form environment tests.
git diff --checkpasses. No dynamic tests or Container operations ran.Related work: overlaps the environment assembly changes in #102. #153 leaves that work to #102 and does not fix these precedence issues. This PR does not replace either PR in full.
References: environment precedence and
env_file.