Description
What
scripts/bootstrap-charly.sh --dev-plugin <candy>=<repo-checkout> resolves a RELATIVE <repo-checkout> against the GENERATOR's working directory (<repo>/charly/charly), not against the caller's shell, so a path the operator typed relative to their own shell silently points somewhere else and the error blames their checkout.
Measured
Run from the charly repo root of an umbrella worktree, with the plugin checkout a SIBLING of charly/:
$ cd <worktree>/charly
$ pwd
/home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/dsh-unit3-pod/opencharly/charly
$ ls -d ../plugin-substrate/candy/plugin-substrate/go.mod
../plugin-substrate/candy/plugin-substrate/go.mod
$ bash scripts/bootstrap-charly.sh --dev-plugin plugin-substrate=../plugin-substrate
pluginsgen: -dev-plugin plugin-substrate: /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/dsh-unit3-pod/opencharly/charly/plugin-substrate/candy/plugin-substrate/go.mod: open go.mod: open .../charly/plugin-substrate/candy/plugin-substrate/go.mod: no such file or directory (a compiled plugin must be its own Go module)
exit status 1The path in the message is …/dsh-unit3-pod/opencharly/charly/plugin-substrate/… — the .. segment is GONE. The same command with an ABSOLUTE path builds:
$ bash scripts/bootstrap-charly.sh --dev-plugin "plugin-substrate=$PWD/../plugin-substrate"
bootstrap-charly: built ./bin/charly (2026.317.0159) — DEV BUILD, local plugin sourceMechanism
charly/internal/pluginsgen/main.go resolveDevPlugins:
abs, err := filepath.Abs(d.dir)
...
gomod := filepath.Join(abs, "candy", d.name, "go.mod")filepath.Abs is CWD-relative, and pluginsgen is executed from the MAIN MODULE directory (<repo>/charly/charly), one level below the repo root the script cded to. So ../plugin-substrate (relative to <repo>/charly) becomes <repo>/charly/plugin-substrate.
Missed control
The failure IS loud, and that is the one thing that works: the tool refuses and names the go.mod it wanted. What it does not carry is the base the path was resolved against, so the message reads as "your checkout is wrong" when the checkout is fine. Nothing in the repo's own gates exercises --dev-plugin with a relative path, so the class is invisible to CI.
Blast radius
Every session that follows the flag's own documented spelling with a relative path: the flag documents <repo-checkout> and nothing says the form must be absolute. The workaround (absolute path) costs one retry and a confused reader, and it is what makes the message's wording actively misleading.
Root fix
Resolve d.dir against -root (the repo root the generator already receives), or make the script pass an absolute path by resolving $spec against $ROOT before it builds dev_flags — one of the two, not both. The error should quote the path AS THE OPERATOR WROTE IT beside the absolute path it resolved to.
Found while landing opencharly/spec#304 unit 3 (pipeline → task → pod), moving the kind: pod body into plugin-substrate's CUE module; the leg's own R10 bed needed a dev build linking the unmerged plugin.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Activity