Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-subprocess v0.1.2

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:36
570696a

mojo-subprocess-public v0.1.2

Released: 2026-11-08 · Commit: 5cb7dca · Previous: v0.1.1

What it does

Python's subprocess.run for Mojo: capture, input, timeout, cwd, env, check.

Highlights

  • Packaging only: the conda recipe pins mojo-compiler to the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.

Changes

Changed

  • recipe.yaml: mojo-compiler run dependency pinned to the build's minor (<1.3.0a0).

Verified

Check Result
pkg-conda dry run on the version commit (H1-H3,H6) NOT RUN: blocked, a dependency is not on a channel yet (H7); recipe-only change

Known limits

  • Packages are built on one Mojo minor only; see the package protocol.

Upgrade / run

None: no API change.

Commits

  • 5cb7dca build: bump version to 0.1.2
  • ea9b57d build: recipe pins mojo-compiler to the build's minor

mojo-subprocess v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 07 Nov 14:41

mojo-subprocess-public v0.1.1

Released: 2026-11-07 · Tag: v0.1.1 · Previous: v0.1.0

What it does

Python's subprocess.run for Mojo: capture, input, timeout, cwd, env, check.

Highlights

  • Docs only: CHANGELOG names no home path.

Changes

Changed

  • CHANGELOG.md and the release notes name no home path.

Verified

Check Result
mojo-lib-audit on this tree PASS
gh-publish --check (ci-local) OK

Known limits

Upgrade / run

None: no code or API change.

Commits

git log v0.1.0..v0.1.1

mojo-subprocess v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 05 Nov 11:03

mojo-subprocess v0.1.0

What it does

Python's subprocess.run for Mojo: capture, input, timeout, cwd, env, check.

Highlights

  • Deadlock-free on large outputs: one poll loop over all pipes plus a pidfd.
  • run(["true"]) in about 0.4 ms; 0.6 GB/s through a pipe.

Changes

  • First release: run, check_output (stderr passes through to the parent), CompletedProcess.
  • close_stdin (child reads an empty stdin, EOF, like Python input=b"") and capture_stderr (False leaves stderr on the parent's fd 2).

Verified

  • scripts/ci.sh PASS on Mojo 1.2.0 and 1.3.0.dev2026110305: 4 scenarios byte-identical with Python subprocess (codes, signals, floods, input, cwd/env, errors), each twice; 6/6 mutants.

Known limits

  • Linux only (posix_spawn file actions with addchdir_np, pidfd). No Popen streaming API, no shell=True, no stdin from a file.
  • Needs glibc >= 2.29 (posix_spawn_file_actions_addchdir_np). The program is looked up in the PATH of the parent's environment, not of env=.

Upgrade / run

  • Add mojo-subprocess (pulls mojo-posix), then from subprocess import run. Try examples/quickstart.mojo.

Commits

  • All commits up to tag v0.1.0: git log v0.1.0.