Skip to content

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