The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Pocket, reference 1.1.0 (c19cac), with Swift 6.1 for Linux on 26 Apr 2025 21:16:45 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.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/sgade/swift-pocket.git
Reference: 1.1.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/sgade/swift-pocket
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at c19cac4 Remove completion-block functions in favor of async/await.
Cloned https://github.com/sgade/swift-pocket.git
Revision (git rev-parse @):
c19cac468490129f8a7dbeceb278688ef0a64f33
SUCCESS checkout https://github.com/sgade/swift-pocket.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/sgade/swift-pocket.git
https://github.com/sgade/swift-pocket.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Pocket",
  "name" : "Pocket",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "Pocket",
      "targets" : [
        "Pocket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PocketTests",
      "module_type" : "SwiftTarget",
      "name" : "PocketTests",
      "path" : "Tests/PocketTests",
      "sources" : [
        "PocketTests.swift"
      ],
      "target_dependencies" : [
        "Pocket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Pocket",
      "module_type" : "SwiftTarget",
      "name" : "Pocket",
      "path" : "Sources/Pocket",
      "product_memberships" : [
        "Pocket"
      ],
      "sources" : [
        "AddedItem.swift",
        "Errors.swift",
        "Item.swift",
        "Pocket+Add.swift",
        "Pocket+Authentication.swift",
        "Pocket+Modify.swift",
        "Pocket+Retrieve.swift",
        "Pocket.swift",
        "Types/ObjectList.swift",
        "Types/Status.swift",
        "Types/StringBool.swift",
        "Types/StringInt.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/14] Compiling Pocket StringBool.swift
[4/14] Compiling Pocket Status.swift
[5/15] Compiling Pocket ObjectList.swift
[6/15] Compiling Pocket Item.swift
[7/15] Compiling Pocket Pocket+Add.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/15] Compiling Pocket AddedItem.swift
/host/spi-builder-workspace/Sources/Pocket/Errors.swift:16:14: warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |     public enum Errors: Error {
15 |
16 |         case invalid(value: Any, parameter: String)
   |              `- warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
17 |         case notAuthenticated
18 |         case unsuccessfulResponse
[9/15] Compiling Pocket Errors.swift
/host/spi-builder-workspace/Sources/Pocket/Errors.swift:16:14: warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |     public enum Errors: Error {
15 |
16 |         case invalid(value: Any, parameter: String)
   |              `- warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
17 |         case notAuthenticated
18 |         case unsuccessfulResponse
[10/15] Emitting module Pocket
/host/spi-builder-workspace/Sources/Pocket/Errors.swift:16:14: warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |     public enum Errors: Error {
15 |
16 |         case invalid(value: Any, parameter: String)
   |              `- warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
17 |         case notAuthenticated
18 |         case unsuccessfulResponse
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     let consumerKey: String
18 |     let urlSession: URLSession
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     var isAuthenticated: Bool {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
[11/15] Compiling Pocket Pocket+Retrieve.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     let consumerKey: String
18 |     let urlSession: URLSession
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     var isAuthenticated: Bool {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
34 |
35 |     func request<T: Decodable>(url: URL, jsonData: [String: String]) async throws -> T {
36 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
37 |         request.httpMethod = "POST"
38 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |         request.httpBody = try JSONEncoder().encode(jsonData)
41 |
42 |         let (data, response) = try await urlSession.data(for: request)
   |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 |         guard let httpResponse = response as? HTTPURLResponse else {
44 |             throw Errors.unsuccessfulResponse
[12/15] Compiling Pocket Pocket.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     let consumerKey: String
18 |     let urlSession: URLSession
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     var isAuthenticated: Bool {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
34 |
35 |     func request<T: Decodable>(url: URL, jsonData: [String: String]) async throws -> T {
36 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
37 |         request.httpMethod = "POST"
38 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |         request.httpBody = try JSONEncoder().encode(jsonData)
41 |
42 |         let (data, response) = try await urlSession.data(for: request)
   |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 |         guard let httpResponse = response as? HTTPURLResponse else {
44 |             throw Errors.unsuccessfulResponse
[13/15] Compiling Pocket Pocket+Authentication.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
102 |         }
103 |
104 |         var request = URLRequest(url: URL(string: components.string!)!)
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "GET"
106 |         request.setValue("application/json", forHTTPHeaderField: "X-Accept")
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |         request.setValue("application/json", forHTTPHeaderField: "X-Accept")
107 |
108 |         let task = URLSession.shared.dataTask(with: request) { data, response, error in
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |             guard error == nil else {
110 |                 return completion(.failure(error!))
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:186:56: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
184 |     public func add(items: [AddItemParameters]) async throws -> ModifyItemsResults {
185 |         try await withCheckedThrowingContinuation { continuation in
186 |             add(items: items, completion: continuation.resume)
    |                                                        |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                        `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
187 |         }
188 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:202:64: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
200 |     public func archive(itemIds: [StringInt]) async throws -> ModifyItemsResults {
201 |         try await withCheckedThrowingContinuation { continuation in
202 |             archive(itemIds: itemIds, completion: continuation.resume(with:))
    |                                                                |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
203 |         }
204 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:219:62: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
217 |     public func readd(itemIds: [StringInt]) async throws -> ModifyItemsResults {
218 |         try await withCheckedThrowingContinuation { continuation in
219 |             readd(itemIds: itemIds, completion: continuation.resume)
    |                                                              |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
220 |         }
221 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:236:65: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
234 |     public func favorite(itemIds: [StringInt]) async throws -> ModifyItemsResults {
235 |         try await withCheckedThrowingContinuation { continuation in
236 |             favorite(itemIds: itemIds, completion: continuation.resume)
    |                                                                 |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                 `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
237 |         }
238 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:253:67: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
251 |     public func unfavorite(itemIds: [StringInt]) async throws -> ModifyItemsResults {
252 |         try await withCheckedThrowingContinuation { continuation in
253 |             unfavorite(itemIds: itemIds, completion: continuation.resume)
    |                                                                   |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                   `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
254 |         }
255 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:270:63: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
268 |     public func delete(itemIds: [StringInt]) async throws -> ModifyItemsResults {
269 |         try await withCheckedThrowingContinuation { continuation in
270 |             delete(itemIds: itemIds, completion: continuation.resume)
    |                                                               |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                               `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
271 |         }
272 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:323:67: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
321 |     public func add(tags: [String], to itemIds: [StringInt]) async throws -> ModifyItemsResults {
322 |         try await withCheckedThrowingContinuation { continuation in
323 |             add(tags: tags, to: itemIds, completion: continuation.resume)
    |                                                                   |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                   `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
324 |         }
325 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:340:72: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
338 |     public func remove(tags: [String], from itemIds: [StringInt]) async throws -> ModifyItemsResults {
339 |         try await withCheckedThrowingContinuation { continuation in
340 |             remove(tags: tags, from: itemIds, completion: continuation.resume)
    |                                                                        |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                        `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
341 |         }
342 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:357:71: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
355 |     public func replace(tags: [String], on itemIds: [StringInt]) async throws -> ModifyItemsResults {
356 |         try await withCheckedThrowingContinuation { continuation in
357 |             replace(tags: tags, on: itemIds, completion: continuation.resume)
    |                                                                       |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                       `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
358 |         }
359 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:374:66: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
372 |     public func clearTags(itemIds: [StringInt]) async throws -> ModifyItemsResults {
373 |         try await withCheckedThrowingContinuation { continuation in
374 |             clearTags(itemIds: itemIds, completion: continuation.resume)
    |                                                                  |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                  `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
375 |         }
376 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:417:74: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
415 |     public func renameTag(from oldTag: String, to newTag: String) async throws -> ModifyItemsResults {
416 |         try await withCheckedThrowingContinuation { continuation in
417 |             renameTag(from: oldTag, to: newTag, completion: continuation.resume)
    |                                                                          |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                          `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
418 |         }
419 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:448:55: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
446 |     public func delete(tag: String) async throws -> ModifyItemsResults {
447 |         try await withCheckedThrowingContinuation { continuation in
448 |             delete(tag: tag, completion: continuation.resume)
    |                                                       |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                       `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
449 |         }
450 |     }
[14/15] Compiling Pocket Pocket+Modify.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
102 |         }
103 |
104 |         var request = URLRequest(url: URL(string: components.string!)!)
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "GET"
106 |         request.setValue("application/json", forHTTPHeaderField: "X-Accept")
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |         request.setValue("application/json", forHTTPHeaderField: "X-Accept")
107 |
108 |         let task = URLSession.shared.dataTask(with: request) { data, response, error in
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |             guard error == nil else {
110 |                 return completion(.failure(error!))
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:186:56: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
184 |     public func add(items: [AddItemParameters]) async throws -> ModifyItemsResults {
185 |         try await withCheckedThrowingContinuation { continuation in
186 |             add(items: items, completion: continuation.resume)
    |                                                        |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                        `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
187 |         }
188 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:202:64: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
200 |     public func archive(itemIds: [StringInt]) async throws -> ModifyItemsResults {
201 |         try await withCheckedThrowingContinuation { continuation in
202 |             archive(itemIds: itemIds, completion: continuation.resume(with:))
    |                                                                |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
203 |         }
204 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:219:62: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
217 |     public func readd(itemIds: [StringInt]) async throws -> ModifyItemsResults {
218 |         try await withCheckedThrowingContinuation { continuation in
219 |             readd(itemIds: itemIds, completion: continuation.resume)
    |                                                              |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
220 |         }
221 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:236:65: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
234 |     public func favorite(itemIds: [StringInt]) async throws -> ModifyItemsResults {
235 |         try await withCheckedThrowingContinuation { continuation in
236 |             favorite(itemIds: itemIds, completion: continuation.resume)
    |                                                                 |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                 `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
237 |         }
238 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:253:67: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
251 |     public func unfavorite(itemIds: [StringInt]) async throws -> ModifyItemsResults {
252 |         try await withCheckedThrowingContinuation { continuation in
253 |             unfavorite(itemIds: itemIds, completion: continuation.resume)
    |                                                                   |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                   `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
254 |         }
255 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:270:63: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
268 |     public func delete(itemIds: [StringInt]) async throws -> ModifyItemsResults {
269 |         try await withCheckedThrowingContinuation { continuation in
270 |             delete(itemIds: itemIds, completion: continuation.resume)
    |                                                               |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                               `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
271 |         }
272 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:323:67: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
321 |     public func add(tags: [String], to itemIds: [StringInt]) async throws -> ModifyItemsResults {
322 |         try await withCheckedThrowingContinuation { continuation in
323 |             add(tags: tags, to: itemIds, completion: continuation.resume)
    |                                                                   |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                   `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
324 |         }
325 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:340:72: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
338 |     public func remove(tags: [String], from itemIds: [StringInt]) async throws -> ModifyItemsResults {
339 |         try await withCheckedThrowingContinuation { continuation in
340 |             remove(tags: tags, from: itemIds, completion: continuation.resume)
    |                                                                        |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                        `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
341 |         }
342 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:357:71: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
355 |     public func replace(tags: [String], on itemIds: [StringInt]) async throws -> ModifyItemsResults {
356 |         try await withCheckedThrowingContinuation { continuation in
357 |             replace(tags: tags, on: itemIds, completion: continuation.resume)
    |                                                                       |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                       `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
358 |         }
359 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:374:66: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
372 |     public func clearTags(itemIds: [StringInt]) async throws -> ModifyItemsResults {
373 |         try await withCheckedThrowingContinuation { continuation in
374 |             clearTags(itemIds: itemIds, completion: continuation.resume)
    |                                                                  |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                  `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
375 |         }
376 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:417:74: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
415 |     public func renameTag(from oldTag: String, to newTag: String) async throws -> ModifyItemsResults {
416 |         try await withCheckedThrowingContinuation { continuation in
417 |             renameTag(from: oldTag, to: newTag, completion: continuation.resume)
    |                                                                          |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                          `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
418 |         }
419 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:448:55: warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
446 |     public func delete(tag: String) async throws -> ModifyItemsResults {
447 |         try await withCheckedThrowingContinuation { continuation in
448 |             delete(tag: tag, completion: continuation.resume)
    |                                                       |- warning: converting a value of type '@Sendable (__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '@Sendable (__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                       `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
449 |         }
450 |     }
[15/15] Compiling Pocket StringInt.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/13] Compiling Pocket ObjectList.swift
[3/14] Compiling Pocket Status.swift
[4/14] Compiling Pocket StringBool.swift
[5/14] Compiling Pocket Pocket+Retrieve.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     let consumerKey: String
18 |     let urlSession: URLSession
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     var isAuthenticated: Bool {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
34 |
35 |     func request<T: Decodable>(url: URL, jsonData: [String: String]) async throws -> T {
36 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
37 |         request.httpMethod = "POST"
38 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |         request.httpBody = try JSONEncoder().encode(jsonData)
41 |
42 |         let (data, response) = try await urlSession.data(for: request)
   |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 |         guard let httpResponse = response as? HTTPURLResponse else {
44 |             throw Errors.unsuccessfulResponse
[6/14] Compiling Pocket Pocket.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     let consumerKey: String
18 |     let urlSession: URLSession
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     var isAuthenticated: Bool {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
34 |
35 |     func request<T: Decodable>(url: URL, jsonData: [String: String]) async throws -> T {
36 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
37 |         request.httpMethod = "POST"
38 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |         request.httpBody = try JSONEncoder().encode(jsonData)
41 |
42 |         let (data, response) = try await urlSession.data(for: request)
   |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 |         guard let httpResponse = response as? HTTPURLResponse else {
44 |             throw Errors.unsuccessfulResponse
[7/14] Compiling Pocket StringInt.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/14] Compiling Pocket AddedItem.swift
[9/14] Compiling Pocket Errors.swift
[10/14] Compiling Pocket Item.swift
[11/14] Compiling Pocket Pocket+Add.swift
[12/14] Emitting module Pocket
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 |     let consumerKey: String
18 |     let urlSession: URLSession
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     var isAuthenticated: Bool {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     }
23 |
24 |     public init(consumerKey: String, urlSession: URLSession = .shared) {
   |                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.consumerKey = consumerKey
26 |         self.urlSession = urlSession
[13/14] Compiling Pocket Pocket+Authentication.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
102 |         }
103 |
104 |         var request = URLRequest(url: URL(string: components.string!)!)
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "GET"
106 |         request.setValue("application/json", forHTTPHeaderField: "X-Accept")
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |         request.setValue("application/json", forHTTPHeaderField: "X-Accept")
107 |
108 |         let task = URLSession.shared.dataTask(with: request) { data, response, error in
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |             guard error == nil else {
110 |                 return completion(.failure(error!))
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:186:56: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
184 |     public func add(items: [AddItemParameters]) async throws -> ModifyItemsResults {
185 |         try await withCheckedThrowingContinuation { continuation in
186 |             add(items: items, completion: continuation.resume)
    |                                                        |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                        `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
187 |         }
188 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:202:64: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
200 |     public func archive(itemIds: [StringInt]) async throws -> ModifyItemsResults {
201 |         try await withCheckedThrowingContinuation { continuation in
202 |             archive(itemIds: itemIds, completion: continuation.resume(with:))
    |                                                                |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
203 |         }
204 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:219:62: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
217 |     public func readd(itemIds: [StringInt]) async throws -> ModifyItemsResults {
218 |         try await withCheckedThrowingContinuation { continuation in
219 |             readd(itemIds: itemIds, completion: continuation.resume)
    |                                                              |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
220 |         }
221 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:236:65: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
234 |     public func favorite(itemIds: [StringInt]) async throws -> ModifyItemsResults {
235 |         try await withCheckedThrowingContinuation { continuation in
236 |             favorite(itemIds: itemIds, completion: continuation.resume)
    |                                                                 |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                 `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
237 |         }
238 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:253:67: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
251 |     public func unfavorite(itemIds: [StringInt]) async throws -> ModifyItemsResults {
252 |         try await withCheckedThrowingContinuation { continuation in
253 |             unfavorite(itemIds: itemIds, completion: continuation.resume)
    |                                                                   |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                   `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
254 |         }
255 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:270:63: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
268 |     public func delete(itemIds: [StringInt]) async throws -> ModifyItemsResults {
269 |         try await withCheckedThrowingContinuation { continuation in
270 |             delete(itemIds: itemIds, completion: continuation.resume)
    |                                                               |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                               `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
271 |         }
272 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:323:67: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
321 |     public func add(tags: [String], to itemIds: [StringInt]) async throws -> ModifyItemsResults {
322 |         try await withCheckedThrowingContinuation { continuation in
323 |             add(tags: tags, to: itemIds, completion: continuation.resume)
    |                                                                   |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                   `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
324 |         }
325 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:340:72: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
338 |     public func remove(tags: [String], from itemIds: [StringInt]) async throws -> ModifyItemsResults {
339 |         try await withCheckedThrowingContinuation { continuation in
340 |             remove(tags: tags, from: itemIds, completion: continuation.resume)
    |                                                                        |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                        `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
341 |         }
342 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:357:71: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
355 |     public func replace(tags: [String], on itemIds: [StringInt]) async throws -> ModifyItemsResults {
356 |         try await withCheckedThrowingContinuation { continuation in
357 |             replace(tags: tags, on: itemIds, completion: continuation.resume)
    |                                                                       |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                       `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
358 |         }
359 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:374:66: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
372 |     public func clearTags(itemIds: [StringInt]) async throws -> ModifyItemsResults {
373 |         try await withCheckedThrowingContinuation { continuation in
374 |             clearTags(itemIds: itemIds, completion: continuation.resume)
    |                                                                  |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                  `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
375 |         }
376 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:417:74: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
415 |     public func renameTag(from oldTag: String, to newTag: String) async throws -> ModifyItemsResults {
416 |         try await withCheckedThrowingContinuation { continuation in
417 |             renameTag(from: oldTag, to: newTag, completion: continuation.resume)
    |                                                                          |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                          `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
418 |         }
419 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:448:55: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
446 |     public func delete(tag: String) async throws -> ModifyItemsResults {
447 |         try await withCheckedThrowingContinuation { continuation in
448 |             delete(tag: tag, completion: continuation.resume)
    |                                                       |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                       `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
449 |         }
450 |     }
[14/14] Compiling Pocket Pocket+Modify.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
102 |         }
103 |
104 |         var request = URLRequest(url: URL(string: components.string!)!)
    |                       `- error: cannot find 'URLRequest' in scope
105 |         request.httpMethod = "GET"
106 |         request.setValue("application/json", forHTTPHeaderField: "X-Accept")
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 |         request.setValue("application/json", forHTTPHeaderField: "X-Accept")
107 |
108 |         let task = URLSession.shared.dataTask(with: request) { data, response, error in
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |             guard error == nil else {
110 |                 return completion(.failure(error!))
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:186:56: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
184 |     public func add(items: [AddItemParameters]) async throws -> ModifyItemsResults {
185 |         try await withCheckedThrowingContinuation { continuation in
186 |             add(items: items, completion: continuation.resume)
    |                                                        |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                        `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
187 |         }
188 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:202:64: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
200 |     public func archive(itemIds: [StringInt]) async throws -> ModifyItemsResults {
201 |         try await withCheckedThrowingContinuation { continuation in
202 |             archive(itemIds: itemIds, completion: continuation.resume(with:))
    |                                                                |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
203 |         }
204 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:219:62: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
217 |     public func readd(itemIds: [StringInt]) async throws -> ModifyItemsResults {
218 |         try await withCheckedThrowingContinuation { continuation in
219 |             readd(itemIds: itemIds, completion: continuation.resume)
    |                                                              |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                              `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
220 |         }
221 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:236:65: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
234 |     public func favorite(itemIds: [StringInt]) async throws -> ModifyItemsResults {
235 |         try await withCheckedThrowingContinuation { continuation in
236 |             favorite(itemIds: itemIds, completion: continuation.resume)
    |                                                                 |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                 `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
237 |         }
238 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:253:67: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
251 |     public func unfavorite(itemIds: [StringInt]) async throws -> ModifyItemsResults {
252 |         try await withCheckedThrowingContinuation { continuation in
253 |             unfavorite(itemIds: itemIds, completion: continuation.resume)
    |                                                                   |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                   `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
254 |         }
255 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:270:63: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
268 |     public func delete(itemIds: [StringInt]) async throws -> ModifyItemsResults {
269 |         try await withCheckedThrowingContinuation { continuation in
270 |             delete(itemIds: itemIds, completion: continuation.resume)
    |                                                               |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                               `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
271 |         }
272 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:323:67: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
321 |     public func add(tags: [String], to itemIds: [StringInt]) async throws -> ModifyItemsResults {
322 |         try await withCheckedThrowingContinuation { continuation in
323 |             add(tags: tags, to: itemIds, completion: continuation.resume)
    |                                                                   |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                   `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
324 |         }
325 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:340:72: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
338 |     public func remove(tags: [String], from itemIds: [StringInt]) async throws -> ModifyItemsResults {
339 |         try await withCheckedThrowingContinuation { continuation in
340 |             remove(tags: tags, from: itemIds, completion: continuation.resume)
    |                                                                        |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                        `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
341 |         }
342 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:357:71: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
355 |     public func replace(tags: [String], on itemIds: [StringInt]) async throws -> ModifyItemsResults {
356 |         try await withCheckedThrowingContinuation { continuation in
357 |             replace(tags: tags, on: itemIds, completion: continuation.resume)
    |                                                                       |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                       `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
358 |         }
359 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:374:66: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
372 |     public func clearTags(itemIds: [StringInt]) async throws -> ModifyItemsResults {
373 |         try await withCheckedThrowingContinuation { continuation in
374 |             clearTags(itemIds: itemIds, completion: continuation.resume)
    |                                                                  |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                  `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
375 |         }
376 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:417:74: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
415 |     public func renameTag(from oldTag: String, to newTag: String) async throws -> ModifyItemsResults {
416 |         try await withCheckedThrowingContinuation { continuation in
417 |             renameTag(from: oldTag, to: newTag, completion: continuation.resume)
    |                                                                          |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                                          `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
418 |         }
419 |     }
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:448:55: warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
446 |     public func delete(tag: String) async throws -> ModifyItemsResults {
447 |         try await withCheckedThrowingContinuation { continuation in
448 |             delete(tag: tag, completion: continuation.resume)
    |                                                       |- warning: converting a value of type '(__shared sending Result<Pocket.ModifyItemsResults, any Error>) -> ()' (aka '(__shared sending Result<Array<Bool>, any Error>) -> ()') to type '(Result<Pocket.ModifyItemsResults, any Error>) -> Void' (aka '(Result<Array<Bool>, any Error>) -> ()') risks causing data races; this is an error in the Swift 6 language mode
    |                                                       `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
449 |         }
450 |     }
BUILD FAILURE 6.1 linux