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