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
{{ message }}
Repository navigation
chant graph ignores build-time parameters, so it and chant build disagree about the same source #1359
chant graph discovers source without resolving buildParams, so params.* is empty and every declaration conditioned on a parameter takes its default. chant build on the same source, same flags, same environment emits something different.
Repro
kubemicrovm-ops declares a tier build parameter with an env: mapping and branches its Kubernetes plane on it.
That is the minimal shape: a MicroVM and no class, connector or replica set. --param tier=prod-ha produces the same output, so it is not the env: mapping specifically — the graph resolves no build parameters at all.
Cause
runGraphView (and runStackGraph, and the declared-overlay discovery inside runGraphLive) call discover(projectPath) with no options. build.ts calls resolveCliBuildParams(config.buildParams, …) first and threads the provenance through. DiscoveryOptions already accepts buildParams; the graph handler just never passes it.
Why it matters beyond the graph
behold's tier lens is built on chant graph — .behold.json names the project's tier env var and behold threads the picked tier into the shell-out's environment. That plumbing is correct, and the lens still does nothing, because the command underneath ignores it. Filed there as behold#114 on the assumption it was behold's bug; it is not.
More generally, a graph that disagrees with the build is worse than no graph: it is a picture of source nobody will deploy.
Fix
Resolve build parameters in the graph handler the same way chant build does, and pass the provenance to every discover() call it makes. An unresolvable required parameter should stop the graph rather than emit a defaulted one.
Activity
fix(graph): resolve build-time parameters, so graph and build agree (#…
docs(cli): --param names every command that honors it (#1427)
fix: build the observed estate with the caller's parameters (#1483) (#…