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

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.23.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bdbergeron/Stubby.git
Reference: main
Cloned https://github.com/bdbergeron/Stubby.git into spi-builder-workspace
SUCCESS checkout https://github.com/bdbergeron/Stubby.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2220] Fetching swift-docc-symbolkit
[290/3643] Fetching swift-docc-symbolkit, swift-docc-plugin
Fetched https://github.com/apple/swift-docc-symbolkit (0.73s)
Fetched https://github.com/apple/swift-docc-plugin (0.74s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (1.29s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.42s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
                switch dependency {
                ^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
                switch dependency {
                ^
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
                switch dependency {
                ^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
                switch dependency {
                ^
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module Stubby
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:21:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
    cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
                        ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:19:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    urlResponse: URLResponse,
                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:34:20: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  let urlResponse: URLResponse
                   ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:36:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
  let cacheStoragePolicy: URLCache.StoragePolicy
                          ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:56:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
    cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
                        ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
  static func respondsTo(request: URLRequest) -> Bool
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
  static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:45: error: cannot find type 'URLRequest' in scope
  override class func canInit(with request: URLRequest) -> Bool {
                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:23: error: method does not override any method from its superclass
  override class func canInit(with request: URLRequest) -> Bool {
  ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  override class func canInit(with task: URLSessionTask) -> Bool {
                                         ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:23: error: method does not override any method from its superclass
  override class func canInit(with task: URLSessionTask) -> Bool {
  ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:68: error: cannot find type 'URLRequest' in scope
  override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:53: error: cannot find type 'URLRequest' in scope
  override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:23: error: method does not override any method from its superclass
  override class func canonicalRequest(for request: URLRequest) -> URLRequest {
  ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:39:17: error: method does not override any method from its superclass
  override func startLoading() {
  ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:56:17: error: method does not override any method from its superclass
  override func stopLoading() { }
  ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:13: error: only protocols can inherit from 'AnyObject'
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
            ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:74: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
                                                                         ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:5:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:89:26: error: cannot find type 'URLRequest' in scope
    response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:98:25: error: cannot find type 'URLRequest' in scope
  public let response: (URLRequest) throws -> Result<StubbyResponse, Error>
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:112:35: error: cannot find type 'URLRequest' in scope
  static func respondsTo(request: URLRequest) -> Bool {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:116:37: error: cannot find type 'URLRequest' in scope
  static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error> {
                                    ^~~~~~~~~~
[4/6] Compiling Stubby StubbyURLProtocol.swift
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
  static func respondsTo(request: URLRequest) -> Bool
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
  static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:45: error: cannot find type 'URLRequest' in scope
  override class func canInit(with request: URLRequest) -> Bool {
                                            ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:23: error: method does not override any method from its superclass
  override class func canInit(with request: URLRequest) -> Bool {
  ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  override class func canInit(with task: URLSessionTask) -> Bool {
                                         ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:23: error: method does not override any method from its superclass
  override class func canInit(with task: URLSessionTask) -> Bool {
  ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:68: error: cannot find type 'URLRequest' in scope
  override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:53: error: cannot find type 'URLRequest' in scope
  override class func canonicalRequest(for request: URLRequest) -> URLRequest {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:23: error: method does not override any method from its superclass
  override class func canonicalRequest(for request: URLRequest) -> URLRequest {
  ~~~~~~~~            ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:39:17: error: method does not override any method from its superclass
  override func startLoading() {
  ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:56:17: error: method does not override any method from its superclass
  override func stopLoading() { }
  ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:13: error: only protocols can inherit from 'AnyObject'
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
            ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:74: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
                                                                         ^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:31:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
    guard let request = task.originalRequest else { return false }
                        ~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:40:15: error: cannot find 'client' in scope
    guard let client else { return }
              ^~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:43:57: error: cannot find 'request' in scope
      let response = try ResponseProvider.response(for: request)
                                                        ^~~~~~~
[5/6] Compiling Stubby StubbyResponse.swift
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:21:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
    cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
                        ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:19:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    urlResponse: URLResponse,
                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:34:20: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  let urlResponse: URLResponse
                   ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:36:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
  let cacheStoragePolicy: URLCache.StoragePolicy
                          ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:56:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
    cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
                        ~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:60:25: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
      let urlResponse = HTTPURLResponse(
                        ^~~~~~~~~~~~~~~
[6/6] Compiling Stubby URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:5:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:89:26: error: cannot find type 'URLRequest' in scope
    response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:98:25: error: cannot find type 'URLRequest' in scope
  public let response: (URLRequest) throws -> Result<StubbyResponse, Error>
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:112:35: error: cannot find type 'URLRequest' in scope
  static func respondsTo(request: URLRequest) -> Bool {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:116:37: error: cannot find type 'URLRequest' in scope
  static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error> {
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
  static func respondsTo(request: URLRequest) -> Bool
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
  static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:69:26: error: cannot find type 'URLRequest' in scope
    response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
                         ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux