Skip to content

Commit 41e9744

Browse files
committed
Try using the unpublished nodegit thread safety switch
See nodegit/nodegit#836 May help with the segfaults we've been seeing.
1 parent 10a1339 commit 41e9744

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/builder.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import {
1717
import { config } from './config';
1818
import { closeLogger, l, getLoggerForBuild } from './logger';
1919

20+
21+
// hidden method in nodegit that turns on thread safety
22+
// see https://github.com/nodegit/nodegit/pull/836
23+
(git as any).enableThreadSafety();
24+
2025
export const MAX_CONCURRENT_BUILDS = 3;
2126
export const buildQueue: Array<CommitHash> = [];
2227
const pendingHashes: Set<CommitHash> = new Set();

0 commit comments

Comments
 (0)