This repository was archived by the owner on Jul 2, 2026. It is now read-only.
Commit dfd8a14
committed
fix(pmd): use atomic rename to avoid concurrent extraction conflicts
Extract to a temporary directory first, then atomically move into place.
This prevents parallel prek processes from contending over partial extractions
and hitting unzip errors when the destination already exists.1 parent d662240 commit dfd8a14
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
0 commit comments