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

Successful build of Catbird with Swift 6.0 for Linux.

Swift 6 data race errors: 7

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RedMadRobot/catbird.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d57fe3d Bump tzinfo from 1.2.7 to 1.2.10 in /Example/CatbirdX (#59)
Cloned https://github.com/RedMadRobot/catbird.git
Revision (git rev-parse @):
d57fe3de2df3ad390494083d4cc9ff183cd6d1b7
SUCCESS checkout https://github.com/RedMadRobot/catbird.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/RedMadRobot/catbird.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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 | }
[4/9] Compiling CatbirdAPI ResponseMock.swift
[5/9] Compiling CatbirdAPI PatternMatch.swift
[6/9] Compiling CatbirdAPI CatbirdAction.swift
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdAction.swift:51:24: warning: static property 'encoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     public static let parallelIdHeaderField = "X-Catbird-Parallel-Id"
 50 |
 51 |     private static let encoder = JSONEncoder()
    |                        `- warning: static property 'encoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
 52 |
 53 |     struct HTTPRequest {
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 1 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 2 |     public struct OutputFormatting : OptionSet {
 3 |         public let rawValue: UInt
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdAction.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 |
  3 | /// Catbird API action.
    :
 49 |     public static let parallelIdHeaderField = "X-Catbird-Parallel-Id"
 50 |
 51 |     private static let encoder = JSONEncoder()
    |                        |- note: annotate 'encoder' 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
 52 |
 53 |     struct HTTPRequest {
[7/9] Compiling CatbirdAPI Catbird.swift
[8/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 non-isolated 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 non-isolated 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.
[9/9] Emitting module CatbirdAPI
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdAction.swift:51:24: warning: static property 'encoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     public static let parallelIdHeaderField = "X-Catbird-Parallel-Id"
 50 |
 51 |     private static let encoder = JSONEncoder()
    |                        `- warning: static property 'encoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
 52 |
 53 |     struct HTTPRequest {
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 1 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 2 |     public struct OutputFormatting : OptionSet {
 3 |         public let rawValue: UInt
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdAction.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 |
  3 | /// Catbird API action.
    :
 49 |     public static let parallelIdHeaderField = "X-Catbird-Parallel-Id"
 50 |
 51 |     private static let encoder = JSONEncoder()
    |                        |- note: annotate 'encoder' 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
 52 |
 53 |     struct HTTPRequest {
/host/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:16:23: warning: static property 'errorDomain' is not concurrency-safe because it is non-isolated 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 non-isolated 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 | }
Build complete! (12.50s)
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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.