Build Information
Successful build of TelegramBotSDK, reference v2.1.3 (7b1144
), with Swift 6.2 (beta) for Linux on 23 Jun 2025 09:43:51 UTC.
Swift 6 data race errors: 0
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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.2
Building package at path: $PWD
https://github.com/rapierorg/telegram-bot-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/3] Write sources
[1/3] Compiling CCurl shim.c
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/43] Compiling TelegramBotSDK BotName.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/NSRunLoop+Utils.swift:19:13: warning: result of call to 'run(mode:before:)' is unused [#no-usage]
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 [#no-usage]
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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- 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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- note: use 'scanUpToCharacters(from:)' instead
100 | }
101 | #elseif os(OSX)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[5/43] Compiling TelegramBotSDK DataTaskError.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/NSRunLoop+Utils.swift:19:13: warning: result of call to 'run(mode:before:)' is unused [#no-usage]
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 [#no-usage]
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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- 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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- note: use 'scanUpToCharacters(from:)' instead
100 | }
101 | #elseif os(OSX)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[6/43] Compiling TelegramBotSDK DictionaryUtils.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/NSRunLoop+Utils.swift:19:13: warning: result of call to 'run(mode:before:)' is unused [#no-usage]
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 [#no-usage]
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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- 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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- note: use 'scanUpToCharacters(from:)' instead
100 | }
101 | #elseif os(OSX)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[7/43] Compiling TelegramBotSDK NSRunLoop+Utils.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/NSRunLoop+Utils.swift:19:13: warning: result of call to 'run(mode:before:)' is unused [#no-usage]
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 [#no-usage]
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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- 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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- note: use 'scanUpToCharacters(from:)' instead
100 | }
101 | #elseif os(OSX)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[8/43] Compiling TelegramBotSDK Optional+Unwrap.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/NSRunLoop+Utils.swift:19:13: warning: result of call to 'run(mode:before:)' is unused [#no-usage]
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 [#no-usage]
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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- 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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- note: use 'scanUpToCharacters(from:)' instead
100 | }
101 | #elseif os(OSX)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[9/43] Compiling TelegramBotSDK Scanner+Compatibility.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/Extensions/NSRunLoop+Utils.swift:19:13: warning: result of call to 'run(mode:before:)' is unused [#no-usage]
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 [#no-usage]
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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- 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:)' [#DeprecatedDeclaration]
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:)' [#DeprecatedDeclaration]
| `- note: use 'scanUpToCharacters(from:)' instead
100 | }
101 | #elseif os(OSX)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[10/48] Compiling TelegramBotSDK ChatType.swift
[11/48] Compiling TelegramBotSDK InlineQueryResult.swift
[12/48] Compiling TelegramBotSDK InputFile.swift
[13/48] Compiling TelegramBotSDK InputFileOrString.swift
[14/48] Compiling TelegramBotSDK InputMedia.swift
[15/48] Compiling TelegramBotSDK TelegramBot+Requests.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:51:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
49 | }
50 | queue.async() {
51 | completion?(resultValid ? rawResult as! TResult? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:42:146: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | /// Perform asynchronous request.
41 | /// - Returns: Decodable on success. Nil on error, in which case `error` contains the details.
42 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: TResult?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
43 |
44 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: TResult.self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:73:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | }
72 | queue.async() {
73 | completion?(resultValid ? rawResult as! [TResult]? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:64:143: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | /// Perform asynchronous request.
63 | /// - Returns: array of Decodable on success. Nil on error, in which case `error` contains the details.
64 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: [TResult]?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 |
66 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: [TResult].self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
205 | }
206 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:156:112: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
154 | /// Initiates a request to the server. Used for implementing
155 | /// specific requests.
156 | internal func startDataTaskForEndpoint<T: Decodable>(_ endpoint: String, parameters: [String: Encodable?], resultType: T.Type, completion: @escaping DataTaskCompletion) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
157 | let endpointUrl = urlForEndpoint(endpoint)
158 |
/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>
[16/48] Compiling TelegramBotSDK TelegramBot+Utils.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:51:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
49 | }
50 | queue.async() {
51 | completion?(resultValid ? rawResult as! TResult? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:42:146: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | /// Perform asynchronous request.
41 | /// - Returns: Decodable on success. Nil on error, in which case `error` contains the details.
42 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: TResult?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
43 |
44 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: TResult.self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:73:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | }
72 | queue.async() {
73 | completion?(resultValid ? rawResult as! [TResult]? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:64:143: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | /// Perform asynchronous request.
63 | /// - Returns: array of Decodable on success. Nil on error, in which case `error` contains the details.
64 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: [TResult]?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 |
66 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: [TResult].self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
205 | }
206 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:156:112: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
154 | /// Initiates a request to the server. Used for implementing
155 | /// specific requests.
156 | internal func startDataTaskForEndpoint<T: Decodable>(_ endpoint: String, parameters: [String: Encodable?], resultType: T.Type, completion: @escaping DataTaskCompletion) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
157 | let endpointUrl = urlForEndpoint(endpoint)
158 |
/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>
[17/48] Compiling TelegramBotSDK TelegramBot.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:51:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
49 | }
50 | queue.async() {
51 | completion?(resultValid ? rawResult as! TResult? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:42:146: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | /// Perform asynchronous request.
41 | /// - Returns: Decodable on success. Nil on error, in which case `error` contains the details.
42 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: TResult?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
43 |
44 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: TResult.self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:73:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | }
72 | queue.async() {
73 | completion?(resultValid ? rawResult as! [TResult]? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:64:143: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | /// Perform asynchronous request.
63 | /// - Returns: array of Decodable on success. Nil on error, in which case `error` contains the details.
64 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: [TResult]?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 |
66 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: [TResult].self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
205 | }
206 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:156:112: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
154 | /// Initiates a request to the server. Used for implementing
155 | /// specific requests.
156 | internal func startDataTaskForEndpoint<T: Decodable>(_ endpoint: String, parameters: [String: Encodable?], resultType: T.Type, completion: @escaping DataTaskCompletion) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
157 | let endpointUrl = urlForEndpoint(endpoint)
158 |
/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>
[18/48] Compiling TelegramBotSDK ChatId.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:51:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
49 | }
50 | queue.async() {
51 | completion?(resultValid ? rawResult as! TResult? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:42:146: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | /// Perform asynchronous request.
41 | /// - Returns: Decodable on success. Nil on error, in which case `error` contains the details.
42 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: TResult?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
43 |
44 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: TResult.self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:73:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | }
72 | queue.async() {
73 | completion?(resultValid ? rawResult as! [TResult]? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:64:143: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | /// Perform asynchronous request.
63 | /// - Returns: array of Decodable on success. Nil on error, in which case `error` contains the details.
64 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: [TResult]?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 |
66 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: [TResult].self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
205 | }
206 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:156:112: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
154 | /// Initiates a request to the server. Used for implementing
155 | /// specific requests.
156 | internal func startDataTaskForEndpoint<T: Decodable>(_ endpoint: String, parameters: [String: Encodable?], resultType: T.Type, completion: @escaping DataTaskCompletion) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
157 | let endpointUrl = urlForEndpoint(endpoint)
158 |
/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>
[19/48] Compiling TelegramBotSDK ChatMember+Status.swift
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:51:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
49 | }
50 | queue.async() {
51 | completion?(resultValid ? rawResult as! TResult? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:42:146: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
40 | /// Perform asynchronous request.
41 | /// - Returns: Decodable on success. Nil on error, in which case `error` contains the details.
42 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: TResult?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
43 |
44 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: TResult.self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
52 | }
53 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:73:27: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
71 | }
72 | queue.async() {
73 | completion?(resultValid ? rawResult as! [TResult]? : nil, error)
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
74 | }
75 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot+Requests.swift:64:143: warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | /// Perform asynchronous request.
63 | /// - Returns: array of Decodable on success. Nil on error, in which case `error` contains the details.
64 | internal func requestAsync<TResult>(_ endpoint: String, _ parameters: [String: Encodable?] = [:], queue: DispatchQueue = DispatchQueue.main, completion: ((_ result: [TResult]?, _ error: DataTaskError?) -> ())?) where TResult: Decodable {
| `- warning: capture of non-Sendable type 'TResult.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 |
66 | startDataTaskForEndpoint(endpoint, parameters: parameters, resultType: [TResult].self) {
/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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
205 | }
206 | }
/host/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:156:112: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
154 | /// Initiates a request to the server. Used for implementing
155 | /// specific requests.
156 | internal func startDataTaskForEndpoint<T: Decodable>(_ endpoint: String, parameters: [String: Encodable?], resultType: T.Type, completion: @escaping DataTaskCompletion) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
157 | let endpointUrl = urlForEndpoint(endpoint)
158 |
/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>
[20/48] Compiling TelegramBotSDK Scanner+Utils.swift
[21/48] Compiling TelegramBotSDK String+ExtractBotCommand.swift
[22/48] Compiling TelegramBotSDK String+HTTP.swift
[23/48] Compiling TelegramBotSDK String+Trim.swift
[24/48] Compiling TelegramBotSDK String+Utils.swift
[25/48] Compiling TelegramBotSDK Methods.swift
[26/48] Emitting module TelegramBotSDK
[27/48] Compiling TelegramBotSDK PollType.swift
[28/48] Compiling TelegramBotSDK ReplyMarkup.swift
[29/48] Compiling TelegramBotSDK Response.swift
[30/48] Compiling TelegramBotSDK Utils.swift
[31/48] Compiling TelegramBotSDK WriteCallbackData.swift
[32/48] Compiling TelegramBotSDK Command.swift
[33/48] Compiling TelegramBotSDK ContentType.swift
[34/48] Compiling TelegramBotSDK Context.swift
[35/48] Compiling TelegramBotSDK Router+Helpers.swift
[36/48] Compiling TelegramBotSDK Router.swift
[37/48] Compiling TelegramBotSDK TaskAssociatedData.swift
[38/48] Compiling TelegramBotSDK Types.swift
[39/48] Compiling TelegramBotSDK HTTPUtils.swift
[40/48] Compiling TelegramBotSDK TelegramBot+getUpdates+Utils.swift
[41/48] Compiling TelegramBotSDK TelegramBot+sendChatAction+Utils.swift
[42/48] Compiling TelegramBotSDK MimeTypes.swift
[43/48] Compiling TelegramBotSDK Arguments.swift
[44/48] Compiling TelegramBotSDK InputMessageContent.swift
[45/48] Compiling TelegramBotSDK Message+Command.swift
[46/48] Compiling TelegramBotSDK MessageEntity+Utils.swift
[47/48] Compiling TelegramBotSDK MessageOrBool.swift
[48/48] Compiling TelegramBotSDK ParseMode.swift
Build complete! (18.81s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "TelegramBotSDK",
"name" : "TelegramBotSDK",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CCurl",
"targets" : [
"CCurl"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "TelegramBotSDK",
"targets" : [
"TelegramBotSDK"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4.2",
"5"
],
"targets" : [
{
"c99name" : "TelegramBotSDKTests",
"module_type" : "SwiftTarget",
"name" : "TelegramBotSDKTests",
"path" : "Tests/TelegramBotSDKTests",
"sources" : [
"BlockingServerTests.swift",
"RequestTests.swift",
"RouterTests.swift",
"TelegramBotTests.swift",
"UrlencodeTests.swift"
],
"target_dependencies" : [
"TelegramBotSDK"
],
"type" : "test"
},
{
"c99name" : "TelegramBotSDK",
"module_type" : "SwiftTarget",
"name" : "TelegramBotSDK",
"path" : "Sources/TelegramBotSDK",
"product_memberships" : [
"TelegramBotSDK"
],
"sources" : [
"BotName.swift",
"DataTaskError.swift",
"DictionaryUtils.swift",
"Extensions/NSRunLoop+Utils.swift",
"Extensions/Optional+Unwrap.swift",
"Extensions/Scanner+Compatibility.swift",
"Extensions/Scanner+Utils.swift",
"Extensions/String+ExtractBotCommand.swift",
"Extensions/String+HTTP.swift",
"Extensions/String+Trim.swift",
"Extensions/String+Utils.swift",
"Generated/Methods.swift",
"Generated/Types.swift",
"HTTPUtils.swift",
"Methods/TelegramBot+getUpdates+Utils.swift",
"Methods/TelegramBot+sendChatAction+Utils.swift",
"MimeTypes.swift",
"Router/Arguments.swift",
"Router/Command.swift",
"Router/ContentType.swift",
"Router/Context.swift",
"Router/Router+Helpers.swift",
"Router/Router.swift",
"TaskAssociatedData.swift",
"TelegramBot+Requests.swift",
"TelegramBot+Utils.swift",
"TelegramBot.swift",
"Types/ChatId.swift",
"Types/ChatMember+Status.swift",
"Types/ChatType.swift",
"Types/InlineQueryResult.swift",
"Types/InputFile.swift",
"Types/InputFileOrString.swift",
"Types/InputMedia.swift",
"Types/InputMessageContent.swift",
"Types/Message+Command.swift",
"Types/MessageEntity+Utils.swift",
"Types/MessageOrBool.swift",
"Types/ParseMode.swift",
"Types/PollType.swift",
"Types/ReplyMarkup.swift",
"Types/Response.swift",
"Utils.swift",
"WriteCallbackData.swift"
],
"target_dependencies" : [
"CCurl"
],
"type" : "library"
},
{
"c99name" : "CCurl",
"module_type" : "ClangTarget",
"name" : "CCurl",
"path" : "Sources/CCurl",
"product_memberships" : [
"CCurl",
"TelegramBotSDK"
],
"sources" : [
"shim.c"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Done.