Build Information
Failed to build ZipPinch, reference 1.4.0 (24c92b
), with Swift 6.1 for Linux on 27 Apr 2025 22:58:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buh/ZipPinch.git
Reference: 1.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/buh/ZipPinch
* tag 1.4.0 -> FETCH_HEAD
HEAD is now at 24c92bc Sendable progress callback.
Cloned https://github.com/buh/ZipPinch.git
Revision (git rev-parse @):
24c92bcc25074af4777df009af4558e7b00e5fe8
SUCCESS checkout https://github.com/buh/ZipPinch.git at 1.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/buh/ZipPinch.git
https://github.com/buh/ZipPinch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "ZipPinch",
"name" : "ZipPinch",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "ZipPinch",
"targets" : [
"ZipPinch"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ZipPinchTests",
"module_type" : "SwiftTarget",
"name" : "ZipPinchTests",
"path" : "Tests/ZipPinchTests",
"sources" : [
"ArchiveTests.swift"
],
"target_dependencies" : [
"ZipPinch"
],
"type" : "test"
},
{
"c99name" : "ZipPinch",
"module_type" : "SwiftTarget",
"name" : "ZipPinch",
"path" : "Sources/ZipPinch",
"product_memberships" : [
"ZipPinch"
],
"sources" : [
"URLSession+ZIPEntries.swift",
"URLSession+ZIPEntry.swift",
"URLSession+ZIPFolder.swift",
"URLSession+ZIPRange.swift",
"ZIPFolder.swift",
"ZipFileFormat.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling ZipPinch URLSession+ZIPFolder.swift
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:25:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves the contents of the ZIP folder.
27 | func zipFolderData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:30:22: error: cannot find type 'URLRequest' in scope
28 | _ folder: ZIPFolder,
29 | from url: URL,
30 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
31 | delegate: URLSessionTaskDelegate? = nil,
32 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:31:19: error: cannot find type 'URLSessionTaskDelegate' in scope
29 | from url: URL,
30 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
31 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
32 | progress: ZIPProgress? = nil
33 | ) async throws -> [(entry: ZIPEntry, data: Data)] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:45:22: error: cannot find type 'URLRequest' in scope
43 | func zipFolderData(
44 | _ folder: ZIPFolder,
45 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate? = nil,
47 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | _ folder: ZIPFolder,
45 | for request: URLRequest,
46 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | progress: ZIPProgress? = nil
48 | ) async throws -> [(entry: ZIPEntry, data: Data)] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:61:22: error: cannot find type 'URLRequest' in scope
59 | _ entries: [ZIPEntry],
60 | from url: URL,
61 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
62 | delegate: URLSessionTaskDelegate? = nil,
63 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:62:19: error: cannot find type 'URLSessionTaskDelegate' in scope
60 | from url: URL,
61 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
62 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
63 | progress: ZIPProgress? = nil
64 | ) async throws -> [(entry: ZIPEntry, data: Data)] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:76:22: error: cannot find type 'URLRequest' in scope
74 | func zipEntriesData(
75 | _ entries: [ZIPEntry],
76 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
77 | delegate: URLSessionTaskDelegate? = nil,
78 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:77:19: error: cannot find type 'URLSessionTaskDelegate' in scope
75 | _ entries: [ZIPEntry],
76 | for request: URLRequest,
77 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
78 | progress: ZIPProgress? = nil
79 | ) async throws -> [(entry: ZIPEntry, data: Data)] {
[4/9] Compiling ZipPinch URLSession+ZIPRange.swift
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves a part of the contents of a URL and delivers the data asynchronously.
27 | func rangedData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:53:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
51 | }
52 |
53 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
54 | func checkStatusCodeOK() throws {
55 | let httpStatusCode = (self as? HTTPURLResponse)?.statusCode ?? 0
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:28:22: error: cannot find type 'URLRequest' in scope
26 | /// Retrieves a part of the contents of a URL and delivers the data asynchronously.
27 | func rangedData(
28 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
29 | bytesRange: ClosedRange<Int64>,
30 | delegate: URLSessionTaskDelegate?
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:30:19: error: cannot find type 'URLSessionTaskDelegate' in scope
28 | for request: URLRequest,
29 | bytesRange: ClosedRange<Int64>,
30 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
31 | ) async throws -> Data {
32 | var request = request
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:45:24: error: cannot find type 'AsyncBytes' in scope
43 | bytesRange: ClosedRange<Int64>,
44 | delegate: URLSessionTaskDelegate?
45 | ) async throws -> (AsyncBytes, URLResponse) {
| `- error: cannot find type 'AsyncBytes' in scope
46 | var request = request
47 | request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | /// Retrieves a part of the contents as bytes of a URL and delivers the data asynchronously.
41 | func rangedAsyncBytes(
42 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
43 | bytesRange: ClosedRange<Int64>,
44 | delegate: URLSessionTaskDelegate?
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:44:19: error: cannot find type 'URLSessionTaskDelegate' in scope
42 | for request: URLRequest,
43 | bytesRange: ClosedRange<Int64>,
44 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
45 | ) async throws -> (AsyncBytes, URLResponse) {
46 | var request = request
[5/9] Compiling ZipPinch URLSession+ZIPEntry.swift
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:45:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
43 | }
44 |
45 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
46 | /// Retrieves the contents of the ZIP entry.
47 | func zipEntryData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:133:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
131 | // MARK: - Private
132 |
133 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
134 | func zipEntryDataWithProgress(
135 | for request: URLRequest,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:50:22: error: cannot find type 'URLRequest' in scope
48 | _ entry: ZIPEntry,
49 | from url: URL,
50 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
51 | delegate: URLSessionTaskDelegate? = nil,
52 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:51:19: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | from url: URL,
50 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
51 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 | progress: ZIPProgress? = nil
53 | ) async throws -> Data {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:65:22: error: cannot find type 'URLRequest' in scope
63 | func zipEntryData(
64 | _ entry: ZIPEntry,
65 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
66 | delegate: URLSessionTaskDelegate? = nil,
67 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:66:19: error: cannot find type 'URLSessionTaskDelegate' in scope
64 | _ entry: ZIPEntry,
65 | for request: URLRequest,
66 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
67 | progress: ZIPProgress? = nil
68 | ) async throws -> Data {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:135:22: error: cannot find type 'URLRequest' in scope
133 | private extension URLSession {
134 | func zipEntryDataWithProgress(
135 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
136 | bytesRange: ClosedRange<Int64>,
137 | delegate: URLSessionTaskDelegate?,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:137:19: error: cannot find type 'URLSessionTaskDelegate' in scope
135 | for request: URLRequest,
136 | bytesRange: ClosedRange<Int64>,
137 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
138 | progress: ZIPProgress
139 | ) async throws -> Data {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Emitting module ZipPinch
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves the ZIP entries.
27 | public func zipEntries(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:126:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
124 | // MARK: - Extracting ZIP Entries
125 |
126 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
127 | func findCentralDirectory<T: ZIPEndRecordProtocol>(
128 | for request: URLRequest,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:45:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
43 | }
44 |
45 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
46 | /// Retrieves the contents of the ZIP entry.
47 | func zipEntryData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:133:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
131 | // MARK: - Private
132 |
133 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
134 | func zipEntryDataWithProgress(
135 | for request: URLRequest,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:25:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves the contents of the ZIP folder.
27 | func zipFolderData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves a part of the contents of a URL and delivers the data asynchronously.
27 | func rangedData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:53:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
51 | }
52 |
53 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
54 | func checkStatusCodeOK() throws {
55 | let httpStatusCode = (self as? HTTPURLResponse)?.statusCode ?? 0
/host/spi-builder-workspace/Sources/ZipPinch/ZIPFolder.swift:26:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'ZIPFolder' may have shared mutable state; this is an error in the Swift 6 language mode
23 | import Foundation
24 |
25 | public struct ZIPFolder: Identifiable, Hashable, Equatable {
| `- note: consider making struct 'ZIPFolder' conform to the 'Sendable' protocol
26 | public static let empty = ZIPFolder(name: "")
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'ZIPFolder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | public let id = UUID()
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:33:23: warning: static property 'decompress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | public struct ZIPEntry: Identifiable, Hashable, Codable {
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
| |- warning: static property 'decompress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'decompress' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'decompress' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | try $0.decompressed(using: .zlib)
35 | }
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:34:16: error: value of type 'NSData' has no member 'decompressed'
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
34 | try $0.decompressed(using: .zlib)
| `- error: value of type 'NSData' has no member 'decompressed'
35 | }
36 |
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:34:37: error: cannot infer contextual base in reference to member 'zlib'
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
34 | try $0.decompressed(using: .zlib)
| `- error: cannot infer contextual base in reference to member 'zlib'
35 | }
36 |
[7/9] Compiling ZipPinch URLSession+ZIPEntries.swift
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves the ZIP entries.
27 | public func zipEntries(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:126:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
124 | // MARK: - Extracting ZIP Entries
125 |
126 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
127 | func findCentralDirectory<T: ZIPEndRecordProtocol>(
128 | for request: URLRequest,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:29:22: error: cannot find type 'URLRequest' in scope
27 | public func zipEntries(
28 | from url: URL,
29 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
30 | delegate: URLSessionTaskDelegate? = nil
31 | ) async throws -> [ZIPEntry] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:30:19: error: cannot find type 'URLSessionTaskDelegate' in scope
28 | from url: URL,
29 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
30 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
31 | ) async throws -> [ZIPEntry] {
32 | try await zipEntries(for: URLRequest(url: url, cachePolicy: cachePolicy), delegate: delegate)
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// Retrieves the ZIP entries.
36 | public func zipEntries(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate? = nil
39 | ) async throws -> [ZIPEntry] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | public func zipEntries(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> [ZIPEntry] {
40 | let zipContentLength = try await zipContentLength(for: request, delegate: delegate)
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:49:22: error: cannot find type 'URLRequest' in scope
47 | public func zipContentLength(
48 | from url: URL,
49 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
50 | delegate: URLSessionTaskDelegate? = nil
51 | ) async throws -> Int64 {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:50:19: error: cannot find type 'URLSessionTaskDelegate' in scope
48 | from url: URL,
49 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
50 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
51 | ) async throws -> Int64 {
52 | try await zipContentLength(for: .init(url: url, cachePolicy: cachePolicy), delegate: delegate)
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:59:22: error: cannot find type 'URLRequest' in scope
57 | /// To have the zip file content length is useful for caching requests.
58 | public func zipContentLength(
59 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
60 | delegate: URLSessionTaskDelegate? = nil
61 | ) async throws -> Int64 {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:60:19: error: cannot find type 'URLSessionTaskDelegate' in scope
58 | public func zipContentLength(
59 | for request: URLRequest,
60 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
61 | ) async throws -> Int64 {
62 | var headRequest = request
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:84:22: error: cannot find type 'URLRequest' in scope
82 | from url: URL,
83 | contentLength: Int64,
84 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
85 | delegate: URLSessionTaskDelegate? = nil
86 | ) async throws -> [ZIPEntry] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:85:19: error: cannot find type 'URLSessionTaskDelegate' in scope
83 | contentLength: Int64,
84 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
85 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
86 | ) async throws -> [ZIPEntry] {
87 | try await zipEntries(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:96:22: error: cannot find type 'URLRequest' in scope
94 | /// Retrieves the ZIP entries with a known length of the zip file contents.
95 | public func zipEntries(
96 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
97 | contentLength: Int64,
98 | delegate: URLSessionTaskDelegate? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:98:19: error: cannot find type 'URLSessionTaskDelegate' in scope
96 | for request: URLRequest,
97 | contentLength: Int64,
98 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
99 | ) async throws -> [ZIPEntry] {
100 | let entries: [ZIPEntry]
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:128:22: error: cannot find type 'URLRequest' in scope
126 | private extension URLSession {
127 | func findCentralDirectory<T: ZIPEndRecordProtocol>(
128 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
129 | contentLength: Int64,
130 | endRecordType: T.Type,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:131:19: error: cannot find type 'URLSessionTaskDelegate' in scope
129 | contentLength: Int64,
130 | endRecordType: T.Type,
131 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
132 | ) async throws -> [ZIPEntry] {
133 | let endRecordData = try await rangedData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:168:22: error: cannot find type 'URLRequest' in scope
166 |
167 | func parseCentralDirectory(
168 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
169 | endRecord: some ZIPEndRecordProtocol,
170 | delegate: URLSessionTaskDelegate?
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:170:19: error: cannot find type 'URLSessionTaskDelegate' in scope
168 | for request: URLRequest,
169 | endRecord: some ZIPEndRecordProtocol,
170 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
171 | ) async throws -> [ZIPEntry] {
172 | let directoryRecordData = try await rangedData(
[8/9] Compiling ZipPinch ZIPFolder.swift
/host/spi-builder-workspace/Sources/ZipPinch/ZIPFolder.swift:26:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'ZIPFolder' may have shared mutable state; this is an error in the Swift 6 language mode
23 | import Foundation
24 |
25 | public struct ZIPFolder: Identifiable, Hashable, Equatable {
| `- note: consider making struct 'ZIPFolder' conform to the 'Sendable' protocol
26 | public static let empty = ZIPFolder(name: "")
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'ZIPFolder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | public let id = UUID()
[9/9] Compiling ZipPinch ZipFileFormat.swift
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:33:23: warning: static property 'decompress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | public struct ZIPEntry: Identifiable, Hashable, Codable {
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
| |- warning: static property 'decompress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'decompress' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'decompress' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | try $0.decompressed(using: .zlib)
35 | }
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:34:16: error: value of type 'NSData' has no member 'decompressed'
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
34 | try $0.decompressed(using: .zlib)
| `- error: value of type 'NSData' has no member 'decompressed'
35 | }
36 |
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:34:37: error: cannot infer contextual base in reference to member 'zlib'
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
34 | try $0.decompressed(using: .zlib)
| `- error: cannot infer contextual base in reference to member 'zlib'
35 | }
36 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling ZipPinch URLSession+ZIPRange.swift
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves a part of the contents of a URL and delivers the data asynchronously.
27 | func rangedData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:53:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
51 | }
52 |
53 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
54 | func checkStatusCodeOK() throws {
55 | let httpStatusCode = (self as? HTTPURLResponse)?.statusCode ?? 0
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:28:22: error: cannot find type 'URLRequest' in scope
26 | /// Retrieves a part of the contents of a URL and delivers the data asynchronously.
27 | func rangedData(
28 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
29 | bytesRange: ClosedRange<Int64>,
30 | delegate: URLSessionTaskDelegate?
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:30:19: error: cannot find type 'URLSessionTaskDelegate' in scope
28 | for request: URLRequest,
29 | bytesRange: ClosedRange<Int64>,
30 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
31 | ) async throws -> Data {
32 | var request = request
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:45:24: error: cannot find type 'AsyncBytes' in scope
43 | bytesRange: ClosedRange<Int64>,
44 | delegate: URLSessionTaskDelegate?
45 | ) async throws -> (AsyncBytes, URLResponse) {
| `- error: cannot find type 'AsyncBytes' in scope
46 | var request = request
47 | request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:42:22: error: cannot find type 'URLRequest' in scope
40 | /// Retrieves a part of the contents as bytes of a URL and delivers the data asynchronously.
41 | func rangedAsyncBytes(
42 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
43 | bytesRange: ClosedRange<Int64>,
44 | delegate: URLSessionTaskDelegate?
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:44:19: error: cannot find type 'URLSessionTaskDelegate' in scope
42 | for request: URLRequest,
43 | bytesRange: ClosedRange<Int64>,
44 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
45 | ) async throws -> (AsyncBytes, URLResponse) {
46 | var request = request
[3/8] Compiling ZipPinch URLSession+ZIPFolder.swift
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:25:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves the contents of the ZIP folder.
27 | func zipFolderData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:30:22: error: cannot find type 'URLRequest' in scope
28 | _ folder: ZIPFolder,
29 | from url: URL,
30 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
31 | delegate: URLSessionTaskDelegate? = nil,
32 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:31:19: error: cannot find type 'URLSessionTaskDelegate' in scope
29 | from url: URL,
30 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
31 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
32 | progress: ZIPProgress? = nil
33 | ) async throws -> [(entry: ZIPEntry, data: Data)] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:45:22: error: cannot find type 'URLRequest' in scope
43 | func zipFolderData(
44 | _ folder: ZIPFolder,
45 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate? = nil,
47 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | _ folder: ZIPFolder,
45 | for request: URLRequest,
46 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | progress: ZIPProgress? = nil
48 | ) async throws -> [(entry: ZIPEntry, data: Data)] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:61:22: error: cannot find type 'URLRequest' in scope
59 | _ entries: [ZIPEntry],
60 | from url: URL,
61 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
62 | delegate: URLSessionTaskDelegate? = nil,
63 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:62:19: error: cannot find type 'URLSessionTaskDelegate' in scope
60 | from url: URL,
61 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
62 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
63 | progress: ZIPProgress? = nil
64 | ) async throws -> [(entry: ZIPEntry, data: Data)] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:76:22: error: cannot find type 'URLRequest' in scope
74 | func zipEntriesData(
75 | _ entries: [ZIPEntry],
76 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
77 | delegate: URLSessionTaskDelegate? = nil,
78 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:77:19: error: cannot find type 'URLSessionTaskDelegate' in scope
75 | _ entries: [ZIPEntry],
76 | for request: URLRequest,
77 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
78 | progress: ZIPProgress? = nil
79 | ) async throws -> [(entry: ZIPEntry, data: Data)] {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module ZipPinch
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves the ZIP entries.
27 | public func zipEntries(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:126:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
124 | // MARK: - Extracting ZIP Entries
125 |
126 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
127 | func findCentralDirectory<T: ZIPEndRecordProtocol>(
128 | for request: URLRequest,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:45:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
43 | }
44 |
45 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
46 | /// Retrieves the contents of the ZIP entry.
47 | func zipEntryData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:133:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
131 | // MARK: - Private
132 |
133 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
134 | func zipEntryDataWithProgress(
135 | for request: URLRequest,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPFolder.swift:25:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves the contents of the ZIP folder.
27 | func zipFolderData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves a part of the contents of a URL and delivers the data asynchronously.
27 | func rangedData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPRange.swift:53:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
51 | }
52 |
53 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
54 | func checkStatusCodeOK() throws {
55 | let httpStatusCode = (self as? HTTPURLResponse)?.statusCode ?? 0
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:34:16: error: value of type 'NSData' has no member 'decompressed'
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
34 | try $0.decompressed(using: .zlib)
| `- error: value of type 'NSData' has no member 'decompressed'
35 | }
36 |
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:34:37: error: cannot infer contextual base in reference to member 'zlib'
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
34 | try $0.decompressed(using: .zlib)
| `- error: cannot infer contextual base in reference to member 'zlib'
35 | }
36 |
[5/8] Compiling ZipPinch URLSession+ZIPEntry.swift
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:45:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
43 | }
44 |
45 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
46 | /// Retrieves the contents of the ZIP entry.
47 | func zipEntryData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:133:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
131 | // MARK: - Private
132 |
133 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
134 | func zipEntryDataWithProgress(
135 | for request: URLRequest,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:50:22: error: cannot find type 'URLRequest' in scope
48 | _ entry: ZIPEntry,
49 | from url: URL,
50 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
51 | delegate: URLSessionTaskDelegate? = nil,
52 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:51:19: error: cannot find type 'URLSessionTaskDelegate' in scope
49 | from url: URL,
50 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
51 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
52 | progress: ZIPProgress? = nil
53 | ) async throws -> Data {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:65:22: error: cannot find type 'URLRequest' in scope
63 | func zipEntryData(
64 | _ entry: ZIPEntry,
65 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
66 | delegate: URLSessionTaskDelegate? = nil,
67 | progress: ZIPProgress? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:66:19: error: cannot find type 'URLSessionTaskDelegate' in scope
64 | _ entry: ZIPEntry,
65 | for request: URLRequest,
66 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
67 | progress: ZIPProgress? = nil
68 | ) async throws -> Data {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:135:22: error: cannot find type 'URLRequest' in scope
133 | private extension URLSession {
134 | func zipEntryDataWithProgress(
135 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
136 | bytesRange: ClosedRange<Int64>,
137 | delegate: URLSessionTaskDelegate?,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:137:19: error: cannot find type 'URLSessionTaskDelegate' in scope
135 | for request: URLRequest,
136 | bytesRange: ClosedRange<Int64>,
137 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
138 | progress: ZIPProgress
139 | ) async throws -> Data {
[6/8] Compiling ZipPinch URLSession+ZIPEntries.swift
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | import Foundation
24 |
25 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | /// Retrieves the ZIP entries.
27 | public func zipEntries(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:126:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
124 | // MARK: - Extracting ZIP Entries
125 |
126 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
127 | func findCentralDirectory<T: ZIPEndRecordProtocol>(
128 | for request: URLRequest,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:29:22: error: cannot find type 'URLRequest' in scope
27 | public func zipEntries(
28 | from url: URL,
29 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
30 | delegate: URLSessionTaskDelegate? = nil
31 | ) async throws -> [ZIPEntry] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:30:19: error: cannot find type 'URLSessionTaskDelegate' in scope
28 | from url: URL,
29 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
30 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
31 | ) async throws -> [ZIPEntry] {
32 | try await zipEntries(for: URLRequest(url: url, cachePolicy: cachePolicy), delegate: delegate)
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:37:22: error: cannot find type 'URLRequest' in scope
35 | /// Retrieves the ZIP entries.
36 | public func zipEntries(
37 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | delegate: URLSessionTaskDelegate? = nil
39 | ) async throws -> [ZIPEntry] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:38:19: error: cannot find type 'URLSessionTaskDelegate' in scope
36 | public func zipEntries(
37 | for request: URLRequest,
38 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
39 | ) async throws -> [ZIPEntry] {
40 | let zipContentLength = try await zipContentLength(for: request, delegate: delegate)
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:49:22: error: cannot find type 'URLRequest' in scope
47 | public func zipContentLength(
48 | from url: URL,
49 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
50 | delegate: URLSessionTaskDelegate? = nil
51 | ) async throws -> Int64 {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:50:19: error: cannot find type 'URLSessionTaskDelegate' in scope
48 | from url: URL,
49 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
50 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
51 | ) async throws -> Int64 {
52 | try await zipContentLength(for: .init(url: url, cachePolicy: cachePolicy), delegate: delegate)
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:59:22: error: cannot find type 'URLRequest' in scope
57 | /// To have the zip file content length is useful for caching requests.
58 | public func zipContentLength(
59 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
60 | delegate: URLSessionTaskDelegate? = nil
61 | ) async throws -> Int64 {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:60:19: error: cannot find type 'URLSessionTaskDelegate' in scope
58 | public func zipContentLength(
59 | for request: URLRequest,
60 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
61 | ) async throws -> Int64 {
62 | var headRequest = request
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:84:22: error: cannot find type 'URLRequest' in scope
82 | from url: URL,
83 | contentLength: Int64,
84 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
| `- error: cannot find type 'URLRequest' in scope
85 | delegate: URLSessionTaskDelegate? = nil
86 | ) async throws -> [ZIPEntry] {
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:85:19: error: cannot find type 'URLSessionTaskDelegate' in scope
83 | contentLength: Int64,
84 | cachePolicy: URLRequest.CachePolicy = .reloadRevalidatingCacheData,
85 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
86 | ) async throws -> [ZIPEntry] {
87 | try await zipEntries(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:96:22: error: cannot find type 'URLRequest' in scope
94 | /// Retrieves the ZIP entries with a known length of the zip file contents.
95 | public func zipEntries(
96 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
97 | contentLength: Int64,
98 | delegate: URLSessionTaskDelegate? = nil
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:98:19: error: cannot find type 'URLSessionTaskDelegate' in scope
96 | for request: URLRequest,
97 | contentLength: Int64,
98 | delegate: URLSessionTaskDelegate? = nil
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
99 | ) async throws -> [ZIPEntry] {
100 | let entries: [ZIPEntry]
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:128:22: error: cannot find type 'URLRequest' in scope
126 | private extension URLSession {
127 | func findCentralDirectory<T: ZIPEndRecordProtocol>(
128 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
129 | contentLength: Int64,
130 | endRecordType: T.Type,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:131:19: error: cannot find type 'URLSessionTaskDelegate' in scope
129 | contentLength: Int64,
130 | endRecordType: T.Type,
131 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
132 | ) async throws -> [ZIPEntry] {
133 | let endRecordData = try await rangedData(
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:168:22: error: cannot find type 'URLRequest' in scope
166 |
167 | func parseCentralDirectory(
168 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
169 | endRecord: some ZIPEndRecordProtocol,
170 | delegate: URLSessionTaskDelegate?
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntries.swift:170:19: error: cannot find type 'URLSessionTaskDelegate' in scope
168 | for request: URLRequest,
169 | endRecord: some ZIPEndRecordProtocol,
170 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
171 | ) async throws -> [ZIPEntry] {
172 | let directoryRecordData = try await rangedData(
[7/8] Compiling ZipPinch ZipFileFormat.swift
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:34:16: error: value of type 'NSData' has no member 'decompressed'
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
34 | try $0.decompressed(using: .zlib)
| `- error: value of type 'NSData' has no member 'decompressed'
35 | }
36 |
/host/spi-builder-workspace/Sources/ZipPinch/ZipFileFormat.swift:34:37: error: cannot infer contextual base in reference to member 'zlib'
32 | /// Decompressor.
33 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
34 | try $0.decompressed(using: .zlib)
| `- error: cannot infer contextual base in reference to member 'zlib'
35 | }
36 |
[8/8] Compiling ZipPinch ZIPFolder.swift
BUILD FAILURE 6.1 linux