Skip to content

fix(fmt): propagate native gitignore errors - #322

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/fix-fmt-ignore-error-propagation
Aug 12, 2026
Merged

fix(fmt): propagate native gitignore errors#322
chenjiahan merged 2 commits into
mainfrom
chenjiahan/fix-fmt-ignore-error-propagation

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary

This PR prevents rs fmt from silently ignoring native Gitignore matcher failures, which could otherwise cause ignored files to be formatted. It limits best-effort handling to .gitignore read errors and converts tiny-readdir callback failures into a normal rejected discovery operation. It also adds regression coverage for nested native binding failures without mutating the native matcher prototype.

Related Links

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8583532
Status: ✅  Deploy successful!
Preview URL: https://aa92a572.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-fmt-ignore-er.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 84f3662 into main Aug 12, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-fmt-ignore-error-propagation branch August 12, 2026 01:27
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