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 5.8 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.25.3
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:             5.8
Building package at path:  $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/12] Compiling Pocket Status.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/13] Compiling Pocket AddedItem.swift
[3/13] Compiling Pocket Errors.swift
[4/13] 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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                              ~^~~~~~
[5/13] Compiling Pocket StringInt.swift
[6/13] Compiling Pocket ObjectList.swift
[7/13] 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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                              ~^~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, response) = try await urlSession.data(for: request)
                                         ~~~~~~~~~~ ^~~~
[8/13] 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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                              ~^~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, response) = try await urlSession.data(for: request)
                                         ~~~~~~~~~~ ^~~~
[9/13] Compiling Pocket StringBool.swift
[10/13] Compiling Pocket Item.swift
[11/13] Compiling Pocket Pocket+Add.swift
[12/13] Compiling Pocket Pocket+Authentication.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: URL(string: components.string!)!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
[13/13] Compiling Pocket Pocket+Modify.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: URL(string: components.string!)!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
[0/1] Planning build
Building for debugging...
[1/5] 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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                              ~^~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (data, response) = try await urlSession.data(for: request)
                                         ~~~~~~~~~~ ^~~~
[2/5] Compiling Pocket Pocket+Authentication.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling Pocket Pocket+Retrieve.swift
[4/5] Compiling Pocket Pocket+Modify.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: URL(string: components.string!)!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
[5/5] 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.
    let urlSession: URLSession
                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/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.
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                 ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(consumerKey: String, urlSession: URLSession = .shared) {
                                                              ~^~~~~~
[6/7] Compiling Pocket Errors.swift
[7/7] Compiling Pocket Pocket+Add.swift
BUILD FAILURE 5.8 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.