The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Janus with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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/amarantedaniel/JanusSwift.git
Reference: master
Cloned https://github.com/amarantedaniel/JanusSwift.git into spi-builder-workspace
SUCCESS checkout https://github.com/amarantedaniel/JanusSwift.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-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/22] Emitting module Janus
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:65:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/URLRequestConvertible.swift:4:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let janus = "ack"
        ^
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum without a 'janus' case to silence this warning
    let janus = "ack"
        ^
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: note: make the property mutable instead
    let janus = "ack"
    ~~~ ^
    var
[2/25] Compiling Janus WatchResponse.swift
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let janus = "ack"
        ^
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum without a 'janus' case to silence this warning
    let janus = "ack"
        ^
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: note: make the property mutable instead
    let janus = "ack"
    ~~~ ^
    var
[3/25] Compiling Janus TrickleResponse.swift
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let janus = "ack"
        ^
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum without a 'janus' case to silence this warning
    let janus = "ack"
        ^
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: note: make the property mutable instead
    let janus = "ack"
    ~~~ ^
    var
[4/25] Compiling Janus JanusAPI.swift
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    let janus = "ack"
        ^
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: note: set the initial value via the initializer or explicitly define a CodingKeys enum without a 'janus' case to silence this warning
    let janus = "ack"
        ^
/host/spi-builder-workspace/Sources/Janus/Data/Response/Streaming/WatchResponse.swift:4:9: note: make the property mutable instead
    let janus = "ack"
    ~~~ ^
    var
[5/25] Compiling Janus APIClient.swift
/host/spi-builder-workspace/Sources/Janus/API/URLRequestConvertible.swift:4:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:65:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIClient.swift:9:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: route.asURLRequest(baseUrl: baseUrl)) { data, _, _ in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIClient.swift:14:36: error: generic parameter 'C' could not be inferred
                let jsonResponse = String(decoding: data!, as: UTF8.self)
                                   ^
Swift.String:2:23: note: in call to initializer
    @inlinable public init<C, Encoding>(decoding codeUnits: C, as sourceEncoding: Encoding.Type) where C : Collection, Encoding : _UnicodeEncoding, C.Element == Encoding.CodeUnit
                      ^
[6/25] Compiling Janus APIClientProtocol.swift
/host/spi-builder-workspace/Sources/Janus/API/URLRequestConvertible.swift:4:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:65:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIClient.swift:9:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: route.asURLRequest(baseUrl: baseUrl)) { data, _, _ in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIClient.swift:14:36: error: generic parameter 'C' could not be inferred
                let jsonResponse = String(decoding: data!, as: UTF8.self)
                                   ^
Swift.String:2:23: note: in call to initializer
    @inlinable public init<C, Encoding>(decoding codeUnits: C, as sourceEncoding: Encoding.Type) where C : Collection, Encoding : _UnicodeEncoding, C.Element == Encoding.CodeUnit
                      ^
[7/25] Compiling Janus APIError.swift
/host/spi-builder-workspace/Sources/Janus/API/URLRequestConvertible.swift:4:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:65:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIClient.swift:9:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: route.asURLRequest(baseUrl: baseUrl)) { data, _, _ in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIClient.swift:14:36: error: generic parameter 'C' could not be inferred
                let jsonResponse = String(decoding: data!, as: UTF8.self)
                                   ^
Swift.String:2:23: note: in call to initializer
    @inlinable public init<C, Encoding>(decoding codeUnits: C, as sourceEncoding: Encoding.Type) where C : Collection, Encoding : _UnicodeEncoding, C.Element == Encoding.CodeUnit
                      ^
[8/25] Compiling Janus CreateResponse.swift
[9/25] Compiling Janus KeepAliveResponse.swift
[10/25] Compiling Janus ListResult.swift
[11/25] Compiling Janus WatchRequest.swift
[12/25] Compiling Janus TrickleRequest.swift
[13/25] Compiling Janus AttachPluginResponse.swift
[14/25] Compiling Janus KeepAliveRequest.swift
[15/25] Compiling Janus ListRequest.swift
[16/25] Compiling Janus StartRequest.swift
[17/25] Compiling Janus LongPollStartResult.swift
[18/25] Compiling Janus LongPollWatchResult.swift
[19/25] Compiling Janus StartResponse.swift
[20/25] Compiling Janus APIRoute.swift
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:65:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/URLRequestConvertible.swift:4:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:66:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url(baseUrl: baseUrl))
                         ^~~~~~~~~~
[21/25] Compiling Janus URLRequestConvertible.swift
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:65:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/URLRequestConvertible.swift:4:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:66:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url(baseUrl: baseUrl))
                         ^~~~~~~~~~
[22/25] Compiling Janus JSEP.swift
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:65:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest {
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/URLRequestConvertible.swift:4:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest
                                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Janus/API/APIRoute.swift:66:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url(baseUrl: baseUrl))
                         ^~~~~~~~~~
[23/25] Compiling Janus Plugin.swift
[24/25] Compiling Janus AttachPluginRequest.swift
[25/25] Compiling Janus CreateRequest.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1