Skip to content

Commit 88b9701

Browse files
committed
Work around 'Task' not found error in CI
1 parent d3280c6 commit 88b9701

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/PackageRegistry/SignatureValidation.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ struct SignatureValidation {
144144
observabilityScope: ObservabilityScope,
145145
completion: @escaping (Result<SigningEntity?, Error>) -> Void
146146
) {
147+
#if swift(>=5.5.2)
147148
Task {
148149
do {
149150
let signatureStatus = try await SignatureProvider.status(
@@ -191,6 +192,7 @@ struct SignatureValidation {
191192
completion(.failure(RegistryError.failedToValidateSignature(error)))
192193
}
193194
}
195+
#endif
194196
}
195197

196198
private func getSourceArchiveSignature(

0 commit comments

Comments
 (0)