Skip to content

refactor: run ensurePrereqs for all e commands#841

Merged
jkleinsc merged 1 commit intomainfrom
fix-prereqs
Apr 8, 2026
Merged

refactor: run ensurePrereqs for all e commands#841
jkleinsc merged 1 commit intomainfrom
fix-prereqs

Conversation

@codebytere
Copy link
Copy Markdown
Member

The Node.js 22 and Python 3.9 runtime checks in ensurePrereqs() were only invoked from e-sync, so users on unsupported runtimes got a clear error on e sync but silent or confusing failures from e build, e patches, e test, and friends.

Move the call into the top-level dispatcher in src/e.ts so every subcommand is covered by a single call site, and drop the now-redundant invocation from e-sync.ts.

The Node.js 22 and Python 3.9 runtime checks in ensurePrereqs() were
only invoked from e-sync, so users on unsupported runtimes got a clear
error on `e sync` but silent or confusing failures from `e build`,
`e patches`, `e test`, and friends.

Move the call into the top-level dispatcher in src/e.ts so every
subcommand is covered by a single call site, and drop the now-redundant
invocation from e-sync.ts.
@codebytere codebytere requested review from a team and ckerr as code owners April 8, 2026 08:18
@codebytere codebytere requested a review from dsanders11 April 8, 2026 08:18
@jkleinsc jkleinsc merged commit 097dd85 into main Apr 8, 2026
12 checks passed
@jkleinsc jkleinsc deleted the fix-prereqs branch April 8, 2026 18:35
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.

3 participants