Build Information
Successful build of swift-package-directory, reference 0.1.0 (546715
), with Swift 6.0 for macOS (SPM) on 31 Aug 2024 21:05:19 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.6.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
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 /Users/admin/builder/spi-builder-workspace/.git/
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: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/bitwit/swift-package-directory.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.6.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/8] Write sources
[3/8] Write SPDCorePlayground-entitlement.plist
[4/8] Write swift-version--14728B76ED507284.txt
[6/25] Compiling PromiseKit race.swift
[7/26] Compiling PromiseKit Resolver.swift
[8/26] Compiling PromiseKit Thenable.swift
[9/26] Compiling PromiseKit Configuration.swift
[10/26] Compiling PromiseKit CustomStringConvertible.swift
[11/26] Compiling PromiseKit Async.swift
[12/26] Compiling PromiseKit Box.swift
[13/26] Compiling PromiseKit Catchable.swift
[14/26] Compiling PromiseKit Combine.swift
[15/26] Emitting module PromiseKit
[16/26] Compiling PromiseKit LogEvent.swift
[17/26] Compiling PromiseKit Promise.swift
[18/26] Compiling PromiseKit hang.swift
[19/26] Compiling PromiseKit Error.swift
[20/26] Compiling PromiseKit Guarantee.swift
[21/26] Compiling PromiseKit after.swift
[22/26] Compiling PromiseKit firstly.swift
[23/26] Compiling PromiseKit when.swift
[24/35] Compiling SPDCore performRequest.swift
/Users/admin/builder/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() {
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:21:21: warning: capture of 'resolver' with non-sendable type 'Resolver<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |
20 | if let err = error {
21 | resolver.reject(err)
| `- warning: capture of 'resolver' with non-sendable type 'Resolver<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | return
23 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:2:20: note: generic class 'Resolver' does not conform to the 'Sendable' protocol
1 | /// An object for resolving promises
2 | public final class Resolver<T> {
| `- note: generic class 'Resolver' does not conform to the 'Sendable' protocol
3 | let box: Box<Result<T>>
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PromiseKit'
1 | import Foundation
2 | import PromiseKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PromiseKit'
3 |
4 | public class Networking {
[25/35] Compiling SPDCore PackageCrawler.swift
/Users/admin/builder/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() {
[26/35] Compiling SPDCore Cloudant.swift
/Users/admin/builder/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]]
/Users/admin/builder/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
/Users/admin/builder/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 | }
[27/35] Compiling SPDCore Package.swift
[28/35] Compiling SPDCore DataStructures.swift
[29/35] Emitting module SPDCore
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:12:5: warning: 'public' modifier is redundant for property declared in a public extension
10 | /// Returns a cURL command for a request
11 | /// - return A String object that contains cURL command or "" if an URL is not properly initalized.
12 | public var cURL: String {
| `- warning: 'public' modifier is redundant for property declared in a public extension
13 |
14 | guard
/Users/admin/builder/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/35] Compiling SPDCore PackageManager.swift
[31/35] Compiling SPDCore URLRequest+Curl.swift
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:12:5: warning: 'public' modifier is redundant for property declared in a public extension
10 | /// Returns a cURL command for a request
11 | /// - return A String object that contains cURL command or "" if an URL is not properly initalized.
12 | public var cURL: String {
| `- warning: 'public' modifier is redundant for property declared in a public extension
13 |
14 | guard
[32/35] Compiling SPDCore GitHub.swift
[33/37] Emitting module SPDCorePlayground
[34/37] Compiling SPDCorePlayground main.swift
[34/37] Write Objects.LinkFileList
[35/37] Linking SPDCorePlayground
[36/37] Applying SPDCorePlayground
Build complete! (37.22s)
Fetching https://github.com/mxcl/PromiseKit.git
[1/17034] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (1.82s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (2.63s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.22.1
Build complete.
{
"dependencies" : [
{
"identity" : "promisekit",
"requirement" : {
"range" : [
{
"lower_bound" : "6.3.1",
"upper_bound" : "7.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mxcl/PromiseKit.git"
}
],
"manifest_display_name" : "swift-package-directory",
"name" : "swift-package-directory",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SPDCore",
"targets" : [
"SPDCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SPDCorePlayground",
"targets" : [
"SPDCorePlayground"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SPDCorePlayground",
"module_type" : "SwiftTarget",
"name" : "SPDCorePlayground",
"path" : "Sources/SPDCorePlayground",
"product_memberships" : [
"SPDCorePlayground"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"SPDCore"
],
"type" : "executable"
},
{
"c99name" : "SPDCore",
"module_type" : "SwiftTarget",
"name" : "SPDCore",
"path" : "Sources/SPDCore",
"product_dependencies" : [
"PromiseKit"
],
"product_memberships" : [
"SPDCore",
"SPDCorePlayground"
],
"sources" : [
"Data Structures/DataStructures.swift",
"Data Structures/Package.swift",
"Functions/URLRequest+Curl.swift",
"Functions/performRequest.swift",
"Services/Cloudant.swift",
"Services/GitHub.swift",
"Services/PackageCrawler.swift",
"Services/PackageManager.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.