The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TelegramBotSDK, reference v2.1.3 (7b1144), with Swift 6.4 for Linux on 22 Sep 2026 01:23:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rapierorg/telegram-bot-swift.git
Reference: v2.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/rapierorg/telegram-bot-swift
 * tag               v2.1.3     -> FETCH_HEAD
HEAD is now at 7b1144b Merge pull request #130 from fannur/master
Cloned https://github.com/rapierorg/telegram-bot-swift.git
Revision (git rev-parse @):
7b1144b867ca962e10b1de21c32ab7156e4a83ce
SUCCESS checkout https://github.com/rapierorg/telegram-bot-swift.git at v2.1.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/rapierorg/telegram-bot-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Pre-planning 1 / 125]
[34 / 42] TelegramBotSDK
[35 / 42] TelegramBotSDK
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:51:29: warning: reference to captured var 'resultValid' in concurrently-executing code; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
49 |             }
50 | 			queue.async() {
51 |                 completion?(resultValid ? rawResult as! TResult? : nil, error)
   |                             `- warning: reference to captured var 'resultValid' in concurrently-executing code; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
52 | 			}
53 | 		}
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:73:29: warning: reference to captured var 'resultValid' in concurrently-executing code; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
71 |             }
72 | 			queue.async() {
73 |                 completion?(resultValid ? rawResult as! [TResult]? : nil, error)
   |                             `- warning: reference to captured var 'resultValid' in concurrently-executing code; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
74 | 			}
75 | 		}
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
205 |             }
206 |         }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
205 |             }
206 |         }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:241:59: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
239 |         }
240 |         curl_easy_setopt_write_function(curl, CURLOPT_WRITEFUNCTION, writeFunction)
241 |         curl_easy_setopt_pointer(curl, CURLOPT_WRITEDATA, &callbackData)
    |                                                           `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
242 |         //curl_easy_setopt_int(curl, CURLOPT_VERBOSE, 1)
243 |         let code = curl_easy_perform(curl)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/NSRunLoop+Utils.swift:19:13: warning: result of call to 'run(mode:before:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
17 |     func waitForSemaphore(_ sem: DispatchSemaphore) {
18 | 		repeat {
19 |             run(mode: RunLoop.Mode.default, before: Date(timeIntervalSinceNow: 0.01))
   |             `- warning: result of call to 'run(mode:before:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
20 | 		} while .success != sem.wait(timeout: DispatchTime.now())
21 | 	}
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/Scanner+Compatibility.swift:72:16: warning: 'scanCharactersFromSet' is deprecated: renamed to 'scanCharacters(from:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 70 |     #if os(Linux) || os(Windows)
 71 |     func scanCharacters(from set: CharacterSet) -> String? {
 72 |         return scanCharactersFromSet(set)
    |                |- warning: 'scanCharactersFromSet' is deprecated: renamed to 'scanCharacters(from:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
    |                `- note: use 'scanCharacters(from:)' instead
 73 |     }
 74 |     #elseif os(OSX)
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/Scanner+Compatibility.swift:99:16: warning: 'scanUpToCharactersFromSet' is deprecated: renamed to 'scanUpToCharacters(from:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 97 |     #if os(Linux) || os(Windows)
 98 |     func scanUpToCharacters(from set: CharacterSet) -> String? {
 99 |         return scanUpToCharactersFromSet(set)
    |                |- warning: 'scanUpToCharactersFromSet' is deprecated: renamed to 'scanUpToCharacters(from:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
    |                `- note: use 'scanUpToCharacters(from:)' instead
100 |     }
101 |     #elseif os(OSX)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/TelegramBotSDK/Utils.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile Utils.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/Utils.swift:25:46: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
23 | 			"-----\n" +
24 | 			"Please create either:\n" +
25 | 			"  - an environment variable named \(name)\n" +
   |                                              `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
26 | 			"  - a file named \(name)\n" +
27 | 			"containing your bot's token.\n\n")
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/TelegramBotSDK/BotName.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/DataTaskError.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/DictionaryUtils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/NSRunLoop+Utils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/Optional+Unwrap.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/Scanner+Compatibility.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/Scanner+Utils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/String+ExtractBotCommand.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/String+HTTP.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/String+Trim.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/String+Utils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Generated/Methods.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Generated/Types.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/HTTPUtils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Methods/TelegramBot+getUpdates+Utils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Methods/TelegramBot+sendChatAction+Utils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/MimeTypes.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Router/Arguments.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Router/Command.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Router/ContentType.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Router/Context.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Router/Router+Helpers.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Router/Router.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/TaskAssociatedData.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Utils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/ChatId.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/ChatMember+Status.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/ChatType.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/InlineQueryResult.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/InputFile.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/InputFileOrString.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/InputMedia.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/InputMessageContent.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/Message+Command.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/MessageEntity+Utils.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/MessageOrBool.swift /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/ParseMode.swift -primary-file /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/PollType.swift -primary-file /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/ReplyMarkup.swift -primary-file /host/spi-builder-workspace/Sources/TelegramBotSDK/Types/Response.swift -primary-file /host/spi-builder-workspace/Sources/TelegramBotSDK/Utils.swift -primary-file /host/spi-builder-workspace/Sources/TelegramBotSDK/WriteCallbackData.swift -supplementary-output-file-map /host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/supplementaryOutputs-8 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fmodule-map-file\=/host/spi-builder-workspace/Sources/CCurl/include/module.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/Sources/CCurl/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name TelegramBotSDK -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/TelegramBotSDK_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/PollType.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/ReplyMarkup.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/Response.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/Utils.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/WriteCallbackData.o -index-unit-output-path /TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/PollType.o -index-unit-output-path /TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/ReplyMarkup.o -index-unit-output-path /TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/Response.o -index-unit-output-path /TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/Utils.o -index-unit-output-path /TelegramBotSDK.build/Debug-linux-x86_64/TelegramBotSDK-t.build/Objects-normal/x86_64/WriteCallbackData.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux