Skip to content

A plugin candy that fails to COMPILE is a warning, and the build dies later on 'no provider registered' — the actionable error is buried above an error that names the wrong cause #326

Closed
opencharly/plugin-build
#2

Description

@atrawog

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:

  1. A plugin the build DEPENDS ON failed to build. This is fatal by construction — nothing
    downstream can succeed without it — yet it is emitted at warning: and execution continues.
  2. 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

  1. Edit sdk/go.mod to require a NEWER github.com/opencharly/spec than any
    candy/plugin-*/go.mod requires (do not run task plugins:tidy).
  2. charly box build <any image using a pixi builder>.
  3. Observe: two warnings, then the no provider registered for builder:pixi error.
  4. task plugins:tidy and rebuild — the build succeeds, proving the warnings were the real cause.

Related

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

Activity

  1. atrawog commented on Aug 28, 2026

    @atrawog
    ContributorAuthor

    Validation (2026-08-28) — STILL VALID, needs bed verification

    Verified against current charly main. The warning path still exists: charly/charly/host_build_buildengine.go:52 emits "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.

  2. atrawog commented on Aug 28, 2026

    @atrawog
    ContributorAuthor

    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:

    $ charly box build test-box
    warning: build-time plugin load: plugin "broken-plugin" (source github.com/opencharly/broken-plugin): plugin "broken-plugin": go build in /tmp/plugin-warn-test: exit status 1
    go: go.mod file not found in current directory or any parent directory; see 'go help modules'
    
    --- Building test-box ---
    [2/2] STEP 1/17: FROM localhost/arch:2026.239.1343
    ...
    

    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).

  3. added 2 commits that reference this issue on Aug 28, 2026
    cf44ad2
    746251e
  4. atrawog commented on Aug 29, 2026

    @atrawog
    ContributorAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions