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 KeyedCodable with Swift 6.0 for Linux.

Swift 6 data race errors: 2

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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/dgrzeszczak/KeyedCodable.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/dgrzeszczak/KeyedCodable
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7e24e26 Merge pull request #7 from dgrzeszczak/feature/targetNameChange_Xcode12
Cloned https://github.com/dgrzeszczak/KeyedCodable.git
Revision (git rev-parse @):
7e24e26cf3a844ee0dbcdbcc8c78ed45f9570e69
SUCCESS checkout https://github.com/dgrzeszczak/KeyedCodable.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dgrzeszczak/KeyedCodable.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/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/10] Compiling KeyedCodable Transformers.swift
[4/11] Compiling KeyedCodable KeyedJSONDecoder.swift
/host/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' 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 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
14 |
15 |     public var keyOptions: KeyOptions
[5/11] Compiling KeyedCodable KeyedConfig.swift
/host/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' 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 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
14 |
15 |     public var keyOptions: KeyOptions
[6/11] Compiling KeyedCodable KeyedJSONEncoder.swift
/host/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' 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 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
14 |
15 |     public var keyOptions: KeyOptions
[7/11] Compiling KeyedCodable KeyedKey.swift
/host/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' 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 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
14 |
15 |     public var keyOptions: KeyOptions
[8/11] Compiling KeyedCodable Helpers.swift
/host/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' 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 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
14 |
15 |     public var keyOptions: KeyOptions
[9/11] Compiling KeyedCodable AnyKey.swift
/host/spi-builder-workspace/KeyedCodable/Sources/AnyKey.swift:16:16: warning: stored property 'options' of 'Sendable'-conforming struct 'AnyKey' has non-sendable type 'KeyOptions?'; this is an error in the Swift 6 language mode
14 |     public let intValue: Int?
15 |
16 |     public let options: KeyOptions?
   |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'AnyKey' has non-sendable type 'KeyOptions?'; this is an error in the Swift 6 language mode
17 |
18 |     public init(stringValue: String, options: KeyOptions) {
/host/spi-builder-workspace/KeyedCodable/Sources/KeyedKey.swift:30:15: note: consider making struct 'KeyOptions' conform to the 'Sendable' protocol
 28 | }
 29 |
 30 | public struct KeyOptions: Hashable {
    |               `- note: consider making struct 'KeyOptions' conform to the 'Sendable' protocol
 31 |     public var flat: Flat
 32 |     public var delimiter: Delimiter
[10/11] Emitting module KeyedCodable
/host/spi-builder-workspace/KeyedCodable/Sources/AnyKey.swift:16:16: warning: stored property 'options' of 'Sendable'-conforming struct 'AnyKey' has non-sendable type 'KeyOptions?'; this is an error in the Swift 6 language mode
14 |     public let intValue: Int?
15 |
16 |     public let options: KeyOptions?
   |                `- warning: stored property 'options' of 'Sendable'-conforming struct 'AnyKey' has non-sendable type 'KeyOptions?'; this is an error in the Swift 6 language mode
17 |
18 |     public init(stringValue: String, options: KeyOptions) {
/host/spi-builder-workspace/KeyedCodable/Sources/KeyedKey.swift:30:15: note: consider making struct 'KeyOptions' conform to the 'Sendable' protocol
 28 | }
 29 |
 30 | public struct KeyOptions: Hashable {
    |               `- note: consider making struct 'KeyOptions' conform to the 'Sendable' protocol
 31 |     public var flat: Flat
 32 |     public var delimiter: Delimiter
/host/spi-builder-workspace/KeyedCodable/Sources/KeyedConfig.swift:13:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct KeyedConfig {
12 |
13 |     public static var `default` = KeyedConfig()
   |                       |- warning: static property 'default' 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 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
14 |
15 |     public var keyOptions: KeyOptions
[11/11] Compiling KeyedCodable ZeroDecodable.swift
Build complete! (9.33s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "KeyedCodable",
  "name" : "KeyedCodable",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "KeyedCodable",
      "targets" : [
        "KeyedCodable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KeyedCodable",
      "module_type" : "SwiftTarget",
      "name" : "KeyedCodable",
      "path" : "KeyedCodable/Sources",
      "product_memberships" : [
        "KeyedCodable"
      ],
      "sources" : [
        "AnyKey.swift",
        "Helpers.swift",
        "KeyedConfig.swift",
        "KeyedJSONDecoder.swift",
        "KeyedJSONEncoder.swift",
        "KeyedKey.swift",
        "Transformers.swift",
        "ZeroDecodable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.