Repository navigation
fix(deps): adopt the shared sdk/spec pins so the plugin builds for 32-bit ARM - #37
Conversation
…-bit ARM sdk/buildkit did not compile for 32-bit targets (opencharly/sdk#262: syscall.Statfs_t.Bsize is int32 on arm/386), which made this plugin unbuildable for armv7. Adopts the fixed shared pins: sdk -> v0.2026260.1434, spec -> v0.2026259.2033. Verified: go build ./... and go test ./... green, and GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=0 go build ./cmd/serve produces a static 32-bit ARM ELF.
Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption ( Blocks
Note (tool-limited, non-blocking on its own): the cited Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption ( Blocks
Note (tool-limited, non-blocking on its own): the cited Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Security screen: PASS — no T1–T4 finding (pins only; no guardrail touched, no secrets/egress/eval, no new dependency, no in-PR instruction addressed to the reviewer). Placement: Comment dispositions
Blocks
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Security screen: PASS — no T1–T4 finding (pins only; no guardrail touched, no secrets/egress/eval, no new dependency, no in-PR instruction addressed to the reviewer). Placement: Comment dispositions
Blocks
Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Security screen: PASS — no T1–T4 finding. No guardrail/validator/rulebook touch, no secrets or egress, no Placement: Comment dispositions
Blocks
Tool-limited (not independently blocking on its own): the cited Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Security screen: PASS — no T1–T4 finding. No guardrail/validator/rulebook touch, no secrets or egress, no Placement: Comment dispositions
Blocks
Tool-limited (not independently blocking on its own): the cited Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Placement: Comment dispositions
Blocks
Tool-limited (not independently blocking on its own): the cited Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Placement: Comment dispositions
Blocks
Tool-limited (not independently blocking on its own): the cited Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Placement: Blocks
Comment dispositions
Tool-limited (not independently blocking): Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Placement: Blocks
Comment dispositions
Tool-limited (not independently blocking): Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Comment dispositions
Blocks
Tool-limited (not relied on above): Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Comment dispositions
Blocks
Tool-limited (not relied on above): Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Comment dispositions
Diff accounting itself now reconciles: Blocks
Tool-limited (not independently blocking, not relied on above): Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: code/config — dependency-pin adoption in Comment dispositions
Diff accounting itself now reconciles: Blocks
Tool-limited (not independently blocking, not relied on above): Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
The module builds for linux/arm/v7 since opencharly/sdk#263 fixed the 32-bit buildkit compile (Statfs_t.Bsize is int32 on arm). The README says so, with the static-cross-build command an appliance without a glibc toolchain needs. No code change; the pin that enables it is the preceding commit.
Review — PASSHead SHA: Change class: code/config + docs — Security screen: PASS — T1–T4 clean: no guardrail/validator/rulebook/workflow touch (no Comment dispositions (all prior comments are against the OLD head
Tool-limited (not relied on as findings): Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Change class: code/config + docs — Security screen: PASS — T1–T4 clean: no guardrail/validator/rulebook/workflow touch (no Comment dispositions (all prior comments are against the OLD head
Tool-limited (not relied on as findings): Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
The Platforms section added by #37 told the reader to run a cross-compile with a repo-relative ./cmd/serve — a reader-facing command needing a Go toolchain and a checkout, which R4a forbids on a non-install page. It now states the property: charly host-builds the plugin statically for the host it runs on, so installing charly is all the reader needs. Co-authored-by: Andreas Trawoeger <[email protected]>
Summary of changes
Adopts the fixed shared
sdk/specpins so this plugin builds for 32-bit ARM (armv7), and exercises the re-pinned plugin live.README.md: a Platforms section documenting that the module now builds forlinux/arm/v7(the static cross-build command), the platform this change enables.candy/plugin-vm/go.mod+go.sum:sdkv0.2026258.1713 →v0.2026260.1434,specv0.2026257.1817 →v0.2026259.2033. No source change. The branch carries two commits — the pin adoption and the README update — which the org's squash-merge collapses into one.go.mod— the two contract pins (sdk,spec;specis a DIRECT require in this module), plus thegolang.org/x/*bumps whose width the sdk pin carries:crypto,term(no// indirectmarker in the file).// indirectrequires:net,sys,text.go.sum— the same two contract pins, plus the full transitivex/*refresh:cryptov0.52.0→v0.54.0,modv0.35.0→v0.37.0,net,syncv0.20.0→v0.22.0,sys,term,text,toolsv0.44.0→v0.47.0.No module-identity change: this module's
go.sumalready carriedplugin-egress/candy/plugin-egress v0.2026237.1419andplugin-init/candy/plugin-init v0.2026237.1424at the base — those lines are unchanged CONTEXT in the hunk, not part of this PR.Root cause:
sdk/buildkitdid not compile for 32-bit targets —syscall.Statfs_t.Bsizeisint32onarm/386butint64onamd64/arm64, sobuildkit/privileged_runner.go'sint64(st.Bavail) * st.Bsizewas a type mismatch off the 64-bit targets (opencharly/sdk#262, fixed in opencharly/sdk#263, merged tagv0.2026260.1434). Every module importingsdk/buildkit— this plugin included — therefore failed to build for armv7 until its own sdk pin moved.Closes / relates to: depends on
opencharly/sdk#263(merged), closes the armv7 gap tracked asopencharly/sdk#262. Part of the armv7 delivery foropencharly/plugin-jetkvm.Breaking change + rollback:
none— a dependency pin with no API or CLI change. Revert the merge to roll back.Change class
charly-or-sdk Go— a dependency-pin adoption in a plugin module; no source change.How tested
Before / after at THIS module's real base pin (v0.2026258.1713). The armv7 cross-compile is the change's whole point, so it is shown failing on the base and succeeding on the head:
The re-pinned plugin runs LIVE through charly. From this branch's checkout,
charlyloads the plugin (host-building it from the local tree) and dispatches its command, which exits 0:The armv7 binary executes on real 32-bit ARM. The same plugin built for armv7 is copied to a Rockchip RV1106
armv7ldevice (over ssh) and executes there — it loads and runs its own code path to its natural conclusion:That line is the command's own out-of-process guard, and its text states the reason inline. The same binary on the amd64 host produced the analogous result through
charly(the exit-0 dispatch above).RCA on the exit code. The device has no
charlyhost to dispatch to, so the plugin takes its own no-host path and exits 1 with its usage banner — that is the plugin's own argument handling running, not a crash, a signal, or anexecfailure: the armv7 ELF loads and executes, which is this PR's claim. On the amd64 host, dispatched throughcharly, the same plugin reaches exit 0 (the live-dispatch block above).This host has no armv7 binfmt (
podman run --platform linux/arm/v7 alpine uname -m→exec format error), so the device is the available armv7 execution target; it is a physical appliance, NOT adisposable: truecharly target, so the binary is only copied and executed — no charly deploy is applied and nothing is mutated on it.Change classification
go build ./...+go test ./...(full transcript) + the armv7 cross-compile (before/after at the real base pin) + the livecharlydispatch of the re-pinned plugin + execution of the armv7 binary on real armv7 hardware.fully tested and validated— the changed artifact (the plugin as built against the new pins) was exercised live throughcharlywith exit 0, and the armv7 build it enables was proven by the before/after cross-compile and by running the armv7 binary on an armv7 device.Harness rulebook compliance
/charly-internals:plugin(the plugin/candy model),/charly-internals:go(module pins),/charly-internals:git-workflow.sdk/buildkit(Statfs_t.Bsize), not a build flag; the module's build/test output is clean (no warnings on the changed package).plugin-egress/plugin-initsibling lines carried ingo.sumare base context, untouched by this PR, and thex/*moves are the adopted pin's transitive effect; all are accounted for above.replace, no vendoring, no second copy.$ git grep -n 'v0.2026258.1713\|v0.2026257.1817' -- candy/plugin-vm/go.mod candy/plugin-vm/go.sum(no output) exit=1