Repository navigation
Pin execa to 9.x to fix Windows batch file argument escaping - #11852
Merged
iscai-msft merged 1 commit intoSep 3, 2026
Merged
Conversation
Timothee Guerin (timotheeguerin)
marked this pull request as ready for review
September 3, 2026 16:10
Timothee Guerin (timotheeguerin)
requested review from
catalinaperalta,
iscai-msft,
Laurent Mazuel (lmazuel) and
Mark Cowlishaw (markcowl)
as code owners
September 3, 2026 16:10
Timothee Guerin (timotheeguerin)
enabled auto-merge
September 3, 2026 16:10
Contributor
|
No changes needing a change description found. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A .chronus/changes entry appears required for this non-excluded dependency change per .chronus/config.yaml.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Pins execa in the pnpm catalog back to the 9.x line to avoid the Windows .cmd/.bat double-caret escaping behavior introduced in execa 10, which breaks batch files like Maven’s mvn.cmd.
Changes:
- Update the pnpm catalog to use
execa: ^9.6.1with an explanatory comment. - Update the lockfile to resolve
execato 9.6.1 (and adjust transitive deps accordingly).
File summaries
| File | Description |
|---|---|
| pnpm-workspace.yaml | Pins execa to 9.6.1 in the workspace catalog with rationale for the Windows behavior regression in execa 10. |
| pnpm-lock.yaml | Updates the resolved execa version (and related snapshot entries) to match the catalog pin. |
Review details
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
- Files reviewed: 1/2 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
You can try these changes here
|
iscai-msft
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
execa 10 rewrote how it spawns commands on Windows (#1251, which replaced
cross-spawn). It now caret-escapes every argument twice for any.cmd/.batfile, on the assumption that the batch file is an npm cmd-shim which re-expands%*through a secondcmd.exeparse.cross-spawnonly did that for actual shims undernode_modules/.bin.Batch files that inspect their own arguments instead of forwarding them get the extra carets verbatim and break. Maven's
mvn.cmdis one of them:so
mvn clean installspawned through execa dies immediately on Windows with:This already breaks the
typespec-javagenerator build in typespec-azure, which invokes Maven through execa and takes this catalog. What execa 10 produces versus 9:There is no upstream issue or fixed release yet (10.0.1 is latest), so this pins the catalog back to
^9.6.1with a comment. Nothing in this repo uses the execa 10 API surface (nodeChildProcess,killDescendants, the new stream methods), so the downgrade is a no-op here beyond the Windows behavior.