Skip to content

fix: anonymous volumes crash the emitter#11

Merged
lesnik512 merged 5 commits into
mainfrom
fix/anonymous-volumes
Jul 8, 2026
Merged

fix: anonymous volumes crash the emitter#11
lesnik512 merged 5 commits into
mainfrom
fix/anonymous-volumes

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Fixes a crash in 0.1.2 on Compose files with anonymous volumes, and cuts the 0.1.3 patch release.

Bug

A short-form volume that is a single container path with no source:target (e.g. - /var/cache/models) passed validate() but crashed emit.run_flags at volume.split(":", 1) with ValueError: not enough values to unpack. Hit on a real CI compose file.

Fix

  • run_flags emits a colon-less volume verbatim as -v <path> (anonymous volume; no host-path translation).
  • validate() rejects a colon-less entry that is not absolute (e.g. ./cache) with a clear error, instead of letting emit produce a broken -v ./cache — keeping the loud-refusal contract.

Independently reviewed (bug reproduced, fix confirmed); the relative-anonymous hardening addresses the reviewer's one finding. Rationale in planning/changes/2026-07-08.02-anonymous-volumes.md; capability doc updated in architecture/supported-subset.md.

Release

Bundles planning/releases/0.1.3.md so tagging 0.1.3 after merge publishes cleanly.

Tests

just test-ci — 89 passed, 100% line coverage. just lint-ci clean.

lesnik512 added 5 commits July 8, 2026 17:27
A single container-path volume (no source:target, e.g. /var/cache/models)
passed validate() but crashed run_flags at volume.split(':', 1). Emit it as an
anonymous volume (-v <path>) with no host-path translation, matching Compose
and podman semantics.
An anonymous volume must be an absolute container path. A colon-less entry
that is not absolute (e.g. ./cache) is malformed Compose; validate() now raises
instead of letting emit produce a broken -v ./cache.
@lesnik512
lesnik512 merged commit 5bed4db into main Jul 8, 2026
6 checks passed
@lesnik512
lesnik512 deleted the fix/anonymous-volumes branch July 8, 2026 14:41
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