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 SKServer, reference 4.1.2 (ee058e), with Swift 6.0 for Linux on 27 Nov 2024 12:05:00 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/pvzig/SKServer.git
Reference: 4.1.2
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/pvzig/SKServer
 * tag               4.1.2      -> FETCH_HEAD
HEAD is now at ee058e1 Merge pull request #5 from MrLotU/patch-1
Cloned https://github.com/pvzig/SKServer.git
Revision (git rev-parse @):
ee058e13e7bc0ef76b7f9abfd8182e806eb158b9
SUCCESS checkout https://github.com/pvzig/SKServer.git at 4.1.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/pvzig/SKServer.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
Fetching https://github.com/httpswift/swifter.git
Fetching https://github.com/SlackKit/SKCore
Fetching https://github.com/SlackKit/SKWebAPI
[1/288] Fetching skcore
[71/6320] Fetching skcore, swifter
[1858/6614] Fetching skcore, swifter, skwebapi
Fetched https://github.com/SlackKit/SKCore from cache (0.25s)
Fetched https://github.com/SlackKit/SKWebAPI from cache (0.27s)
[1629/6032] Fetching swifter
Fetched https://github.com/httpswift/swifter.git from cache (0.72s)
Computing version for https://github.com/SlackKit/SKWebAPI
Computed https://github.com/SlackKit/SKWebAPI at 4.1.3 (0.49s)
Computing version for https://github.com/SlackKit/SKCore
Computed https://github.com/SlackKit/SKCore at 4.1.3 (0.50s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.4.7 (2.13s)
Creating working copy for https://github.com/SlackKit/SKCore
Working copy of https://github.com/SlackKit/SKCore resolved at 4.1.3
Creating working copy for https://github.com/httpswift/swifter.git
Working copy of https://github.com/httpswift/swifter.git resolved at 1.4.7
Creating working copy for https://github.com/SlackKit/SKWebAPI
Working copy of https://github.com/SlackKit/SKWebAPI resolved at 4.1.3
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/49] Compiling SKCore Reaction.swift
[7/49] Compiling SKCore Reply.swift
[8/49] Compiling SKCore Scope.swift
[9/49] Emitting module SKCore
[10/52] Compiling SKCore Topic.swift
[11/52] Compiling SKCore User.swift
[12/52] Compiling SKCore UserGroup.swift
[13/52] Compiling SKCore File.swift
[14/52] Compiling SKCore History.swift
[15/52] Compiling SKCore Item.swift
[16/52] Compiling SKCore CustomProfileField.swift
[17/52] Compiling SKCore Message.swift
[18/52] Emitting module Swifter
[21/54] Compiling SKCore DoNotDisturbStatus.swift
[22/54] Compiling SKCore Action.swift
[23/54] Compiling SKCore Attachment.swift
[24/54] Compiling SKCore AttachmentField.swift
[25/54] Compiling Swifter HttpParser.swift
[26/54] Compiling SKCore Comment.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+File.swift:24:60: error: generic parameter 'Element' could not be inferred
22 |             while writeCounter < readResult {
23 |                 #if os(Linux)
24 |                     let writeResult = send(target, &buffer + writeCounter, readResult - writeCounter, Int32(MSG_NOSIGNAL))
   |                                                            `- error: generic parameter 'Element' could not be inferred
25 |                 #else
26 |                     let writeResult = write(target, &buffer + writeCounter, readResult - writeCounter)
[27/54] Compiling SKCore CustomProfile.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+File.swift:24:60: error: generic parameter 'Element' could not be inferred
22 |             while writeCounter < readResult {
23 |                 #if os(Linux)
24 |                     let writeResult = send(target, &buffer + writeCounter, readResult - writeCounter, Int32(MSG_NOSIGNAL))
   |                                                            `- error: generic parameter 'Element' could not be inferred
25 |                 #else
26 |                     let writeResult = write(target, &buffer + writeCounter, readResult - writeCounter)
[31/54] Compiling SKCore SlackError.swift
[32/54] Compiling SKCore Team.swift
[33/54] Compiling Swifter String+File.swift
[34/54] Compiling SKCore Channel.swift
[38/54] Compiling SKCore OAuthConfig.swift
[41/54] Compiling SKCore RTMOptions.swift
[44/54] Compiling Swifter String+SHA1.swift
[45/54] Compiling Swifter WebSockets.swift
[46/54] Compiling SKCore Extensions.swift
[54/59] Compiling SKWebAPI Endpoint.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[55/59] Emitting module SKWebAPI
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 31 |
 32 |     private let apiUrl = "https://slack.com/api/"
 33 |     private let session = URLSession(configuration: .default)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 34 |
 35 |     internal init() {}
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
 31 |
 32 |     private let apiUrl = "https://slack.com/api/"
 33 |     private let session = URLSession(configuration: .default)
    |                                                      `- error: cannot infer contextual base in reference to member 'default'
 34 |
 35 |     internal init() {}
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     }
132 |
133 |     internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
    |                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |         guard let data = data, let response = response as? HTTPURLResponse else {
135 |             throw SlackError.clientNetworkError
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
[56/59] Compiling SKWebAPI WebAPI.swift
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 31 |
 32 |     private let apiUrl = "https://slack.com/api/"
 33 |     private let session = URLSession(configuration: .default)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 34 |
 35 |     internal init() {}
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
 31 |
 32 |     private let apiUrl = "https://slack.com/api/"
 33 |     private let session = URLSession(configuration: .default)
    |                                                      `- error: cannot infer contextual base in reference to member 'default'
 34 |
 35 |     internal init() {}
[57/59] Compiling SKWebAPI NetworkInterface.swift
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 31 |
 32 |     private let apiUrl = "https://slack.com/api/"
 33 |     private let session = URLSession(configuration: .default)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 34 |
 35 |     internal init() {}
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
 31 |
 32 |     private let apiUrl = "https://slack.com/api/"
 33 |     private let session = URLSession(configuration: .default)
    |                                                      `- error: cannot infer contextual base in reference to member 'default'
 34 |
 35 |     internal init() {}
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |     }
132 |
133 |     internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
    |                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 |         guard let data = data, let response = response as? HTTPURLResponse else {
135 |             throw SlackError.clientNetworkError
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/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:47:23: error: cannot find 'URLRequest' in scope
 45 |             return
 46 |         }
 47 |         let request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 48 |
 49 |         session.dataTask(with: request) {(data, response, publicError) in
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:51:84: error: argument type '_' expected to be an instance of a class or class-constrained type
 49 |         session.dataTask(with: request) {(data, response, publicError) in
 50 |             do {
 51 |                 successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
 52 |             } catch let error {
 53 |                 errorClosure(error as? SlackError ?? SlackError.unknownError)
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:63:23: error: cannot find 'URLRequest' in scope
 61 |             return nil
 62 |         }
 63 |         let request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 64 |         var data: Data? = nil
 65 |         var response: URLResponse? = nil
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |         let request = URLRequest(url: url)
 64 |         var data: Data? = nil
 65 |         var response: URLResponse? = nil
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         var error: Error? = nil
 67 |         let semaphore = DispatchSemaphore(value: 0)
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/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:70:24: error: cannot assign value of type '_' to type 'URLResponse?' (aka 'Optional<AnyObject>')
 68 |         session.dataTask(with: request) { (reqData, reqResponse, reqError) in
 69 |             data = reqData
 70 |             response = reqResponse
    |                        `- error: cannot assign value of type '_' to type 'URLResponse?' (aka 'Optional<AnyObject>')
 71 |             error = reqError
 72 |             if data == nil, let error = error { print(error) }
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:89:23: error: cannot find 'URLRequest' in scope
 87 |             return
 88 |         }
 89 |         var request = URLRequest(url:url)
    |                       `- error: cannot find 'URLRequest' in scope
 90 |         request.httpMethod = "POST"
 91 |         let contentType = "application/json"
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:117:23: error: cannot find 'URLRequest' in scope
115 |             return
116 |         }
117 |         var request = URLRequest(url:url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.httpMethod = "POST"
119 |         let boundaryConstant = randomBoundary()
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:126:84: error: argument type '_' expected to be an instance of a class or class-constrained type
124 |         session.dataTask(with: request) {(data, response, publicError) in
125 |             do {
126 |                 successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
127 |             } catch let error {
128 |                 errorClosure(error as? SlackError ?? SlackError.unknownError)
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:134:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |
133 |     internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
134 |         guard let data = data, let response = response as? HTTPURLResponse else {
    |                                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |             throw SlackError.clientNetworkError
136 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:142:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 |             }
141 |
142 |             switch response.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 |             case 200:
144 |                 if json["ok"] as? Bool == true {
BUILD FAILURE 6.0 linux