Skip to content

fix: Don't evaluate substitutions hidden by values from resolved objects#839

Merged
ennru merged 3 commits intomainfrom
wip-substitution-hidden-middle-value
Apr 24, 2026
Merged

fix: Don't evaluate substitutions hidden by values from resolved objects#839
ennru merged 3 commits intomainfrom
wip-substitution-hidden-middle-value

Conversation

@johanandren
Copy link
Copy Markdown
Collaborator

@johanandren johanandren commented Apr 14, 2026

References

Resolving a ConfigDelayedMergeObject eagerly resolved every stack entry, evaluating substitutions that the spec says should be skipped when hidden by a value that cannot merge with them. This fix prunes keys from lower-priority object entries whose accumulated merged value already ignores fallbacks, so those substitutions are discarded without evaluation, matching the equivalent direct-literal case.

Copy link
Copy Markdown
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ennru ennru merged commit 833bacb into main Apr 24, 2026
5 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.

2 participants