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 swift-package-directory, reference 0.1.0 (546715), with Swift 6.0 for Linux on 31 Aug 2024 21:04:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.52.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bitwit/swift-package-directory.git
Reference: 0.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/bitwit/swift-package-directory
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 5467153 add crawlGithub action
Cloned https://github.com/bitwit/swift-package-directory.git
Revision (git rev-parse @):
54671535d371ed5ecead5dea42804da9b9f6b065
SUCCESS checkout https://github.com/bitwit/swift-package-directory.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/bitwit/swift-package-directory.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:2b28393d406c9285d9e806e79837f7402d341afc699146287fbe8fc92110de85
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/mxcl/PromiseKit.git
[1/17034] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (0.97s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (2.55s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.22.1
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/25] Emitting module PromiseKit
[6/27] Compiling PromiseKit Async.swift
[7/27] Compiling PromiseKit Box.swift
[8/27] Compiling PromiseKit Catchable.swift
[9/27] Compiling PromiseKit race.swift
[10/27] Compiling PromiseKit when.swift
[11/27] Compiling PromiseKit Promise.swift
[12/27] Compiling PromiseKit Resolver.swift
[13/27] Compiling PromiseKit Combine.swift
[14/27] Compiling PromiseKit Configuration.swift
[15/27] Compiling PromiseKit CustomStringConvertible.swift
[16/27] Compiling PromiseKit Error.swift
[17/27] Compiling PromiseKit firstly.swift
[18/27] Compiling PromiseKit hang.swift
[19/27] Compiling PromiseKit Thenable.swift
[20/27] Compiling PromiseKit after.swift
[21/27] Compiling PromiseKit Guarantee.swift
[22/27] Compiling PromiseKit LogEvent.swift
[23/28] Wrapping AST for PromiseKit for debugging
[25/36] Compiling SPDCore URLRequest+Curl.swift
/host/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:8:18: error: cannot find type 'URLRequest' in scope
 6 | import Foundation
 7 |
 8 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
 9 |
10 |     /// Returns a cURL command for a request
[26/36] Compiling SPDCore performRequest.swift
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:6:23: warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 | public class Networking {
 5 |
 6 |     public static var callCount = [String: Int]()
   |                       |- warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'callCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'callCount' 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
 7 |
 8 |     public static func reportCallCount() {
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
   |                                                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |         let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:18:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |
17 |         return Promise { resolver in
18 |             let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 |
20 |                 if let err = error {
[27/37] Compiling SPDCore Package.swift
[28/37] Compiling SPDCore PackageManager.swift
[29/37] Compiling SPDCore PackageCrawler.swift
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:6:23: warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 | public class Networking {
 5 |
 6 |     public static var callCount = [String: Int]()
   |                       |- warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'callCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'callCount' 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
 7 |
 8 |     public static func reportCallCount() {
[30/37] Compiling SPDCore Cloudant.swift
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
  8 |
  9 | struct PopularSearch: Codable {
 10 |     let limit: Int = 10
    |         |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    |         |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'limit' case to silence this warning
    |         `- note: make the property mutable instead
 11 |     let sort = [["stargazers_count": "desc"]]
 12 |     let selector = ["stargazers_count": ["$gte": 100]]
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
  9 | struct PopularSearch: Codable {
 10 |     let limit: Int = 10
 11 |     let sort = [["stargazers_count": "desc"]]
    |         |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    |         |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'sort' case to silence this warning
    |         `- note: make the property mutable instead
 12 |     let selector = ["stargazers_count": ["$gte": 100]]
 13 |     let use_index: String
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
 10 |     let limit: Int = 10
 11 |     let sort = [["stargazers_count": "desc"]]
 12 |     let selector = ["stargazers_count": ["$gte": 100]]
    |         |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    |         |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'selector' case to silence this warning
    |         `- note: make the property mutable instead
 13 |     let use_index: String
 14 | }
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:43:19: error: cannot find 'URLRequest' in scope
 41 |         let query = PopularSearch(use_index: popularIndex)
 42 |
 43 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 44 |         let reqData = try! JSONEncoder().encode(query)
 45 |         req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
   |                                                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |         let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:63:19: error: cannot find 'URLRequest' in scope
 61 |         }
 62 |
 63 |         let req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 64 |
 65 |         return Networking.perform(req, transformingResponseTo: FindAllResult.self, debug: false)
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:83:19: error: cannot find 'URLRequest' in scope
 81 |         ]
 82 |
 83 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 84 |         let reqData = try! JSONSerialization.data(withJSONObject: query, options: [])
 85 |         req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:105:19: error: cannot find 'URLRequest' in scope
103 |         ]
104 |
105 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
106 |         let reqData = try! JSONSerialization.data(withJSONObject: query, options: [])
107 |         req.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:128:19: error: cannot find 'URLRequest' in scope
126 | //        finalPackage.last_package_update = Date()
127 |
128 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
129 |         let encoder = JSONEncoder()
130 |         encoder.dateEncodingStrategy = .iso8601
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:148:19: error: cannot find 'URLRequest' in scope
146 |         }
147 |
148 |         let req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
149 |         return Networking.perform(req, transformingResponseTo: AppConfig.self)
150 |     }
/host/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:158:19: error: cannot find 'URLRequest' in scope
156 |         }
157 |
158 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
159 |
160 |         let encoder = JSONEncoder()
[31/37] Compiling SPDCore GitHub.swift
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:40:19: error: cannot find 'URLRequest' in scope
 38 |         }
 39 |
 40 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 41 |
 42 |         let userPasswordString = "\(username):\(accessToken)"
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
   |                                                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |         let host = request.url?.host ?? "unknown"
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:64:19: error: cannot find 'URLRequest' in scope
 62 |         }
 63 |
 64 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 65 |         let userPasswordString = "\(username):\(accessToken)"
 66 |         let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:82:19: error: cannot find 'URLRequest' in scope
 80 |         }
 81 |
 82 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 83 |         let userPasswordString = "\(username):\(accessToken)"
 84 |         let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:109:19: error: cannot find 'URLRequest' in scope
107 |         }
108 |
109 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
110 |         let userPasswordString = "\(username):\(accessToken)"
111 |         let userPasswordData = userPasswordString.data(using: .utf8)
/host/spi-builder-workspace/Sources/SPDCore/Services/GitHub.swift:125:19: error: cannot find 'URLRequest' in scope
123 |         }
124 |
125 |         var req = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
126 |         let userPasswordString = "\(username):\(accessToken)"
127 |         let userPasswordData = userPasswordString.data(using: .utf8)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/37] Compiling SPDCore DataStructures.swift
[33/37] Emitting module SPDCore
/host/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:8:18: error: cannot find type 'URLRequest' in scope
 6 | import Foundation
 7 |
 8 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
 9 |
10 |     /// Returns a cURL command for a request
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:6:23: warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 | public class Networking {
 5 |
 6 |     public static var callCount = [String: Int]()
   |                       |- warning: static property 'callCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'callCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'callCount' 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
 7 |
 8 |     public static func reportCallCount() {
/host/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:12:57: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public static func perform<T: Decodable>(_ request: URLRequest, transformingResponseTo responseType: T.Type, debug: Bool = false) -> Promise<T> {
   |                                                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |         let host = request.url?.host ?? "unknown"
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.