fix(image): no single quote in a label (kaniko rejects it) and a check for it #41

Merged
Defame1297 merged 1 commits from fix/image-label-apostrophe into main 2026-10-26 19:45:35 +00:00
Owner

Why

After #40 the ci image failed to build (run 2556, job 2604): kaniko stopped at the LABEL step with unexpected end of statement while looking for matching single-quote. The description label said "the distribution's python3". Docker accepts that text; kaniko's own LABEL parser does not. The molecule images (0.1.3, 0.1.1) built because their labels have no apostrophe; ci 0.2.6 died before the push, so nothing was published. The same run shows --label works and every label is applied.

What

  • images/ci/Dockerfile: "the distribution's python3" -> "the distribution python3" in the description label.
  • check_image_versions.py pins: fails when any label value holds a single quote, with a test. (The label parser split the instruction like a shell and accepted the quote, which is why review did not catch it.)
  • ci 0.2.6 -> 0.2.7: the lint gate wants a version higher than main's 0.2.6, though 0.2.6 was never published. Skipping 0.2.6 is harmless.

Verified / not verified

  • Verified: hooks, 132 script tests, pins and bump.
  • Not verified: the ci 0.2.7 build; the merge builds it (the molecule images are not rebuilt, their versions are published). Whether the package page shows the labels as intended is still unseen.

🤖 Generated with Claude Code

## Why After #40 the `ci` image failed to build (run 2556, job 2604): kaniko stopped at the LABEL step with `unexpected end of statement while looking for matching single-quote`. The description label said "the distribution's python3". Docker accepts that text; kaniko's own LABEL parser does not. The molecule images (0.1.3, 0.1.1) built because their labels have no apostrophe; `ci` 0.2.6 died before the push, so nothing was published. The same run shows `--label` works and every label is applied. ## What - `images/ci/Dockerfile`: "the distribution's python3" -> "the distribution python3" in the description label. - `check_image_versions.py pins`: fails when any label value holds a single quote, with a test. (The label parser split the instruction like a shell and accepted the quote, which is why review did not catch it.) - `ci` 0.2.6 -> 0.2.7: the lint gate wants a version higher than `main`'s 0.2.6, though 0.2.6 was never published. Skipping 0.2.6 is harmless. ## Verified / not verified - Verified: hooks, 132 script tests, `pins` and `bump`. - Not verified: the `ci` 0.2.7 build; the merge builds it (the molecule images are not rebuilt, their versions are published). Whether the package page shows the labels as intended is still unseen. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-10-26 19:44:54 +00:00
fix(image): no single quote in a label (kaniko rejects it) and a check for it
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 13s
6c85d61827
Run 2556: the ci image failed at its LABEL step (unexpected end of statement while looking for
matching single-quote) on the apostrophe in 'the distribution's python3'. Docker accepts it,
kaniko's own LABEL parser does not, and the molecule images built only because their labels
have none. The label text is reworded and check_image_versions.py pins now fails on a single
quote in any label. ci 0.2.6 was never pushed; the gate wants a higher version than main's,
so the fix is 0.2.7.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 merged commit f37f448e12 into main 2026-10-26 19:45:35 +00:00
Defame1297 deleted branch fix/image-label-apostrophe 2026-10-26 19:45:36 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#41