New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when Filtering no matching
, exit code may be not 0?
#7403
Comments
I don't think it should fail. Why should it? You can filter for instance by changed packages, if no packages were changed, it is OK that nothing is found. |
Oh, I forgot that. In my case, some typo or workflow script will run pnpm --filter "$wrong_package_name" (yes, I use it in pnpm workspace). So, maybe we can add an option look like |
The option sounds good to me. |
close #7403 --------- Co-authored-by: Zoltan Kochan <z@kochan.io>
close pnpm#7403 --------- Co-authored-by: Zoltan Kochan <z@kochan.io>
Verify latest release
pnpm version
v8
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
pnpm --filter "$wrong_name" "$any_entry"
it will print
No projects matched the filters in xxxxx
but exit code is 0.Describe the Bug
when use pnpm Filtering (No projects matched) in some script/dockerfile will not make workflow failed.
Expected Behavior
exit code !== 0
Which Node.js version are you using?
v21.3.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: