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 DataOperation, reference 1.1.0 (bcafb9), with Swift 6.0 for Linux on 27 Nov 2024 13:05:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Mobelux/DataOperation.git
Reference: 1.1.0
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/Mobelux/DataOperation
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at bcafb92 convert to spm
Cloned https://github.com/Mobelux/DataOperation.git
Revision (git rev-parse @):
bcafb921c95579aff519f59bf9ec524e45e0695c
SUCCESS checkout https://github.com/Mobelux/DataOperation.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Mobelux/DataOperation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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 -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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling DataOperation Operation+Utils.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module DataOperation
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:29:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 |     public var result: Result<Data, DataError>?
28 |
29 |     public init(request: Request, session: Session = URLSession(configuration: URLSessionConfiguration.default)) {
   |                                                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
30 |         self.request = request
31 |         self.session = session
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:29:104: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
27 |     public var result: Result<Data, DataError>?
28 |
29 |     public init(request: Request, session: Session = URLSession(configuration: URLSessionConfiguration.default)) {
   |                                                                                                        `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 |         self.request = request
31 |         self.session = session
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:23:20: warning: class 'DataOperation' must restate inherited '@unchecked Sendable' conformance
21 | }
22 |
23 | public final class DataOperation: Operation {
   |                    `- warning: class 'DataOperation' must restate inherited '@unchecked Sendable' conformance
24 |     private let request: Request
25 |     private let session: Session
/host/spi-builder-workspace/Sources/DataOperation/Request.swift:19:11: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | extension URLRequest: Request {
   |           `- error: cannot find type 'URLRequest' in scope
20 |     public init(url: URL) {
21 |         self.init(url: url, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 60.0)
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:12:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public protocol Session {
12 |     init(configuration: URLSessionConfiguration)
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask?
14 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:13:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol Session {
12 |     init(configuration: URLSessionConfiguration)
13 |     func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask?
   |                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:20:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | }
19 |
20 | extension URLSession: Session {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
21 |     public func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask? {
22 |         guard let request = request as? URLRequest else {
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:30:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
28 | }
29 |
30 | extension URLSessionDataTask: SessionDataTask {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
31 |
[5/7] Compiling DataOperation Request.swift
/host/spi-builder-workspace/Sources/DataOperation/Request.swift:19:11: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | extension URLRequest: Request {
   |           `- error: cannot find type 'URLRequest' in scope
20 |     public init(url: URL) {
21 |         self.init(url: url, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 60.0)
[6/7] Compiling DataOperation DataOperation.swift
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:29:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 |     public var result: Result<Data, DataError>?
28 |
29 |     public init(request: Request, session: Session = URLSession(configuration: URLSessionConfiguration.default)) {
   |                                                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
30 |         self.request = request
31 |         self.session = session
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:29:104: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
27 |     public var result: Result<Data, DataError>?
28 |
29 |     public init(request: Request, session: Session = URLSession(configuration: URLSessionConfiguration.default)) {
   |                                                                                                        `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
30 |         self.request = request
31 |         self.session = session
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:23:20: warning: class 'DataOperation' must restate inherited '@unchecked Sendable' conformance
21 | }
22 |
23 | public final class DataOperation: Operation {
   |                    `- warning: class 'DataOperation' must restate inherited '@unchecked Sendable' conformance
24 |     private let request: Request
25 |     private let session: Session
[7/7] Compiling DataOperation Session.swift
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:12:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 | public protocol Session {
12 |     init(configuration: URLSessionConfiguration)
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask?
14 | }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:13:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public protocol Session {
12 |     init(configuration: URLSessionConfiguration)
13 |     func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask?
   |                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:20:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | }
19 |
20 | extension URLSession: Session {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
21 |     public func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask? {
22 |         guard let request = request as? URLRequest else {
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:30:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
28 | }
29 |
30 | extension URLSessionDataTask: SessionDataTask {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
31 |
BUILD FAILURE 6.0 linux