The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build URLRequestOperation, reference main (cafea3), with Swift 6.2 (beta) for Linux on 19 Jun 2025 22:57:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/happn-app/URLRequestOperation.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/happn-app/URLRequestOperation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/happn-app/SemiSingleton.git
Fetching https://github.com/happn-app/RetryingOperation.git
[1/421] Fetching semisingleton
[132/4257] Fetching semisingleton, swift-log
[785/4652] Fetching semisingleton, swift-log, retryingoperation
Fetched https://github.com/happn-app/RetryingOperation.git from cache (0.43s)
[2318/4257] Fetching semisingleton, swift-log
Fetched https://github.com/happn-app/SemiSingleton.git from cache (0.44s)
[2340/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.66s)
Computing version for https://github.com/happn-app/SemiSingleton.git
Computed https://github.com/happn-app/SemiSingleton.git at 2.0.5 (1.34s)
Fetching https://github.com/happn-app/RecursiveSyncDispatch.git
[1/178] Fetching recursivesyncdispatch
Fetched https://github.com/happn-app/RecursiveSyncDispatch.git from cache (1.88s)
Computing version for https://github.com/happn-app/RecursiveSyncDispatch.git
Computed https://github.com/happn-app/RecursiveSyncDispatch.git at 1.0.1 (2.42s)
Computing version for https://github.com/happn-app/RetryingOperation.git
Computed https://github.com/happn-app/RetryingOperation.git at 1.1.8 (0.45s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.72s)
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
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
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 RecursiveSyncDispatch RecursiveSyncDispatch.swift
[11/23] Wrapping AST for RecursiveSyncDispatch for debugging
[13/23] Compiling Logging Locks.swift
[14/23] Emitting module Logging
[15/23] Compiling Logging Logging.swift
[16/23] Compiling Logging LogHandler.swift
[17/24] Wrapping AST for Logging for debugging
[19/33] Emitting module SemiSingleton
[20/33] Emitting module RetryingOperation
[21/33] Compiling RetryingOperation RetryingOperationConfig.swift
[22/33] Compiling RetryingOperation WrappedRetryingOperation.swift
[23/33] Compiling SemiSingleton SemiSingletonConfig.swift
[24/33] Compiling SemiSingleton LinuxStrongToWeakMapTable.swift
[25/33] Compiling SemiSingleton SemiSingletonStore.swift
[26/34] Compiling RetryingOperation RetryHelper.swift
[27/34] Compiling RetryingOperation RetryingOperation.swift
[29/35] Wrapping AST for SemiSingleton for debugging
[30/35] Wrapping AST for RetryingOperation for debugging
[32/43] Compiling URLRequestOperation URLRequestOperationConfig.swift
[33/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 |
[34/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: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) {
[35/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 | 	}
[36/44] Compiling URLRequestOperation SockaddrWrapper.swift
[37/44] Compiling URLRequestOperation ReachabilitySubscriber.swift
[38/44] Compiling URLRequestOperation LinuxWeakToWeakMapTable.swift
[39/44] 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 | 	}
[40/44] Compiling URLRequestOperation ReachabilityObserver.swift
[41/45] Wrapping AST for URLRequestOperation for debugging
[43/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) }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[44/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) }
BUILD FAILURE 6.2 linux