rustfmt-check
rustfmt-check copied to clipboard
possibility of race condition in commit mode?
can this action run in this race condition when in commit
mode?:
- commit A is pushed in a PR
-
rustfmt-check
is running and detects it needs to push a commit with formatted rust code and pushes commit B. - meanwhile user pushed commit C with new code.
- commit B from
rustfmt-check
arrives later than commit C, and this commit B ends up overwriting commit C.
B
from the rustfmt-check
would be rejected if it's pushed after C
.
We would have to explicitly set force
with updateRef
to overwrite.