Skip to content

feat(staged): allow unmatched rs fmt tasks - #188

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/feat-staged-fmt-unmatched
Aug 5, 2026
Merged

feat(staged): allow unmatched rs fmt tasks#188
chenjiahan merged 2 commits into
mainfrom
chenjiahan/feat-staged-fmt-unmatched

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

rs staged can invoke an rs fmt task with only paths that the formatter ignores. This is currently treated as an unmatched invocation and fails the staged workflow, forcing users to add --no-error-on-unmatched-pattern to otherwise valid configurations.

This change marks child commands launched by rs staged and lets rs fmt exit successfully when no paths remain after matching and ignore filtering. Direct rs fmt invocations stay strict, while unsupported files and actual formatting errors continue to fail.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9b1017a
Status: ✅  Deploy successful!
Preview URL: https://97d1cffe.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-staged-fmt-u.rstack-cli.pages.dev

View logs

@chenjiahan chenjiahan changed the title fix(staged): allow unmatched rs fmt tasks feat(staged): allow unmatched rs fmt tasks Aug 5, 2026
@chenjiahan
chenjiahan merged commit 3525ebc into main Aug 5, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-staged-fmt-unmatched branch August 5, 2026 05:02
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.

1 participant