The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Either with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/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/tbxark/swift-telegram-bot-api.git
Reference: 1.1.3
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/tbxark/swift-telegram-bot-api
 * tag               1.1.3      -> FETCH_HEAD
HEAD is now at 0306415 Update 2021.03.06
Cloned https://github.com/tbxark/swift-telegram-bot-api.git
Revision (git rev-parse @):
0306415c75fdc9e471be71a424b283462a33ded7
SUCCESS checkout https://github.com/tbxark/swift-telegram-bot-api.git at 1.1.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/tbxark/swift-telegram-bot-api.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/6] Write sources
[2/6] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Emitting module TelegramBotAPI
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramBotAPI.swift:411:63: error: generic type 'Either' specialized with too many type parameters (got 4, but expected 2)
    static public func sendMediaGroup(chatId: ChatId, media: [Either<InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo>], disableNotification: Bool? = nil, replyToMessageId: Int? = nil, allowSendingWithoutReply: Bool? = nil) -> Request {
                                                              ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:83:17: note: generic type 'Either' declared here
    public enum Either<A: Codable, B: Codable>: Codable {
                ^
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:42:58: error: cannot find type 'URLRequest' in scope
        public func jsonRequest(token: String) throws -> URLRequest {
                                                         ^~~~~~~~~~
[5/11] Compiling TelegramBotAPI TelegramModel.swift
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:42:58: error: cannot find type 'URLRequest' in scope
        public func jsonRequest(token: String) throws -> URLRequest {
                                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:49:23: error: cannot find 'URLRequest' in scope
            var req = URLRequest(url: url)
                      ^~~~~~~~~~
[6/11] Compiling TelegramBotAPI TelegramBotAPI.swift
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramBotAPI.swift:411:63: error: generic type 'Either' specialized with too many type parameters (got 4, but expected 2)
    static public func sendMediaGroup(chatId: ChatId, media: [Either<InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo>], disableNotification: Bool? = nil, replyToMessageId: Int? = nil, allowSendingWithoutReply: Bool? = nil) -> Request {
                                                              ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:83:17: note: generic type 'Either' declared here
    public enum Either<A: Codable, B: Codable>: Codable {
                ^
error: fatalError
[7/11] Emitting module Generate
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-24593BA9C3E375BF.txt
[2/9] Emitting module Generate
[3/9] Compiling Generate main.swift
[4/10] Wrapping AST for Generate for debugging
[5/10] Write Objects.LinkFileList
[6/10] Linking Generate
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Emitting module TelegramBotAPI
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramBotAPI.swift:411:63: error: generic type 'Either' specialized with too many type parameters (got 4, but expected 2)
    static public func sendMediaGroup(chatId: ChatId, media: [Either<InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo>], disableNotification: Bool? = nil, replyToMessageId: Int? = nil, allowSendingWithoutReply: Bool? = nil) -> Request {
                                                              ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:83:17: note: generic type 'Either' declared here
    public enum Either<A: Codable, B: Codable>: Codable {
                ^
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:42:58: error: cannot find type 'URLRequest' in scope
        public func jsonRequest(token: String) throws -> URLRequest {
                                                         ^~~~~~~~~~
[9/10] Compiling TelegramBotAPI TelegramModel.swift
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:42:58: error: cannot find type 'URLRequest' in scope
        public func jsonRequest(token: String) throws -> URLRequest {
                                                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:49:23: error: cannot find 'URLRequest' in scope
            var req = URLRequest(url: url)
                      ^~~~~~~~~~
[10/10] Compiling TelegramBotAPI TelegramBotAPI.swift
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramBotAPI.swift:411:63: error: generic type 'Either' specialized with too many type parameters (got 4, but expected 2)
    static public func sendMediaGroup(chatId: ChatId, media: [Either<InputMediaAudio, InputMediaDocument, InputMediaPhoto, InputMediaVideo>], disableNotification: Bool? = nil, replyToMessageId: Int? = nil, allowSendingWithoutReply: Bool? = nil) -> Request {
                                                              ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/TelegramBotAPI/TelegramModel.swift:83:17: note: generic type 'Either' declared here
    public enum Either<A: Codable, B: Codable>: Codable {
                ^
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1