The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Janus with Swift 5.10 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amarantedaniel/JanusSwift.git
Reference: 0.0.7
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/amarantedaniel/JanusSwift
 * tag               0.0.7      -> FETCH_HEAD
HEAD is now at b406022 Add support to keepalive requests
Cloned https://github.com/amarantedaniel/JanusSwift.git
Revision (git rev-parse @):
b4060229d323d64680d5829197c4a3e26000fdfc
SUCCESS checkout https://github.com/amarantedaniel/JanusSwift.git at 0.0.7
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/amarantedaniel/JanusSwift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/24] 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
[4/27] 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
[5/27] 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
[6/27] 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
[7/27] Compiling Janus WatchRequest.swift
[8/27] Compiling Janus TrickleRequest.swift
[9/27] Compiling Janus AttachPluginResponse.swift
[10/27] Compiling Janus KeepAliveRequest.swift
[11/27] Compiling Janus ListRequest.swift
[12/27] Compiling Janus StartRequest.swift
[13/27] Compiling Janus Plugin.swift
[14/27] Compiling Janus AttachPluginRequest.swift
[15/27] Compiling Janus CreateRequest.swift
[16/27] Compiling Janus LongPollStartResult.swift
[17/27] Compiling Janus LongPollWatchResult.swift
[18/27] Compiling Janus StartResponse.swift
[19/27] Compiling Janus CreateResponse.swift
[20/27] Compiling Janus KeepAliveResponse.swift
[21/27] Compiling Janus ListResult.swift
[22/27] 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
                      ^
[23/27] 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
                      ^
[24/27] 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
                      ^
[25/27] 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))
                         ^~~~~~~~~~
[26/27] 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))
                         ^~~~~~~~~~
[27/27] 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))
                         ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling Janus APIError.swift
[3/8] Compiling Janus APIClientProtocol.swift
[4/8] 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))
                         ^~~~~~~~~~
[5/9] Compiling Janus JSEP.swift
[6/9] Compiling Janus URLRequestConvertible.swift
/host/spi-builder-workspace/Sources/Janus/API/URLRequestConvertible.swift:4:40: error: cannot find type 'URLRequest' in scope
    func asURLRequest(baseUrl: URL) -> URLRequest
                                       ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] 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
[8/11] 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
                      ^
[9/11] Compiling Janus LongPollWatchResult.swift
[10/11] Compiling Janus StartRequest.swift
[11/11] Compiling Janus JanusAPI.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2