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
azldev config dump presents itself as showing the "fully resolved project configuration", but it stops at the file-level merge and does not run the per-component resolver. As a result, two important sources of effective configuration are invisible in the dump even though builds honor them:
overlay-files expansion — overlays loaded from overlays/*.overlay.toml (per-file overlay format, docs) never appear in components.<name>.overlays.
Inherited default-component-config — fields injected from project/distro/component-group defaults never appear on the concrete component.
Downstream commands (build, render, prepare-sources, diff-sources) do run the resolver (applyInheritedDefaultsToComponent → ExpandResolvedOverlayFiles), so the artifacts they produce are correct. The gap is display-only, but it makes config dump misleading as an authoring/debugging aid.
Repro
Given a component using the per-file overlay format:
But azldev component list -p GraphicsMagick -O json | jq '.[0].Overlays' shows the overlay, and azldev component render -p GraphicsMagick correctly removes the BuildRequires: libheif-devel line from the rendered spec.
Impact
Confuses users during authoring — a config that clearly "works" appears empty in the dump, prompting incorrect "my overlays aren't being applied" diagnoses.
Blocks the documented pattern of using azldev config dump -q -O json | jq ... for ad-hoc queries about effective component config (works today only for fields authored inline).
Makes the MCP config-dump tool less useful for coding agents that ask "what is the effective config for component X?".
Suggested fix
Add a flag to config dump that runs the per-component resolver before serialization. Some options:
A (preferred):azldev config dump --resolved (or --expand) — off by default to preserve today's round-trippable output; when set, iterates components through the resolver and replaces the components map with resolved copies (including expanded overlays and merged inherited defaults).
B: Always dump the resolved view; drop the round-trippability guarantee. Breaking change; probably not worth it.
C: Documentation-only — clarify in Long help and config-file.md that config dump is pre-resolver and point users to component list -O json for the resolved view. Cheapest fix but doesn't help the MCP-tool case.
Happy to send a PR for option A if the team agrees on the shape.
Related code
Dump entry point: internal/app/azldev/cmds/config/dump.go — marshals raw env.Config().
Resolver used by build/render/prepare-sources: internal/app/azldev/core/components/resolver.go — Resolver.FindComponents → getComponentFromNameAndSpecPath → applyInheritedDefaultsToComponent → ExpandResolvedOverlayFiles.
Summary
azldev config dumppresents itself as showing the "fully resolved project configuration", but it stops at the file-level merge and does not run the per-component resolver. As a result, two important sources of effective configuration are invisible in the dump even though builds honor them:overlay-filesexpansion — overlays loaded fromoverlays/*.overlay.toml(per-file overlay format, docs) never appear incomponents.<name>.overlays.default-component-config— fields injected from project/distro/component-group defaults never appear on the concrete component.Downstream commands (
build,render,prepare-sources,diff-sources) do run the resolver (applyInheritedDefaultsToComponent→ExpandResolvedOverlayFiles), so the artifacts they produce are correct. The gap is display-only, but it makesconfig dumpmisleading as an authoring/debugging aid.Repro
Given a component using the per-file overlay format:
Then:
But
azldev component list -p GraphicsMagick -O json | jq '.[0].Overlays'shows the overlay, andazldev component render -p GraphicsMagickcorrectly removes theBuildRequires: libheif-develline from the rendered spec.Impact
azldev config dump -q -O json | jq ...for ad-hoc queries about effective component config (works today only for fields authored inline).config-dumptool less useful for coding agents that ask "what is the effective config for component X?".Suggested fix
Add a flag to
config dumpthat runs the per-component resolver before serialization. Some options:azldev config dump --resolved(or--expand) — off by default to preserve today's round-trippable output; when set, iterates components through the resolver and replaces thecomponentsmap with resolved copies (including expandedoverlaysand merged inherited defaults).Longhelp and config-file.md thatconfig dumpis pre-resolver and point users tocomponent list -O jsonfor the resolved view. Cheapest fix but doesn't help the MCP-tool case.Happy to send a PR for option A if the team agrees on the shape.
Related code
internal/app/azldev/cmds/config/dump.go— marshals rawenv.Config().internal/app/azldev/core/components/resolver.go—Resolver.FindComponents→getComponentFromNameAndSpecPath→applyInheritedDefaultsToComponent→ExpandResolvedOverlayFiles.overlay-files); this gap has existed since then.