Build Information
Failed to build URLRequestOperation, reference 1.1.11 (cafea3
), with Swift 6.1 for Linux on 27 Apr 2025 08:25:44 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/happn-app/URLRequestOperation.git
Reference: 1.1.11
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/happn-app/URLRequestOperation
* tag 1.1.11 -> FETCH_HEAD
HEAD is now at cafea35 Merge pull request #7 from happn-app/remove_async_operation_result
Cloned https://github.com/happn-app/URLRequestOperation.git
Revision (git rev-parse @):
cafea350e06f73dfd82f20f926088fb62aed0eec
SUCCESS checkout https://github.com/happn-app/URLRequestOperation.git at 1.1.11
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/happn-app/URLRequestOperation.git
https://github.com/happn-app/URLRequestOperation.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "retryingoperation",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/happn-app/RetryingOperation.git"
},
{
"identity" : "semisingleton",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.3",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/happn-app/SemiSingleton.git"
}
],
"manifest_display_name" : "URLRequestOperation",
"name" : "URLRequestOperation",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "URLRequestOperation",
"targets" : [
"URLRequestOperation"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ManualTest",
"targets" : [
"ManualTest"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "URLRequestOperationTests",
"module_type" : "SwiftTarget",
"name" : "URLRequestOperationTests",
"path" : "Tests/URLRequestOperationTests",
"sources" : [
"IPUtilsTests.swift",
"ReachabilityTests.swift",
"URLRequestOperationTests.swift"
],
"target_dependencies" : [
"URLRequestOperation"
],
"type" : "test"
},
{
"c99name" : "URLRequestOperation",
"module_type" : "SwiftTarget",
"name" : "URLRequestOperation",
"path" : "Sources/URLRequestOperation",
"product_dependencies" : [
"Logging",
"RetryingOperation",
"SemiSingleton"
],
"product_memberships" : [
"URLRequestOperation",
"ManualTest"
],
"sources" : [
"GenericURLSessionDelegate.swift",
"LinuxWeakToWeakMapTable.swift",
"ReachabilityObserver.swift",
"ReachabilitySubscriber.swift",
"SockaddrWrapper.swift",
"URLRequestOperation.swift",
"URLRequestOperationConfig.swift",
"URLRequestOperationSessionDelegate.swift"
],
"type" : "library"
},
{
"c99name" : "ManualTest",
"module_type" : "SwiftTarget",
"name" : "ManualTest",
"path" : "Sources/ManualTest",
"product_memberships" : [
"ManualTest"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"URLRequestOperation"
],
"type" : "executable"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/happn-app/SemiSingleton.git
Fetching https://github.com/happn-app/RetryingOperation.git
Fetching https://github.com/apple/swift-log.git
[1/395] Fetching retryingoperation
[73/4231] Fetching retryingoperation, swift-log
[1109/4652] Fetching retryingoperation, swift-log, semisingleton
Fetched https://github.com/happn-app/RetryingOperation.git from cache (0.63s)
Fetched https://github.com/happn-app/SemiSingleton.git from cache (0.64s)
Fetched https://github.com/apple/swift-log.git from cache (0.64s)
Computing version for https://github.com/happn-app/SemiSingleton.git
Computed https://github.com/happn-app/SemiSingleton.git at 2.0.5 (1.37s)
Fetching https://github.com/happn-app/RecursiveSyncDispatch.git
[1/178] Fetching recursivesyncdispatch
Fetched https://github.com/happn-app/RecursiveSyncDispatch.git from cache (0.21s)
Computing version for https://github.com/happn-app/RecursiveSyncDispatch.git
Computed https://github.com/happn-app/RecursiveSyncDispatch.git at 1.0.1 (1.02s)
Computing version for https://github.com/happn-app/RetryingOperation.git
Computed https://github.com/happn-app/RetryingOperation.git at 1.1.8 (0.86s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.74s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/happn-app/SemiSingleton.git
Working copy of https://github.com/happn-app/SemiSingleton.git resolved at 2.0.5
Creating working copy for https://github.com/happn-app/RecursiveSyncDispatch.git
Working copy of https://github.com/happn-app/RecursiveSyncDispatch.git resolved at 1.0.1
Creating working copy for https://github.com/happn-app/RetryingOperation.git
Working copy of https://github.com/happn-app/RetryingOperation.git resolved at 1.1.8
Building for debugging...
[0/15] Write sources
[6/15] Write swift-version-24593BA9C3E375BF.txt
[8/22] Emitting module RecursiveSyncDispatch
[9/22] Compiling Logging MetadataProvider.swift
[10/22] Compiling Logging Logging.swift
[11/22] Compiling Logging LogHandler.swift
[12/22] Emitting module Logging
[13/22] Compiling Logging Locks.swift
[15/23] Compiling RecursiveSyncDispatch RecursiveSyncDispatch.swift
[15/24] Wrapping AST for Logging for debugging
[17/33] Wrapping AST for RecursiveSyncDispatch for debugging
[19/33] Emitting module RetryingOperation
[20/33] Compiling RetryingOperation WrappedRetryingOperation.swift
[21/33] Compiling RetryingOperation RetryingOperationConfig.swift
[22/33] Compiling SemiSingleton SemiSingletonConfig.swift
[23/33] Emitting module SemiSingleton
[24/33] Compiling RetryingOperation RetryHelper.swift
[25/33] Compiling RetryingOperation RetryingOperation.swift
[26/34] Compiling SemiSingleton LinuxStrongToWeakMapTable.swift
[27/34] Compiling SemiSingleton SemiSingletonStore.swift
[29/35] Wrapping AST for RetryingOperation for debugging
[30/35] Wrapping AST for SemiSingleton for debugging
[32/43] Compiling URLRequestOperation ReachabilityObserver.swift
[33/44] Compiling URLRequestOperation LinuxWeakToWeakMapTable.swift
[34/44] Compiling URLRequestOperation URLRequestOperationSessionDelegate.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationSessionDelegate.swift:23:12: warning: non-final class 'URLRequestOperationSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
21 |
22 |
23 | open class URLRequestOperationSessionDelegate : GenericURLSessionDelegate, URLSessionDataDelegate, URLSessionDownloadDelegate {
| `- warning: non-final class 'URLRequestOperationSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
24 |
25 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationSessionDelegate.swift:29:116: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
23 | open class URLRequestOperationSessionDelegate : GenericURLSessionDelegate, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 |
25 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- note: parameter 'completionHandler' is implicitly non-sendable
26 | #if !os(Linux)
27 | taskDelegateForTask(dataTask)?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
28 | #else
29 | taskDelegateForTask(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
30 | #endif
31 | }
[35/44] Compiling URLRequestOperation GenericURLSessionDelegate.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:37:12: warning: non-final class 'GenericURLSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
35 | The URLSessionDelegates and URLSessionTask are not retained by this class (weak
36 | references). */
37 | open class GenericURLSessionDelegate : NSObject, URLSessionDelegate {
| `- warning: non-final class 'GenericURLSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
38 |
39 | public func setTaskDelegate(_ delegate: AnyObject & URLSessionTaskDelegate, forTask task: URLSessionTask) {
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:67:15: warning: stored property 'taskToDelegate' of 'Sendable'-conforming class 'GenericURLSessionDelegate' is mutable; this is an error in the Swift 6 language mode
65 | private var taskToDelegate = NSMapTable<URLSessionTask, URLSessionTaskDelegate>.weakToWeakObjects()
66 | #else
67 | private var taskToDelegate = LinuxWeakToWeakForGenericURLSessionDelegateMapTable()
| `- warning: stored property 'taskToDelegate' of 'Sendable'-conforming class 'GenericURLSessionDelegate' is mutable; this is an error in the Swift 6 language mode
68 | #endif
69 |
[36/44] Emitting module URLRequestOperation
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:37:12: warning: non-final class 'GenericURLSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
35 | The URLSessionDelegates and URLSessionTask are not retained by this class (weak
36 | references). */
37 | open class GenericURLSessionDelegate : NSObject, URLSessionDelegate {
| `- warning: non-final class 'GenericURLSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
38 |
39 | public func setTaskDelegate(_ delegate: AnyObject & URLSessionTaskDelegate, forTask task: URLSessionTask) {
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:67:15: warning: stored property 'taskToDelegate' of 'Sendable'-conforming class 'GenericURLSessionDelegate' is mutable; this is an error in the Swift 6 language mode
65 | private var taskToDelegate = NSMapTable<URLSessionTask, URLSessionTaskDelegate>.weakToWeakObjects()
66 | #else
67 | private var taskToDelegate = LinuxWeakToWeakForGenericURLSessionDelegateMapTable()
| `- warning: stored property 'taskToDelegate' of 'Sendable'-conforming class 'GenericURLSessionDelegate' is mutable; this is an error in the Swift 6 language mode
68 | #endif
69 |
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:298:21: warning: static property 'latestURLOperationIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
296 | /** For debug purpose only: An arbitrary identifier for the operation. */
297 | public let urlOperationIdentifier: Int
298 | private static var latestURLOperationIdentifier = 0
| |- warning: static property 'latestURLOperationIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'latestURLOperationIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'latestURLOperationIdentifier' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
299 |
300 | /* ************
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:108:12: warning: class 'URLRequestOperation' must restate inherited '@unchecked Sendable' conformance
106 | If the operation is told to be retried, when it is retried, we simply go
107 | back to step 2. (The URL is re-processed, etc.) */
108 | open class URLRequestOperation : RetryingOperation, URLSessionDataDelegate, URLSessionDownloadDelegate {
| `- warning: class 'URLRequestOperation' must restate inherited '@unchecked Sendable' conformance
109 |
110 | public enum URLRequestOperationError : Int, Error {
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:54:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | public static var oslog: OSLog? = .default
53 | #endif
54 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | #if canImport(os)
56 | if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:65:20: warning: static property 'logFetchedStrings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
63 | /** When data has been fetched from a server, if it is a valid UTF-8 string,
64 | should we log it? Set to true for debug purpose. */
65 | public static var logFetchedStrings = false
| |- warning: static property 'logFetchedStrings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFetchedStrings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFetchedStrings' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 | /** Log everything URL Session related in the file at the given URL. */
67 | public static var debugLogURL: URL?
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:67:20: warning: static property 'debugLogURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
65 | public static var logFetchedStrings = false
66 | /** Log everything URL Session related in the file at the given URL. */
67 | public static var debugLogURL: URL?
| |- warning: static property 'debugLogURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 |
69 | /** This struct is simply a container for static configuration properties. */
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationSessionDelegate.swift:23:12: warning: non-final class 'URLRequestOperationSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
21 |
22 |
23 | open class URLRequestOperationSessionDelegate : GenericURLSessionDelegate, URLSessionDataDelegate, URLSessionDownloadDelegate {
| `- warning: non-final class 'URLRequestOperationSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
24 |
25 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
[37/44] Compiling URLRequestOperation URLRequestOperationConfig.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:54:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 | public static var oslog: OSLog? = .default
53 | #endif
54 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | #if canImport(os)
56 | if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:65:20: warning: static property 'logFetchedStrings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
63 | /** When data has been fetched from a server, if it is a valid UTF-8 string,
64 | should we log it? Set to true for debug purpose. */
65 | public static var logFetchedStrings = false
| |- warning: static property 'logFetchedStrings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logFetchedStrings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logFetchedStrings' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 | /** Log everything URL Session related in the file at the given URL. */
67 | public static var debugLogURL: URL?
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:67:20: warning: static property 'debugLogURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
65 | public static var logFetchedStrings = false
66 | /** Log everything URL Session related in the file at the given URL. */
67 | public static var debugLogURL: URL?
| |- warning: static property 'debugLogURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugLogURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'debugLogURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
68 |
69 | /** This struct is simply a container for static configuration properties. */
[38/44] Compiling URLRequestOperation ReachabilitySubscriber.swift
[39/44] Compiling URLRequestOperation SockaddrWrapper.swift
[40/44] Compiling URLRequestOperation URLRequestOperation.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:298:21: warning: static property 'latestURLOperationIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
296 | /** For debug purpose only: An arbitrary identifier for the operation. */
297 | public let urlOperationIdentifier: Int
298 | private static var latestURLOperationIdentifier = 0
| |- warning: static property 'latestURLOperationIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'latestURLOperationIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'latestURLOperationIdentifier' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
299 |
300 | /* ************
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:108:12: warning: class 'URLRequestOperation' must restate inherited '@unchecked Sendable' conformance
106 | If the operation is told to be retried, when it is retried, we simply go
107 | back to step 2. (The URL is re-processed, etc.) */
108 | open class URLRequestOperation : RetryingOperation, URLSessionDataDelegate, URLSessionDownloadDelegate {
| `- warning: class 'URLRequestOperation' must restate inherited '@unchecked Sendable' conformance
109 |
110 | public enum URLRequestOperationError : Int, Error {
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:449:150: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
447 | }
448 | }
449 | if let queueForProcessingURLRequestForRunning = config.queueForProcessingURLRequestForRunning {queueForProcessingURLRequestForRunning.addOperation(processURLBlock)}
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
450 | else {processURLBlock()}
451 | }
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:530:62: warning: passing non-sendable parameter 'dataCompletionHandler' to function expecting a @Sendable closure
524 | */
525 | open func urlSessionTaskForURLRequest(_ request: URLRequest,
526 | withDataCompletionHandler dataCompletionHandler: @escaping (Data?, URLResponse?, Error?) -> Void,
| `- note: parameter 'dataCompletionHandler' is implicitly non-sendable
527 | downloadCompletionHandler: @escaping (URL?, URLResponse?, Error?) -> Void
528 | ) -> URLSessionTask {
529 | return (config.destinationURL == nil ?
530 | config.session.dataTask(with: request, completionHandler: dataCompletionHandler) :
| `- warning: passing non-sendable parameter 'dataCompletionHandler' to function expecting a @Sendable closure
531 | config.session.downloadTask(with: request, completionHandler: downloadCompletionHandler)
532 | )
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:531:66: warning: passing non-sendable parameter 'downloadCompletionHandler' to function expecting a @Sendable closure
525 | open func urlSessionTaskForURLRequest(_ request: URLRequest,
526 | withDataCompletionHandler dataCompletionHandler: @escaping (Data?, URLResponse?, Error?) -> Void,
527 | downloadCompletionHandler: @escaping (URL?, URLResponse?, Error?) -> Void
| `- note: parameter 'downloadCompletionHandler' is implicitly non-sendable
528 | ) -> URLSessionTask {
529 | return (config.destinationURL == nil ?
530 | config.session.dataTask(with: request, completionHandler: dataCompletionHandler) :
531 | config.session.downloadTask(with: request, completionHandler: downloadCompletionHandler)
| `- warning: passing non-sendable parameter 'downloadCompletionHandler' to function expecting a @Sendable closure
532 | )
533 | }
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:982:114: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
980 | }
981 | }
982 | if let queueForComputingRetryInfo = config.queueForComputingRetryInfo {queueForComputingRetryInfo.addOperation(computeRetryInfoBlock)}
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
983 | else {computeRetryInfoBlock()}
984 | }
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:1039:28: warning: capture of 'self' with non-sendable type 'URLRequestOperation.OtherSuccessRetryHelper' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1025 | #endif
1026 |
1027 | private class OtherSuccessRetryHelper : RetryHelper {
| `- note: class 'OtherSuccessRetryHelper' does not conform to the 'Sendable' protocol
1028 |
1029 | init?(host h: String?, operation op: URLRequestOperation) {
:
1037 | otherSuccessObserver = NotificationCenter.default.addObserver(forName: .URLRequestOperationDidSucceedOperation, object: nil, queue: nil) { notif in
1038 | let succeededHost = notif.userInfo?[URLRequestOperation.requestSucceededNotifUserInfoHostKey] as? String
1039 | guard succeededHost == self.host else {return}
| `- warning: capture of 'self' with non-sendable type 'URLRequestOperation.OtherSuccessRetryHelper' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1040 |
1041 | #if canImport(os)
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:1045:58: warning: implicit capture of 'self' requires that 'URLRequestOperation.OtherSuccessRetryHelper' conforms to 'Sendable'; this is an error in the Swift 6 language mode
1025 | #endif
1026 |
1027 | private class OtherSuccessRetryHelper : RetryHelper {
| `- note: class 'OtherSuccessRetryHelper' does not conform to the 'Sendable' protocol
1028 |
1029 | init?(host h: String?, operation op: URLRequestOperation) {
:
1043 | URLRequestOperationConfig.oslog.flatMap{ os_log("URL Op id %d: Got an URL operation succeeded with same host as me. Forcing retrying sooner.", log: $0, type: .debug, self.operation.urlOperationIdentifier) }}
1044 | #endif
1045 | URLRequestOperationConfig.logger?.debug("URL Op id \(self.operation.urlOperationIdentifier): Got an URL operation succeeded with same host as me. Forcing retrying sooner.")
| `- warning: implicit capture of 'self' requires that 'URLRequestOperation.OtherSuccessRetryHelper' conforms to 'Sendable'; this is an error in the Swift 6 language mode
1046 | self.operation.retry(in: self.operation.exponentialBackoffTimeForIndex(1))
1047 | }
[41/45] Wrapping AST for URLRequestOperation for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/47] Emitting module ManualTest
/host/spi-builder-workspace/Sources/ManualTest/main.swift:23:15: error: cannot find 'URLRequest' in scope
21 |
22 | let q = OperationQueue()
23 | let request = URLRequest(url: URL(string: "https://frostland.fr")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0.1)
| `- error: cannot find 'URLRequest' in scope
24 | let operation = URLRequestOperation(request: request)
25 | operation.completionBlock = { print("ok"); exit(0) }
/host/spi-builder-workspace/Sources/ManualTest/main.swift:23:83: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
21 |
22 | let q = OperationQueue()
23 | let request = URLRequest(url: URL(string: "https://frostland.fr")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0.1)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
24 | let operation = URLRequestOperation(request: request)
25 | operation.completionBlock = { print("ok"); exit(0) }
[44/47] Compiling ManualTest main.swift
/host/spi-builder-workspace/Sources/ManualTest/main.swift:23:15: error: cannot find 'URLRequest' in scope
21 |
22 | let q = OperationQueue()
23 | let request = URLRequest(url: URL(string: "https://frostland.fr")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0.1)
| `- error: cannot find 'URLRequest' in scope
24 | let operation = URLRequestOperation(request: request)
25 | operation.completionBlock = { print("ok"); exit(0) }
/host/spi-builder-workspace/Sources/ManualTest/main.swift:23:83: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
21 |
22 | let q = OperationQueue()
23 | let request = URLRequest(url: URL(string: "https://frostland.fr")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0.1)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
24 | let operation = URLRequestOperation(request: request)
25 | operation.completionBlock = { print("ok"); exit(0) }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/9] Write swift-version-24593BA9C3E375BF.txt
[2/16] Emitting module RecursiveSyncDispatch
[3/16] Compiling Logging MetadataProvider.swift
[4/16] Emitting module Logging
[5/16] Compiling RecursiveSyncDispatch RecursiveSyncDispatch.swift
[6/17] Compiling Logging Locks.swift
[8/16] Compiling Logging LogHandler.swift
[9/16] Compiling Logging Logging.swift
[10/17] Wrapping AST for Logging for debugging
[12/26] Compiling RetryingOperation RetryHelper.swift
[13/26] Compiling RetryingOperation RetryingOperationConfig.swift
[14/26] Compiling RetryingOperation WrappedRetryingOperation.swift
[15/26] Emitting module RetryingOperation
[16/26] Emitting module SemiSingleton
[17/26] Compiling RetryingOperation RetryingOperation.swift
[18/27] Compiling SemiSingleton SemiSingletonStore.swift
[19/27] Compiling SemiSingleton LinuxStrongToWeakMapTable.swift
[20/27] Compiling SemiSingleton SemiSingletonConfig.swift
[23/34] Compiling URLRequestOperation URLRequestOperationConfig.swift
[24/35] Compiling URLRequestOperation LinuxWeakToWeakMapTable.swift
[25/35] Emitting module URLRequestOperation
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:37:12: warning: non-final class 'GenericURLSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
35 | The URLSessionDelegates and URLSessionTask are not retained by this class (weak
36 | references). */
37 | open class GenericURLSessionDelegate : NSObject, URLSessionDelegate {
| `- warning: non-final class 'GenericURLSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
38 |
39 | public func setTaskDelegate(_ delegate: AnyObject & URLSessionTaskDelegate, forTask task: URLSessionTask) {
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:67:15: warning: stored property 'taskToDelegate' of 'Sendable'-conforming class 'GenericURLSessionDelegate' is mutable; this is an error in the Swift 6 language mode
65 | private var taskToDelegate = NSMapTable<URLSessionTask, URLSessionTaskDelegate>.weakToWeakObjects()
66 | #else
67 | private var taskToDelegate = LinuxWeakToWeakForGenericURLSessionDelegateMapTable()
| `- warning: stored property 'taskToDelegate' of 'Sendable'-conforming class 'GenericURLSessionDelegate' is mutable; this is an error in the Swift 6 language mode
68 | #endif
69 |
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:108:12: warning: class 'URLRequestOperation' must restate inherited '@unchecked Sendable' conformance
106 | If the operation is told to be retried, when it is retried, we simply go
107 | back to step 2. (The URL is re-processed, etc.) */
108 | open class URLRequestOperation : RetryingOperation, URLSessionDataDelegate, URLSessionDownloadDelegate {
| `- warning: class 'URLRequestOperation' must restate inherited '@unchecked Sendable' conformance
109 |
110 | public enum URLRequestOperationError : Int, Error {
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationSessionDelegate.swift:23:12: warning: non-final class 'URLRequestOperationSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
21 |
22 |
23 | open class URLRequestOperationSessionDelegate : GenericURLSessionDelegate, URLSessionDataDelegate, URLSessionDownloadDelegate {
| `- warning: non-final class 'URLRequestOperationSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
24 |
25 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
[26/35] Compiling URLRequestOperation GenericURLSessionDelegate.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:37:12: warning: non-final class 'GenericURLSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
35 | The URLSessionDelegates and URLSessionTask are not retained by this class (weak
36 | references). */
37 | open class GenericURLSessionDelegate : NSObject, URLSessionDelegate {
| `- warning: non-final class 'GenericURLSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
38 |
39 | public func setTaskDelegate(_ delegate: AnyObject & URLSessionTaskDelegate, forTask task: URLSessionTask) {
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:67:15: warning: stored property 'taskToDelegate' of 'Sendable'-conforming class 'GenericURLSessionDelegate' is mutable; this is an error in the Swift 6 language mode
65 | private var taskToDelegate = NSMapTable<URLSessionTask, URLSessionTaskDelegate>.weakToWeakObjects()
66 | #else
67 | private var taskToDelegate = LinuxWeakToWeakForGenericURLSessionDelegateMapTable()
| `- warning: stored property 'taskToDelegate' of 'Sendable'-conforming class 'GenericURLSessionDelegate' is mutable; this is an error in the Swift 6 language mode
68 | #endif
69 |
[27/35] Compiling URLRequestOperation ReachabilityObserver.swift
[28/35] Compiling URLRequestOperation URLRequestOperationSessionDelegate.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationSessionDelegate.swift:23:12: warning: non-final class 'URLRequestOperationSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
21 |
22 |
23 | open class URLRequestOperationSessionDelegate : GenericURLSessionDelegate, URLSessionDataDelegate, URLSessionDownloadDelegate {
| `- warning: non-final class 'URLRequestOperationSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
24 |
25 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationSessionDelegate.swift:29:116: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
23 | open class URLRequestOperationSessionDelegate : GenericURLSessionDelegate, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 |
25 | public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- note: parameter 'completionHandler' is implicitly non-sendable
26 | #if !os(Linux)
27 | taskDelegateForTask(dataTask)?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
28 | #else
29 | taskDelegateForTask(dataTask)?.urlSession(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
30 | #endif
31 | }
[29/35] Compiling URLRequestOperation SockaddrWrapper.swift
[30/35] Compiling URLRequestOperation ReachabilitySubscriber.swift
[31/35] Compiling URLRequestOperation URLRequestOperation.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:108:12: warning: class 'URLRequestOperation' must restate inherited '@unchecked Sendable' conformance
106 | If the operation is told to be retried, when it is retried, we simply go
107 | back to step 2. (The URL is re-processed, etc.) */
108 | open class URLRequestOperation : RetryingOperation, URLSessionDataDelegate, URLSessionDownloadDelegate {
| `- warning: class 'URLRequestOperation' must restate inherited '@unchecked Sendable' conformance
109 |
110 | public enum URLRequestOperationError : Int, Error {
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:449:150: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
447 | }
448 | }
449 | if let queueForProcessingURLRequestForRunning = config.queueForProcessingURLRequestForRunning {queueForProcessingURLRequestForRunning.addOperation(processURLBlock)}
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
450 | else {processURLBlock()}
451 | }
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:530:62: warning: passing non-sendable parameter 'dataCompletionHandler' to function expecting a @Sendable closure
524 | */
525 | open func urlSessionTaskForURLRequest(_ request: URLRequest,
526 | withDataCompletionHandler dataCompletionHandler: @escaping (Data?, URLResponse?, Error?) -> Void,
| `- note: parameter 'dataCompletionHandler' is implicitly non-sendable
527 | downloadCompletionHandler: @escaping (URL?, URLResponse?, Error?) -> Void
528 | ) -> URLSessionTask {
529 | return (config.destinationURL == nil ?
530 | config.session.dataTask(with: request, completionHandler: dataCompletionHandler) :
| `- warning: passing non-sendable parameter 'dataCompletionHandler' to function expecting a @Sendable closure
531 | config.session.downloadTask(with: request, completionHandler: downloadCompletionHandler)
532 | )
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:531:66: warning: passing non-sendable parameter 'downloadCompletionHandler' to function expecting a @Sendable closure
525 | open func urlSessionTaskForURLRequest(_ request: URLRequest,
526 | withDataCompletionHandler dataCompletionHandler: @escaping (Data?, URLResponse?, Error?) -> Void,
527 | downloadCompletionHandler: @escaping (URL?, URLResponse?, Error?) -> Void
| `- note: parameter 'downloadCompletionHandler' is implicitly non-sendable
528 | ) -> URLSessionTask {
529 | return (config.destinationURL == nil ?
530 | config.session.dataTask(with: request, completionHandler: dataCompletionHandler) :
531 | config.session.downloadTask(with: request, completionHandler: downloadCompletionHandler)
| `- warning: passing non-sendable parameter 'downloadCompletionHandler' to function expecting a @Sendable closure
532 | )
533 | }
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:982:114: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
980 | }
981 | }
982 | if let queueForComputingRetryInfo = config.queueForComputingRetryInfo {queueForComputingRetryInfo.addOperation(computeRetryInfoBlock)}
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
983 | else {computeRetryInfoBlock()}
984 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/37] Emitting module ManualTest
/host/spi-builder-workspace/Sources/ManualTest/main.swift:23:15: error: cannot find 'URLRequest' in scope
21 |
22 | let q = OperationQueue()
23 | let request = URLRequest(url: URL(string: "https://frostland.fr")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0.1)
| `- error: cannot find 'URLRequest' in scope
24 | let operation = URLRequestOperation(request: request)
25 | operation.completionBlock = { print("ok"); exit(0) }
/host/spi-builder-workspace/Sources/ManualTest/main.swift:23:83: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
21 |
22 | let q = OperationQueue()
23 | let request = URLRequest(url: URL(string: "https://frostland.fr")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0.1)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
24 | let operation = URLRequestOperation(request: request)
25 | operation.completionBlock = { print("ok"); exit(0) }
[34/37] Compiling ManualTest main.swift
/host/spi-builder-workspace/Sources/ManualTest/main.swift:23:15: error: cannot find 'URLRequest' in scope
21 |
22 | let q = OperationQueue()
23 | let request = URLRequest(url: URL(string: "https://frostland.fr")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0.1)
| `- error: cannot find 'URLRequest' in scope
24 | let operation = URLRequestOperation(request: request)
25 | operation.completionBlock = { print("ok"); exit(0) }
/host/spi-builder-workspace/Sources/ManualTest/main.swift:23:83: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
21 |
22 | let q = OperationQueue()
23 | let request = URLRequest(url: URL(string: "https://frostland.fr")!, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0.1)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalAndRemoteCacheData'
24 | let operation = URLRequestOperation(request: request)
25 | operation.completionBlock = { print("ok"); exit(0) }
BUILD FAILURE 6.1 linux