Build Information
Failed to build Either 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/tbxark/swift-telegram-bot-api.git
Reference: 1.1.3
Cloned https://github.com/tbxark/swift-telegram-bot-api.git into spi-builder-workspace
SUCCESS checkout https://github.com/tbxark/swift-telegram-bot-api.git at 1.1.3
========================================
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/7] 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 {
^
[2/7] 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)
^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] 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 {
^~~~~~~~~~
[4/7] Emitting module Generate
[5/7] Compiling Generate main.swift
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2