Repository navigation
Description
Symptom
charly box build offers no way to see a build step's output, and no way to force a cold rebuild. When a layer's RUN is emitted correctly but its effect is absent from the resulting image, there is no sanctioned way to find out why.
Measured
A candy plan step (opencharly/layer-nvidia, merged as #24, tag v2026.322.1139) installs a package that supplies /usr/bin/nvidia-ctk. Every artefact says it should work:
$ podman inspect ghcr.io/opencharly/nvidia:2026.322.1210 \
--format '{{index .Labels "ai.opencharly.description"}}' | grep -o 'nvidia-ctk from the Arch extra repo'
nvidia-ctk from the Arch extra repo # the candy parsed with the step
$ grep -n 'pacman -Sy --noconfirm extra' .build/nvidia/Containerfile
45:pacman -Sy --noconfirm extra/nvidia-container-toolkit # emitted, in the final stage
$ sed -n '35p' .build/nvidia/Containerfile | fold -w 120
RUN --mount=type=bind,from=nvidia,source=/,target=/ctx … sh -c 'SH=/bin/sh; [ -x /bin/bash ] && SH=/bin/bash; exec "$SH"' sh <<'OVCMD'
# a well-formed heredoc; the step is inside it
$ podman run --rm --entrypoint sh …/nvidia:2026.322.1210 -c 'pacman -Sl extra | head -1'
extra 0ad 0.28.0-3 # the extra repo is reachable
$ podman run --rm --user 0 --network host --entrypoint sh <same image> \
-c 'pacman -Sy --noconfirm extra/nvidia-container-toolkit; ls -l /usr/bin/nvidia-ctk'
-rwxr-xr-x 1 root root 13466568 … /usr/bin/nvidia-ctk # the command works by hand
And yet:
$ podman run --rm --entrypoint sh …/nvidia:2026.322.1210 -c 'ls /usr/bin/nvidia-ctk; pacman -Q nvidia-container-toolkit'
ls: cannot access '/usr/bin/nvidia-ctk': No such file or directory
nvidia-container-toolkit 1.20.1-1.1
Why it cannot be diagnosed with the current tooling
$ charly -C . box build --help | grep -E '^\s+--'
--host=STRING
--host-identity-file=STRING
--host-option=HOST-OPTION,...
--repo=OWNER/REPO[@REF]
- No
--progress/--verbose: the build's per-step output is not reachable, so whether thatRUNexecuted and what it printed is unknowable from outside. - No
--no-cache: a changedRUNcannot be forced to re-execute, so "the step ran and failed" cannot be separated from "the step was served from cache".
Reaching around it with a hand-rolled podman build -f .build/nvidia/Containerfile is exactly the ad-hoc path R3 forbids, and it would produce an image no charly gate knows about. So a user is stuck between an unwitnessable build and a forbidden workaround.
Suggested direction
Either flag would do; both would be better:
--progress plain|autoforwarded tobuildctl, and the per-step output captured to a file the user can read.--no-cache(and/or a documented way to invalidate a single layer), so a changedRUNcan be proven to execute.
This is the same class as the "a skipped check reads green" pattern: the mechanism exists, the evidence does not.
Filed from
opencharly/distro-cachyos work on box/nvidia while landing opencharly/layer-nvidia#24.
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (analysed on a live system)
Activity
aitrawog commentedon Nov 18, 2026
Refinement from the reporting session — the one hypothesis still standing, and why the obvious refutation is weaker than it looks.
I had argued a cache hit was refuted because consecutive builds produced different image IDs:
That argument is wrong. The
ai.opencharly.descriptionOCI label — which does contain the new plan step — is baked by aLABELinstruction that sits outside the cachedRUN, so a label change alone yields a new image ID while the layer produced by the changedRUNis still served from cache. Different ID therefore does not prove theRUNre-executed.Consistent with every observation to date:
Containerfile:45, inside a well-formed heredocRUNin the final stage)extrarepo is reachable (pacman -Sl extralists packages)nvidia-container-toolkit 1.20.1-1.1with no/usr/bin/nvidia-ctkA cached
RUNexplains all five. But I cannot prove it, and that is precisely the gap this issue describes: without--no-cachethere is no way to distinguish "the step ran and failed" from "the step never ran".If a maintainer can run one cold build, the question closes either way in a single step.