Repository navigation
Commit 94d0ffd
committed
Take turns on the shared advisory database in bin/bundler-audit
Every checkout on a machine shares ~/.local/share/ruby-advisory-db, and
"bundler-audit check --update" git-pulls into it. When two bin/ci runs
reach Security: Gem audit together, git refuses the second pull and that
run fails. Hold an exclusive flock on a lock file beside the database for
the whole check, so concurrent runs wait their turn instead.1 parent b09bad3 commit 94d0ffd
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments