Repository navigation
fix(adhoc-packages): match add in the subcommand position for pnpm/yarn - #2386
Merged
woodruffw merged 3 commits intoSep 15, 2026
Merged
Conversation
Member
|
Hi @marcalexiei, thanks for the PR. I'm taking a look now. |
woodruffw
requested changes
Sep 15, 2026
woodruffw
force-pushed
the
fix/adhoc-packages-pnpm-subcommand
branch
from
September 15, 2026 02:51
9ed89d3 to
71fb088
Compare
Member
|
Thanks @marcalexiei! |
1 task
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.
Pre-submission checks
Please check these boxes:
Mandatory: This PR corresponds to an issue (if not, please create
one first).
Having read the AI policy, I hereby disclose the use of an LLM or other
AI coding assistant in the creation of this PR. PRs will not be rejected
for using AI tools, but will be rejected for undisclosed use or
use that violates the policy.
If a checkbox is not applicable, you can leave it unchecked.
Summary
adhoc-packages–pnpmmatchaddanywhere in the argument list, not in the subcommand position #2385adhoc-packagesmatchedaddanywhere in ayarn/pnpmcommand,so commands that dispatch to another tool like:
pnpm exec changeset addpnpm run build add lodashwere reported as ad-hoc installs.
addnow has to be the subcommand:the first argument after any leading flags and their values.
These commands are still flagged:
pnpm -r add lodashpnpm -C ./sub add lodashpnpm --filter ./pkgs/core/ add lodashpnpm --filter=./pkgs/core/ add lodashyarn workspace @acme/core add lodashThe
yarnandpnpmcases are now merged.Test plan
cargo test -p zizmor --bins test_is_adhoc_install_commandcargo test -p zizmor --test integration adhoc(no snapshot changes)