Build Information
Failed to build ZipPinch, reference main (74a941
), with Swift 6.0 for Linux on 30 Nov 2024 03:13:18 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/buh/ZipPinch.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 74a9411 Fix in progress
Cloned https://github.com/buh/ZipPinch.git
Revision (git rev-parse @):
74a941152478977bc98d5747908e31268653ea31
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/buh/ZipPinch.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/buh/ZipPinch.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling ZipPinch ZIPFileHeader.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/17] 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: ZIPEndRecordType>(
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:139:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
137 | // MARK: - Private
138 |
139 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
140 | func zipEntryDataWithProgress(
141 | 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/ZIPCompressor.swift:27: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
25 | /// Decompressor.
26 | public enum ZIPDecompressor {
27 | 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: annotate 'decompress' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | try $0.decompressed(using: .zlib)
29 | }
/host/spi-builder-workspace/Sources/ZipPinch/ZIPCompressor.swift:28:16: error: value of type 'NSData' has no member 'decompressed'
26 | public enum ZIPDecompressor {
27 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
28 | try $0.decompressed(using: .zlib)
| `- error: value of type 'NSData' has no member 'decompressed'
29 | }
30 | }
/host/spi-builder-workspace/Sources/ZipPinch/ZIPCompressor.swift:28:37: error: cannot infer contextual base in reference to member 'zlib'
26 | public enum ZIPDecompressor {
27 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
28 | try $0.decompressed(using: .zlib)
| `- error: cannot infer contextual base in reference to member 'zlib'
29 | }
30 | }
/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: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | public let id = UUID()
[6/17] Compiling ZipPinch BinaryExtractor.swift
[7/17] Compiling ZipPinch Date+MSDOS.swift
[8/17] Compiling ZipPinch ZIPDirectoryRecord.swift
[9/17] Compiling ZipPinch ZIPEndRecord.swift
[10/17] 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+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+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)] {
/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
[11/17] Compiling ZipPinch URLSession+ZIPRange.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+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+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)] {
/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
[12/17] 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: ZIPEndRecordType>(
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:139:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
137 | // MARK: - Private
138 |
139 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
140 | func zipEntryDataWithProgress(
141 | 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: ZIPEndRecordType>(
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 ZIPEndRecordType,
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 ZIPEndRecordType,
170 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
171 | ) async throws -> [ZIPEntry] {
172 | let directoryRecordData = try await rangedData(
/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:141:22: error: cannot find type 'URLRequest' in scope
139 | private extension URLSession {
140 | func zipEntryDataWithProgress(
141 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
142 | bytesRange: ClosedRange<Int64>,
143 | delegate: URLSessionTaskDelegate?,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:143:19: error: cannot find type 'URLSessionTaskDelegate' in scope
141 | for request: URLRequest,
142 | bytesRange: ClosedRange<Int64>,
143 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
144 | progress: ZIPProgress
145 | ) async throws -> Data {
[13/17] Compiling ZipPinch URLSession+ZIPEntry.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: ZIPEndRecordType>(
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:139:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
137 | // MARK: - Private
138 |
139 | private extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
140 | func zipEntryDataWithProgress(
141 | 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: ZIPEndRecordType>(
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 ZIPEndRecordType,
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 ZIPEndRecordType,
170 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
171 | ) async throws -> [ZIPEntry] {
172 | let directoryRecordData = try await rangedData(
/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:141:22: error: cannot find type 'URLRequest' in scope
139 | private extension URLSession {
140 | func zipEntryDataWithProgress(
141 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
142 | bytesRange: ClosedRange<Int64>,
143 | delegate: URLSessionTaskDelegate?,
/host/spi-builder-workspace/Sources/ZipPinch/URLSession+ZIPEntry.swift:143:19: error: cannot find type 'URLSessionTaskDelegate' in scope
141 | for request: URLRequest,
142 | bytesRange: ClosedRange<Int64>,
143 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
144 | progress: ZIPProgress
145 | ) async throws -> Data {
[14/17] Compiling ZipPinch ZIPCompressor.swift
/host/spi-builder-workspace/Sources/ZipPinch/ZIPCompressor.swift:27: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
25 | /// Decompressor.
26 | public enum ZIPDecompressor {
27 | 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: annotate 'decompress' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | try $0.decompressed(using: .zlib)
29 | }
/host/spi-builder-workspace/Sources/ZipPinch/ZIPCompressor.swift:28:16: error: value of type 'NSData' has no member 'decompressed'
26 | public enum ZIPDecompressor {
27 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
28 | try $0.decompressed(using: .zlib)
| `- error: value of type 'NSData' has no member 'decompressed'
29 | }
30 | }
/host/spi-builder-workspace/Sources/ZipPinch/ZIPCompressor.swift:28:37: error: cannot infer contextual base in reference to member 'zlib'
26 | public enum ZIPDecompressor {
27 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
28 | try $0.decompressed(using: .zlib)
| `- error: cannot infer contextual base in reference to member 'zlib'
29 | }
30 | }
[15/17] Compiling ZipPinch ZIPEntry.swift
/host/spi-builder-workspace/Sources/ZipPinch/ZIPCompressor.swift:27: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
25 | /// Decompressor.
26 | public enum ZIPDecompressor {
27 | 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: annotate 'decompress' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | try $0.decompressed(using: .zlib)
29 | }
/host/spi-builder-workspace/Sources/ZipPinch/ZIPCompressor.swift:28:16: error: value of type 'NSData' has no member 'decompressed'
26 | public enum ZIPDecompressor {
27 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
28 | try $0.decompressed(using: .zlib)
| `- error: value of type 'NSData' has no member 'decompressed'
29 | }
30 | }
/host/spi-builder-workspace/Sources/ZipPinch/ZIPCompressor.swift:28:37: error: cannot infer contextual base in reference to member 'zlib'
26 | public enum ZIPDecompressor {
27 | public static var decompress: @Sendable (_ compressedData: NSData) throws -> NSData = {
28 | try $0.decompressed(using: .zlib)
| `- error: cannot infer contextual base in reference to member 'zlib'
29 | }
30 | }
[16/17] 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: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | public let id = UUID()
[17/17] Compiling ZipPinch resource_bundle_accessor.swift
BUILD FAILURE 6.0 linux