Skip to content
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

Fix possible file corruptions via fmt hook #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azat
Copy link

@azat azat commented Jul 24, 2024

rustfmt should not be called on multiple files, since it can update included files as well, which will lead to writing different files without a lock, and inevitably will corrupt them.

rustfmt should not be called on multiple files, since it can update
included files as well, which will lead to writing different files
without a lock, and inevitably will corrupt them.
azat added a commit to azat/chdig that referenced this pull request Jul 25, 2024
The problem is that rustfmt called on multiple files, while this will
lead to concurrent file modifications, see [1].

  [1]: doublify/pre-commit-rust#35
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