Repository navigation
Description
What happens
A plugin candy that fails to COMPILE is reported as a warning: and the build continues. The
build then dies further downstream on a symptom that names neither the plugin nor the compile
error, so the message a reader gets points at the wrong thing entirely.
Observed while bumping sdk/go.mod's github.com/opencharly/spec require, which left every
out-of-tree plugin candy's own go.mod behind (details in the sibling report below). Verbatim:
warning: build-time plugin load: plugin "github.com/opencharly/charly/candy/plugin-cdp"
(source github.com/opencharly/charly/candy/plugin-cdp): plugin
"github.com/opencharly/charly/candy/plugin-cdp": go build in .../candy/plugin-cdp: exit status 1
go: updates to go.mod needed; to update it:
go mod tidy
warning: plugin load (builder:pixi): plugin "github.com/opencharly/charly/candy/plugin-builder-pixi"
...: go build in .../candy/plugin-builder-pixi: exit status 1
go: updates to go.mod needed; to update it:
go mod tidy
charly: error: command "build": rendering Containerfiles: generating Containerfile for jupyter:
image "jupyter": candy "github.com/opencharly/charly/candy/jupyter" builder "pixi":
InvokeProvider: no provider registered for builder:pixi (the target plugin must be loaded
before a peer invokes it, and no connectable candy source provides it)
The error: line is what a reader acts on, and it describes a REGISTRATION problem — "no
connectable candy source provides it" — when the actual cause is one line of go.mod drift in a
module that did compile fine yesterday. The remedy the error text suggests (find a candy source
that provides builder:pixi) is not the remedy.
Why it is wrong, not merely unhelpful
Two distinct failures are being conflated, and only the second is surfaced at the severity it
deserves:
- A plugin the build DEPENDS ON failed to build. This is fatal by construction — nothing
downstream can succeed without it — yet it is emitted atwarning:and execution continues. - A plugin that is genuinely absent/unreferenced. Degrading to a warning is correct here.
Today both take path 2. That also collides with R1: a warning is a failure for RCA purposes, and
the project's landing gate is zero warnings — so a build that emits two of these and then fails
is emitting exactly the diagnostic class the rulebook says must never be accepted, while burying
the actionable text (go: updates to go.mod needed) above the fold of a much louder error.
Expected
A plugin whose go build exits non-zero fails the command AT THAT POINT, with the compiler's
own stderr as the error body — not a warning followed by an unrelated downstream error. If there
is a legitimate case for continuing past a failed plugin build, it should be the case that is
opt-in and named, not the default.
Scope
load_plugins / the build-time plugin loader and its InvokeProvider registration path. The
92 plugin candies are each their own Go module, so this loader is the single point where a
per-module compile failure becomes visible — or does not.
How to reproduce
- Edit
sdk/go.modto require a NEWERgithub.com/opencharly/specthan any
candy/plugin-*/go.modrequires (do not runtask plugins:tidy). charly box build <any image using a pixi builder>.- Observe: two warnings, then the
no provider registered for builder:pixierror. task plugins:tidyand rebuild — the build succeeds, proving the warnings were the real cause.
Related
- The lockstep coupling that produced this — bumping
sdk/go.mod's spec require obliges the same
bump in all 92candy/plugin-*/go.modfiles — is a separate report. - go.work + replace mask sdk/go.mod's spec pin: no superproject bed can fail on a stale pin, so every sdk PR proved only via beds has an unvalidated dependency #324 covers the adjacent blind spot:
go.work+replacemask a stale spec
pin, so no superproject bed can fail on one.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
Activity
fix(mods)!: the spec pin moves in lockstep across every module, and a…
atrawog commentedon Aug 28, 2026
Validation (2026-08-28) — STILL VALID, needs bed verification
Verified against current
charlymain. The warning path still exists:charly/charly/host_build_buildengine.go:52emits "warning: build-time plugin load: %v" and continues, and the downstream "no provider registered" error still names the wrong cause (plugin_dispatch_reverse.go:116). The plugin mechanism changed (compiled-in proxy modules, #407-#409), but the warning-vs-fatal asymmetry is unchanged.Full verification needs a live build with a deliberately-broken plugin to confirm the end-to-end behavior. Value: MEDIUM — the error message misleads; making the compile failure fatal with the actionable error is a real DX fix.
atrawog commentedon Aug 28, 2026
Final validation (2026-08-28) — VERIFIED LIVE (confirmed still valid)
Live demonstration with a minimal broken-plugin project (
plugin:candy whose go module fails to compile) and a fresh worktree-built charly:The compile failure is a warning and the build continues — exactly the asymmetry the issue describes. The downstream "no provider registered" failure (
plugin_dispatch_reverse.go:116) is unchanged.Status: VERIFIED — keep open. Value: MEDIUM (the error message misleads; making the compile failure fatal with the actionable error is a real DX fix).
test(build): B12 gate — a plugin candy that fails to compile is a fat…
fix(build): propagate a plugin compile failure as a fatal error, not …
fix(build): a plugin candy that fails to compile is a fatal error, no…
atrawog commentedon Aug 29, 2026
Closing: the fix landed and merged on main. Verified against the current state of main — the fix is present (see the validation comment for the specific evidence).