Skip to content

fix: remove erroneous -- from podman exec command#61

Merged
dean0x merged 1 commit intomainfrom
fix/double-dash-leak
Mar 29, 2026
Merged

fix: remove erroneous -- from podman exec command#61
dean0x merged 1 commit intomainfrom
fix/double-dash-leak

Conversation

@dean0x
Copy link
Copy Markdown
Owner

@dean0x dean0x commented Mar 29, 2026

Summary

  • Root cause fix: exec_in_container in both NativePodmanRuntime and OrbStackRuntime inserted a bare -- between the container ID and command in podman exec. Since podman treats everything after the container ID as the command, -- was interpreted as the literal executable — causing crun: executable file '--' not found in $PATH on every bare mino run.
  • Defensive fix: Added strip_separator() to handle clap's last = true leaking -- into the command vec when mino run -- is invoked without a trailing command.
  • Base image: Added tmux with TPM, tmux-resurrect, and tmux-continuum pre-installed.

Test plan

  • cargo test — 876 tests pass (840 unit + 23 binary + 13 integration)
  • cargo clippy — clean
  • Manual: mino-dev run drops into shell (verified)
  • CI passes
  • Manual: mino-dev run -- echo hello runs echo
  • Rebuild base image to verify tmux + TPM installation

The two-phase shell flow (create + sleep + exec) inserted a bare `--`
between the container ID and command in `podman exec`, causing crun to
look for an executable named `--`. Remove it from both NativePodmanRuntime
and OrbStackRuntime.

Also add `strip_separator()` to defensively clear clap's `last = true`
artifact when `mino run --` is invoked without a trailing command.

Add tmux with TPM, resurrect, and continuum plugins to the base image.
@dean0x dean0x merged commit 671729f into main Mar 29, 2026
6 of 7 checks passed
@dean0x dean0x deleted the fix/double-dash-leak branch March 29, 2026 00:16
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