Skip to content

fix: report the real layer count in the skip message - #24

Merged
cshuttle merged 1 commit into
mainfrom
fix/layer-count
Jul 28, 2026
Merged

fix: report the real layer count in the skip message#24
cshuttle merged 1 commit into
mainfrom
fix/layer-count

Conversation

@cshuttle

Copy link
Copy Markdown
Owner

Caught on the first real run of #23, from cshuttle/nmon:

mirror is current — 5 identical layers, nothing to copy

The image has 4 layers. layers() ends with tr '\n' ',', leaving a trailing comma, so wc -l counts a phantom empty line.

Cosmetic — the comparison is unaffected, because both sides carry the same trailing comma, and the run correctly took the skip path. But a shared workflow printing a number that contradicts the image will send someone chasing a discrepancy that doesn't exist, and this repo is the supply-chain root for every consumer.

Verified against the live manifest: wc -l → 5, grep -c . → 4, actual → 4.

🤖 Generated with Claude Code

The skip path logged "5 identical layers" for a 4-layer image. layers() ends
with `tr '\n' ','`, leaving a trailing comma, so `wc -l` counts a phantom empty
line.

Cosmetic — the comparison itself is unaffected, since both sides carry the same
trailing comma — but a shared workflow that prints a number contradicting the
image will send someone chasing a discrepancy that does not exist. Verified
against the live manifest: wc -l says 5, grep -c says 4, the image has 4.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@cshuttle
cshuttle merged commit 23a26c9 into main Jul 28, 2026
7 checks passed
@cshuttle
cshuttle deleted the fix/layer-count branch July 28, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant