You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified a bunch of repos using pre-commit in parallel and ran git commit at the same time, with unstaged changes. The pre-commit processes did [WARNING] Unstaged files detected., stashed the changes in a pach, ran, and then tried to reapply the patches.
Some repos failed with:
[WARNING] Stashed changes conflicted with hook auto-fixes... Rolling back fixes...
An unexpected error has occurred: CalledProcessError: command: ('/usr/local/Cellar/git/2.31.1/libexec/git-core/git', '-c', 'core.autocrlf=false', 'apply', '--whitespace=nowarn', '/Users/chainz/.cache/pre-commit/patch1618586253')
return code: 1
expected return code: 0
stdout: (none)
stderr:
error: patch failed: .github/workflows/main.yml:21
error: .github/workflows/main.yml: patch does not apply
Check the log at /Users/chainz/.cache/pre-commit/pre-commit.log
It looks like this is due to use of the unix timestamp as the only differentiator in patch file paths, causing the parallely-created patches to clobber each other.
I modified a bunch of repos using
pre-commit
in parallel and rangit commit
at the same time, with unstaged changes. The pre-commit processes did[WARNING] Unstaged files detected.
, stashed the changes in a pach, ran, and then tried to reapply the patches.Some repos failed with:
It looks like this is due to use of the unix timestamp as the only differentiator in patch file paths, causing the parallely-created patches to clobber each other.
pre-commit.log
says:version information
error information
The text was updated successfully, but these errors were encountered: