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

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.28.6
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Fleuronic/Emissary.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/Fleuronic/Emissary
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c6cbd19 Initial commit
Cloned https://github.com/Fleuronic/Emissary.git
Revision (git rev-parse @):
c6cbd191b304db37ca64ededa4eb858a4adb713b
SUCCESS checkout https://github.com/Fleuronic/Emissary.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $PWD/checkout
https://github.com/Fleuronic/Emissary.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
[1/8] Compiling Emissary APIError.swift
[2/8] Compiling Emissary RequestState.swift
[3/8] Compiling Emissary Request.swift
[4/8] Compiling Emissary RequestError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module Emissary
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:4:15: error: struct 'URLRequest' does not exist in module 'Foundation'
import struct Foundation.URLRequest
              ^          ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:7:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
import class Foundation.URLSession
       ~~~~~ ^
       typealias
Foundation.URLSession:2:18: note: 'URLSession' declared here
public typealias URLSession = AnyObject
                 ^
[6/8] Compiling Emissary API.swift
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:4:15: error: struct 'URLRequest' does not exist in module 'Foundation'
import struct Foundation.URLRequest
              ^          ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:7:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
import class Foundation.URLSession
       ~~~~~ ^
       typealias
Foundation.URLSession:2:18: note: 'URLSession' declared here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:32:21: error: cannot find 'URLRequest' in scope
                        var urlRequest = URLRequest(url: url)
                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:39:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
                        let (data, _) = try await URLSession.shared.data(for: urlRequest)
                                                  ~~~~~~~~~~ ^~~~~~
[7/8] Compiling Emissary APIResponse.swift
[8/8] Compiling Emissary MockAPI.swift
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module Emissary
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:4:15: error: struct 'URLRequest' does not exist in module 'Foundation'
import struct Foundation.URLRequest
              ^          ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:7:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
import class Foundation.URLSession
       ~~~~~ ^
       typealias
Foundation.URLSession:2:18: note: 'URLSession' declared here
public typealias URLSession = AnyObject
                 ^
[2/2] Compiling Emissary API.swift
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:4:15: error: struct 'URLRequest' does not exist in module 'Foundation'
import struct Foundation.URLRequest
              ^          ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:7:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
import class Foundation.URLSession
       ~~~~~ ^
       typealias
Foundation.URLSession:2:18: note: 'URLSession' declared here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:32:21: error: cannot find 'URLRequest' in scope
                        var urlRequest = URLRequest(url: url)
                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:39:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
                        let (data, _) = try await URLSession.shared.data(for: urlRequest)
                                                  ~~~~~~~~~~ ^~~~~~
BUILD FAILURE 5.8 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.