We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c4650 commit 087800eCopy full SHA for 087800e
Sources/Commands/SwiftTool.swift
@@ -648,6 +648,8 @@ public class SwiftTool {
648
if !fileSystem.exists(sharedFingerprintsDirectory) {
649
try fileSystem.createDirectory(sharedFingerprintsDirectory, recursive: true)
650
}
651
+ // And make sure we can lock the directory (which writes a lock file)
652
+ try fileSystem.withLock(on: sharedFingerprintsDirectory, type: .exclusive) { }
653
return sharedFingerprintsDirectory
654
} catch {
655
self.observabilityScope.emit(warning: "Failed creating shared fingerprints directory: \(error)")
0 commit comments