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

Successful build of Catbird, reference 0.11.0 (ad1187), with Swift 6.0 for Linux on 28 Nov 2024 11:50:47 UTC.

Swift 6 data race errors: 6

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 -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/RedMadRobot/catbird.git
Reference: 0.11.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/RedMadRobot/catbird
 * tag               0.11.0     -> FETCH_HEAD
HEAD is now at ad11879 Version 0.11.0
Cloned https://github.com/RedMadRobot/catbird.git
Revision (git rev-parse @):
ad118798331243b6debd0e783054fb0682f1734d
SUCCESS checkout https://github.com/RedMadRobot/catbird.git at 0.11.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/RedMadRobot/catbird.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 -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/9] Compiling CatbirdAPI PatternMatch.swift
[4/9] Compiling CatbirdAPI CatbirdError.swift
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:16:23: warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     /// The domain of the error.
16 |     public static var errorDomain = "com.redmadrobot.catbird.APIErrorDomain"
   |                       |- warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'errorDomain' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'errorDomain' 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
17 |
18 |     /// HTTP status code.
[5/9] Compiling CatbirdAPI RequestPattern.swift
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:45:27: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
43 |         }
44 |
45 |         public static let GET = HTTPMethod("GET")
   |                           |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'GET' 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
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:46:27: warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
44 |
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
   |                           |- warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'POST' 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
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:47:27: warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
   |                           |- warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'PUT' 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
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:48:27: warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
   |                           |- warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'PATCH' 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
49 |         public static let DELETE = HTTPMethod("DELETE")
50 |     }
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:49:27: warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
   |                           |- warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'DELETE' 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
50 |     }
51 | }
[6/9] Compiling CatbirdAPI ResponseMock.swift
[7/9] Emitting module CatbirdAPI
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:16:23: warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     /// The domain of the error.
16 |     public static var errorDomain = "com.redmadrobot.catbird.APIErrorDomain"
   |                       |- warning: static property 'errorDomain' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'errorDomain' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'errorDomain' 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
17 |
18 |     /// HTTP status code.
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:45:27: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
43 |         }
44 |
45 |         public static let GET = HTTPMethod("GET")
   |                           |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'GET' 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
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:46:27: warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
44 |
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
   |                           |- warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'POST' 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
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:47:27: warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
   |                           |- warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'PUT' 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
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:48:27: warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
   |                           |- warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'PATCH' 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
49 |         public static let DELETE = HTTPMethod("DELETE")
50 |     }
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:49:27: warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
   |                           |- warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'DELETE' 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
50 |     }
51 | }
[8/9] Compiling CatbirdAPI Catbird.swift
[9/9] Compiling CatbirdAPI CatbirdAction.swift
Build complete! (8.40s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Catbird",
  "name" : "Catbird",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "CatbirdAPI",
      "targets" : [
        "CatbirdAPI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CatbirdAPITests",
      "module_type" : "SwiftTarget",
      "name" : "CatbirdAPITests",
      "path" : "Packages/CatbirdAPI/Tests",
      "sources" : [
        "CatbirdAPITests/CatbirdActionTests.swift",
        "CatbirdAPITests/CatbirdTests.swift",
        "CatbirdAPITests/Network.swift",
        "CatbirdAPITests/PatternMatchTests.swift"
      ],
      "target_dependencies" : [
        "CatbirdAPI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CatbirdAPI",
      "module_type" : "SwiftTarget",
      "name" : "CatbirdAPI",
      "path" : "Packages/CatbirdAPI/Sources",
      "product_memberships" : [
        "CatbirdAPI"
      ],
      "sources" : [
        "CatbirdAPI/Catbird.swift",
        "CatbirdAPI/CatbirdAction.swift",
        "CatbirdAPI/CatbirdError.swift",
        "CatbirdAPI/PatternMatch.swift",
        "CatbirdAPI/RequestPattern.swift",
        "CatbirdAPI/ResponseMock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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
Done.