This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sgade/swift-pocket.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/sgade/swift-pocket
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4699e58 Merge pull request #3 from shreyasm-dev/patch-1
Cloned https://github.com/sgade/swift-pocket.git
Revision (git rev-parse @):
4699e58353d36e4a9ba3ec04b291fbc313e77fd3
SUCCESS checkout https://github.com/sgade/swift-pocket.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/sgade/swift-pocket.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling Pocket Status.swift
[4/15] Compiling Pocket StringBool.swift
[5/15] Compiling Pocket Pocket+Authentication.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:15:23: warning: static property 'requestTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
13 | extension Pocket {
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
   |                       `- warning: static property 'requestTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 7 |
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
10 |
11 | // MARK: Serialization data structures
   :
13 | extension Pocket {
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
   |                       |- note: annotate 'requestTokenUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:16:23: warning: static property 'authorizeUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
   |                       |- warning: static property 'authorizeUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'authorizeUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
18 |
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:17:23: warning: static property 'accessTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
   |                       |- warning: static property 'accessTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'accessTokenUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     private struct ObtainRequestTokenResponse: Decodable {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:24:23: warning: static property 'modifyUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 22 |     public typealias ModifyItemsResults = [Bool]
 23 |
 24 |     public static let modifyUrl = URL(string: "https://getpocket.com/v3/send")!
    |                       `- warning: static property 'modifyUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 |     public enum ActionType: String, Encodable {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  7 |
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 10 |
 11 | // MARK: Serialization data structures
    :
 22 |     public typealias ModifyItemsResults = [Bool]
 23 |
 24 |     public static let modifyUrl = URL(string: "https://getpocket.com/v3/send")!
    |                       |- note: annotate 'modifyUrl' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 25 |
 26 |     public enum ActionType: String, Encodable {
/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!))
[6/15] Compiling Pocket Pocket+Modify.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:15:23: warning: static property 'requestTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
13 | extension Pocket {
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
   |                       `- warning: static property 'requestTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 7 |
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
10 |
11 | // MARK: Serialization data structures
   :
13 | extension Pocket {
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
   |                       |- note: annotate 'requestTokenUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:16:23: warning: static property 'authorizeUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
   |                       |- warning: static property 'authorizeUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'authorizeUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
18 |
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:17:23: warning: static property 'accessTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
   |                       |- warning: static property 'accessTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'accessTokenUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     private struct ObtainRequestTokenResponse: Decodable {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:24:23: warning: static property 'modifyUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 22 |     public typealias ModifyItemsResults = [Bool]
 23 |
 24 |     public static let modifyUrl = URL(string: "https://getpocket.com/v3/send")!
    |                       `- warning: static property 'modifyUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 |     public enum ActionType: String, Encodable {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  7 |
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 10 |
 11 | // MARK: Serialization data structures
    :
 22 |     public typealias ModifyItemsResults = [Bool]
 23 |
 24 |     public static let modifyUrl = URL(string: "https://getpocket.com/v3/send")!
    |                       |- note: annotate 'modifyUrl' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 25 |
 26 |     public enum ActionType: String, Encodable {
/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!))
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/15] Compiling Pocket Item.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Add.swift:15:23: warning: static property 'addUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
13 | extension Pocket {
14 |
15 |     public static let addUrl = URL(string: "https://getpocket.com/v3/add")!
   |                       `- warning: static property 'addUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 |     public struct AddParameters {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Add.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 7 |
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
10 |
11 | // MARK: Serialization data structures
   :
13 | extension Pocket {
14 |
15 |     public static let addUrl = URL(string: "https://getpocket.com/v3/add")!
   |                       |- note: annotate 'addUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     public struct AddParameters {
[8/15] Compiling Pocket Pocket+Add.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Add.swift:15:23: warning: static property 'addUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
13 | extension Pocket {
14 |
15 |     public static let addUrl = URL(string: "https://getpocket.com/v3/add")!
   |                       `- warning: static property 'addUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 |     public struct AddParameters {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Add.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 7 |
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
10 |
11 | // MARK: Serialization data structures
   :
13 | extension Pocket {
14 |
15 |     public static let addUrl = URL(string: "https://getpocket.com/v3/add")!
   |                       |- note: annotate 'addUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     public struct AddParameters {
[9/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
[10/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
[11/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+Add.swift:15:23: warning: static property 'addUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
13 | extension Pocket {
14 |
15 |     public static let addUrl = URL(string: "https://getpocket.com/v3/add")!
   |                       `- warning: static property 'addUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 |     public struct AddParameters {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Add.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 7 |
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
10 |
11 | // MARK: Serialization data structures
   :
13 | extension Pocket {
14 |
15 |     public static let addUrl = URL(string: "https://getpocket.com/v3/add")!
   |                       |- note: annotate 'addUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     public struct AddParameters {
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:15:23: warning: static property 'requestTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
13 | extension Pocket {
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
   |                       `- warning: static property 'requestTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 7 |
 8 |
 9 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
10 |
11 | // MARK: Serialization data structures
   :
13 | extension Pocket {
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
   |                       |- note: annotate 'requestTokenUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:16:23: warning: static property 'authorizeUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
   |                       |- warning: static property 'authorizeUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'authorizeUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
18 |
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Authentication.swift:17:23: warning: static property 'accessTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
15 |     public static let requestTokenUrl = URL(string: "https://getpocket.com/v3/oauth/request")!
16 |     public static let authorizeUrl = URL(string: "https://getpocket.com/auth/authorize")!
17 |     public static let accessTokenUrl = URL(string: "https://getpocket.com/v3/oauth/authorize")!
   |                       |- warning: static property 'accessTokenUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'accessTokenUrl' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     private struct ObtainRequestTokenResponse: Decodable {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:24:23: warning: static property 'modifyUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 22 |     public typealias ModifyItemsResults = [Bool]
 23 |
 24 |     public static let modifyUrl = URL(string: "https://getpocket.com/v3/send")!
    |                       `- warning: static property 'modifyUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 |     public enum ActionType: String, Encodable {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  7 |
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 10 |
 11 | // MARK: Serialization data structures
    :
 22 |     public typealias ModifyItemsResults = [Bool]
 23 |
 24 |     public static let modifyUrl = URL(string: "https://getpocket.com/v3/send")!
    |                       |- note: annotate 'modifyUrl' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 25 |
 26 |     public enum ActionType: String, Encodable {
/host/spi-builder-workspace/Sources/Pocket/Pocket+Retrieve.swift:15:23: warning: static property 'retrieveUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 13 | extension Pocket {
 14 |
 15 |     public static let retrieveUrl = URL(string: "https://getpocket.com/v3/get")!
    |                       `- warning: static property 'retrieveUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 |     public struct RetrieveParameters {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Retrieve.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  7 |
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 10 |
 11 | // MARK: Serialization data structures
    :
 13 | extension Pocket {
 14 |
 15 |     public static let retrieveUrl = URL(string: "https://getpocket.com/v3/get")!
    |                       |- note: annotate 'retrieveUrl' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 |     public struct RetrieveParameters {
/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
[12/15] Compiling Pocket StringInt.swift
[13/15] Compiling Pocket ObjectList.swift
[14/15] Compiling Pocket Pocket+Retrieve.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Retrieve.swift:15:23: warning: static property 'retrieveUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 13 | extension Pocket {
 14 |
 15 |     public static let retrieveUrl = URL(string: "https://getpocket.com/v3/get")!
    |                       `- warning: static property 'retrieveUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 |     public struct RetrieveParameters {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Retrieve.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  7 |
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 10 |
 11 | // MARK: Serialization data structures
    :
 13 | extension Pocket {
 14 |
 15 |     public static let retrieveUrl = URL(string: "https://getpocket.com/v3/get")!
    |                       |- note: annotate 'retrieveUrl' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 |     public struct RetrieveParameters {
/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
[15/15] Compiling Pocket Pocket.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Retrieve.swift:15:23: warning: static property 'retrieveUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 13 | extension Pocket {
 14 |
 15 |     public static let retrieveUrl = URL(string: "https://getpocket.com/v3/get")!
    |                       `- warning: static property 'retrieveUrl' is not concurrency-safe because non-'Sendable' type 'URL' may have shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 |     public struct RetrieveParameters {
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/Pocket/Pocket+Retrieve.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  7 |
  8 |
  9 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 10 |
 11 | // MARK: Serialization data structures
    :
 13 | extension Pocket {
 14 |
 15 |     public static let retrieveUrl = URL(string: "https://getpocket.com/v3/get")!
    |                       |- note: annotate 'retrieveUrl' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 |     public struct RetrieveParameters {
/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
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.