The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ResultPromises 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.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Michael-Vorontsov/ResultPromises.git
Reference: master
Cloned https://github.com/Michael-Vorontsov/ResultPromises.git into spi-builder-workspace
SUCCESS checkout https://github.com/Michael-Vorontsov/ResultPromises.git at master
========================================
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
Building for debugging...
[1/5] Compiling ResultPromises URLSession+Promises.swift
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLSession+Promises.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^         ~~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:17:24: error: cannot find type 'URLRequest' in scope
  func urlRequest() -> URLRequest?
                       ^~~~~~~~~~
[2/5] Compiling ResultPromises Promise.swift
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:17:24: error: cannot find type 'URLRequest' in scope
  func urlRequest() -> URLRequest?
                       ^~~~~~~~~~
[3/5] Compiling ResultPromises URLRequestable.swift
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:20:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestable {
          ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:17:24: error: cannot find type 'URLRequest' in scope
  func urlRequest() -> URLRequest?
                       ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:27:31: error: cannot find type 'URLRequest' in scope
  public func urlRequest() -> URLRequest? {
                              ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:33:31: error: cannot find type 'URLRequest' in scope
  public func urlRequest() -> URLRequest? {
                              ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:43:31: error: cannot find type 'URLRequest' in scope
  public func urlRequest() -> URLRequest? {
                              ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:21:31: error: cannot find type 'URLRequest' in scope
  public func urlRequest() -> URLRequest? {
                              ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module ResultPromises
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequest+Promises.swift:43:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
          ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:20:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestable {
          ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:17:24: error: cannot find type 'URLRequest' in scope
  func urlRequest() -> URLRequest?
                       ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:27:31: error: cannot find type 'URLRequest' in scope
  public func urlRequest() -> URLRequest? {
                              ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:33:31: error: cannot find type 'URLRequest' in scope
  public func urlRequest() -> URLRequest? {
                              ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:43:31: error: cannot find type 'URLRequest' in scope
  public func urlRequest() -> URLRequest? {
                              ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLSession+Promises.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^         ~~~~~~~~~~
[5/5] Compiling ResultPromises URLRequest+Promises.swift
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequest+Promises.swift:43:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
          ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequestable.swift:17:24: error: cannot find type 'URLRequest' in scope
  func urlRequest() -> URLRequest?
                       ^~~~~~~~~~
/host/spi-builder-workspace/ResultPromises/Sources/Extensions/URLRequest+Promises.swift:61:16: error: cannot find type 'URLRequest' in scope
  ) -> Promise<URLRequest> {
               ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2