Skip to content

Commit 3c97a82

Browse files
committed
ContainerRegistry: Unconditionally depend on swift-crypto
1 parent 6a94854 commit 3c97a82

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

Package.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,16 @@ let package = Package(
3232
.target(
3333
name: "ContainerRegistry",
3434
dependencies: [
35-
.product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.linux])),
35+
.target(name: "Basics"),
36+
.product(name: "Crypto", package: "swift-crypto"),
3637
.product(name: "HTTPTypes", package: "swift-http-types"),
3738
.product(name: "HTTPTypesFoundation", package: "swift-http-types"),
38-
.target(
39-
name: "Basics" // AuthorizationProvider
40-
),
4139
]
4240
),
4341
.executableTarget(
4442
name: "containertool",
4543
dependencies: [
4644
.product(name: "ArgumentParser", package: "swift-argument-parser"),
47-
.product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.linux])),
4845
.target(name: "ContainerRegistry"), .target(name: "VendorCNIOExtrasZlib"),
4946
],
5047
swiftSettings: [.swiftLanguageMode(.v5)]

Sources/ContainerRegistry/Blobs.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@
1414

1515
import Foundation
1616
import HTTPTypes
17-
18-
#if canImport(CryptoKit)
19-
import CryptoKit
20-
#else
2117
import Crypto
22-
#endif
2318

2419
/// Calculates the digest of a blob of data.
2520
/// - Parameter data: Blob of data to digest.

Sources/ContainerRegistry/ImageManifest+Digest.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import Foundation
16-
17-
#if canImport(CryptoKit)
18-
import CryptoKit
19-
#else
2016
import Crypto
21-
#endif
2217

2318
public extension ImageManifest {
2419
var digest: String {

0 commit comments

Comments
 (0)