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 c92682c commit 246cadbCopy full SHA for 246cadb
Sources/Workspace/Workspace.swift
@@ -306,7 +306,15 @@ public class Workspace {
306
self.downloader = downloader
307
self.netrcFilePath = netrcFilePath
308
self.archiver = archiver
309
+
310
+ var checksumAlgorithm = checksumAlgorithm
311
+ #if canImport(CryptoKit)
312
+ if checksumAlgorithm is SHA256, #available(macOS 10.15, *) {
313
+ checksumAlgorithm = CryptoKitSHA256()
314
+ }
315
+ #endif
316
self.checksumAlgorithm = checksumAlgorithm
317
318
self.isResolverPrefetchingEnabled = isResolverPrefetchingEnabled
319
self.skipUpdate = skipUpdate
320
self.enableResolverTrace = enableResolverTrace
0 commit comments