This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build URLRequestOperation with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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.0
Building package at path:  $workDir
https://github.com/happn-app/URLRequestOperation.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/happn-app/RecursiveSyncDispatch.git
Fetching https://github.com/happn-app/RetryingOperation.git
Fetching https://github.com/happn-app/SemiSingleton.git
[1/395] Fetching retryingoperation
[396/816] Fetching retryingoperation, semisingleton
[817/994] Fetching retryingoperation, semisingleton, recursivesyncdispatch
[832/4355] Fetching retryingoperation, semisingleton, recursivesyncdispatch, swift-log
Fetched https://github.com/happn-app/RetryingOperation.git from cache (0.23s)
[1877/3960] Fetching semisingleton, recursivesyncdispatch, swift-log
Fetched https://github.com/happn-app/RecursiveSyncDispatch.git from cache (0.23s)
Fetched https://github.com/happn-app/SemiSingleton.git from cache (0.23s)
[1311/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.33s)
Computing version for https://github.com/happn-app/SemiSingleton.git
Computed https://github.com/happn-app/SemiSingleton.git at 2.0.5 (0.43s)
Computing version for https://github.com/happn-app/RetryingOperation.git
Computed https://github.com/happn-app/RetryingOperation.git at 1.1.7 (0.72s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.2 (0.67s)
Computing version for https://github.com/happn-app/RecursiveSyncDispatch.git
Computed https://github.com/happn-app/RecursiveSyncDispatch.git at 1.0.1 (0.69s)
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/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.2
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.7
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
Building for debugging...
[0/15] Write sources
[6/15] Write swift-version-24593BA9C3E375BF.txt
[8/21] Compiling Logging LogHandler.swift
[9/21] Emitting module Logging
[10/21] Compiling Logging Locks.swift
[11/21] Compiling Logging Logging.swift
[12/22] Wrapping AST for Logging for debugging
[14/22] Compiling RecursiveSyncDispatch RecursiveSyncDispatch.swift
[15/22] Emitting module RecursiveSyncDispatch
[16/28] Wrapping AST for RecursiveSyncDispatch for debugging
[18/32] Compiling RetryingOperation RetryingOperationConfig.swift
[19/32] Compiling RetryingOperation WrappedRetryingOperation.swift
[20/32] Compiling SemiSingleton LinuxStrongToWeakMapTable.swift
[21/32] Compiling SemiSingleton SemiSingletonConfig.swift
[22/32] Emitting module SemiSingleton
[23/32] Compiling SemiSingleton SemiSingletonStore.swift
[24/33] Emitting module RetryingOperation
[25/33] Compiling RetryingOperation RetryHelper.swift
[26/33] Compiling RetryingOperation RetryingOperation.swift
[28/34] Wrapping AST for SemiSingleton for debugging
[29/34] Wrapping AST for RetryingOperation for debugging
[31/42] Compiling URLRequestOperation ReachabilityObserver.swift
[32/42] Compiling URLRequestOperation ReachabilitySubscriber.swift
[33/43] 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 non-isolated 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 non-isolated 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: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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 non-isolated 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 non-isolated 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: annotate 'logFetchedStrings' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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 non-isolated 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 non-isolated 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: annotate 'debugLogURL' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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. */
[34/43] Compiling URLRequestOperation GenericURLSessionDelegate.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:59:42: warning: 'URLSessionStreamTask' is deprecated: URLSessionStreamTask is not available in swift-corelibs-foundation
57 | 	@available(OSX 10.11, iOS 9.0, *)
58 | //	@objc(streamTaskDelegateForStreamTask:)
59 | 	public func taskDelegateForTask(_ task: URLSessionStreamTask) -> URLSessionStreamDelegate? {
   |                                          `- warning: 'URLSessionStreamTask' is deprecated: URLSessionStreamTask is not available in swift-corelibs-foundation
60 | 		return queueSyncForMapTable.sync{ taskToDelegate.object(forKey: task) as? URLSessionStreamDelegate }
61 | 	}
[35/43] Compiling URLRequestOperation LinuxWeakToWeakMapTable.swift
[36/43] Compiling URLRequestOperation URLRequestOperationSessionDelegate.swift
[37/43] Emitting module URLRequestOperation
/host/spi-builder-workspace/Sources/URLRequestOperation/GenericURLSessionDelegate.swift:59:42: warning: 'URLSessionStreamTask' is deprecated: URLSessionStreamTask is not available in swift-corelibs-foundation
57 | 	@available(OSX 10.11, iOS 9.0, *)
58 | //	@objc(streamTaskDelegateForStreamTask:)
59 | 	public func taskDelegateForTask(_ task: URLSessionStreamTask) -> URLSessionStreamDelegate? {
   |                                          `- warning: 'URLSessionStreamTask' is deprecated: URLSessionStreamTask is not available in swift-corelibs-foundation
60 | 		return queueSyncForMapTable.sync{ taskToDelegate.object(forKey: task) as? URLSessionStreamDelegate }
61 | 	}
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperation.swift:298:21: warning: static property 'latestURLOperationIdentifier' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'latestURLOperationIdentifier' with '@MainActor' if property should only be accessed from the main actor
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 299 |
 300 | 	/* ************
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:54:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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 non-isolated 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 non-isolated 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: annotate 'logFetchedStrings' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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 non-isolated 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 non-isolated 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: annotate 'debugLogURL' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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/43] 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 non-isolated 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 non-isolated 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: annotate 'latestURLOperationIdentifier' with '@MainActor' if property should only be accessed from the main actor
     |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 299 |
 300 | 	/* ************
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:54:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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:67:20: warning: static property 'debugLogURL' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'debugLogURL' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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/URLRequestOperationConfig.swift:65:20: warning: static property 'logFetchedStrings' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'logFetchedStrings' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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?
[39/43] Compiling URLRequestOperation SockaddrWrapper.swift
/host/spi-builder-workspace/Sources/URLRequestOperation/URLRequestOperationConfig.swift:54:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |                    `- 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, *) {
[40/44] Wrapping AST for URLRequestOperation for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[42/46] 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) }
[43/46] 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.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.