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 Himotoki, reference master (58736b), with Swift 6.0 for Linux on 27 Nov 2024 02:03:50 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/ikesyo/Himotoki.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/ikesyo/Himotoki
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 58736bd Release 4.0.0
Submodule path 'Carthage/Checkouts/xcconfigs': checked out '8ed0ba267f6fb0b53343e11aad067314438a781c'
Submodule 'Carthage/Checkouts/xcconfigs' (https://github.com/jspahrsummers/xcconfigs.git) registered for path 'Carthage/Checkouts/xcconfigs'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/xcconfigs'...
Cloned https://github.com/ikesyo/Himotoki.git
Revision (git rev-parse @):
58736bd328e218b4080b034d19211f0263e29b45
SUCCESS checkout https://github.com/ikesyo/Himotoki.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ikesyo/Himotoki.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
7478e0ac0f23: Already exists
073b6eb2752c: Already exists
9d1941503502: Pulling fs layer
8fdae718ba6c: Pulling fs layer
3811ebf2e186: Pulling fs layer
4088c4d810fa: Pulling fs layer
4088c4d810fa: Download complete
8fdae718ba6c: Download complete
3811ebf2e186: Download complete
9d1941503502: Pull complete
8fdae718ba6c: Pull complete
3811ebf2e186: Pull complete
4088c4d810fa: Pull complete
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Downloaded newer image 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/13] Compiling Himotoki DecodeError.swift
/host/spi-builder-workspace/Sources/DecodeError.swift:10:10: warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 8 |
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
   |          `- warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
12 |     case custom(String)
/host/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/host/spi-builder-workspace/Sources/DecodeError.swift:11:10: warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
   |          `- warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
12 |     case custom(String)
13 | }
/host/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[4/13] Compiling Himotoki Extractor.swift
/host/spi-builder-workspace/Sources/DecodeError.swift:10:10: warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 8 |
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
   |          `- warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
12 |     case custom(String)
/host/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/host/spi-builder-workspace/Sources/DecodeError.swift:11:10: warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
   |          `- warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
12 |     case custom(String)
13 | }
/host/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[5/13] Compiling Himotoki Casting.swift
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[6/13] Compiling Himotoki Decodable.swift
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[7/13] Emitting module Himotoki
/host/spi-builder-workspace/Sources/DecodeError.swift:10:10: warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 8 |
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
   |          `- warning: associated value 'missingKeyPath' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
12 |     case custom(String)
/host/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/host/spi-builder-workspace/Sources/DecodeError.swift:11:10: warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
 9 | public enum DecodeError: Error, Hashable {
10 |     case missingKeyPath(KeyPath)
11 |     case typeMismatch(expected: String, actual: String, keyPath: KeyPath)
   |          `- warning: associated value 'typeMismatch(expected:actual:keyPath:)' of 'Sendable'-conforming enum 'DecodeError' has non-sendable type 'KeyPath'; this is an error in the Swift 6 language mode
12 |     case custom(String)
13 | }
/host/spi-builder-workspace/Sources/KeyPath.swift:9:15: note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[8/14] Compiling Himotoki Operators.swift
[9/14] Compiling Himotoki KeyPath.swift
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[10/14] Compiling Himotoki NSNumber.swift
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[11/14] Compiling Himotoki RawRepresentable.swift
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[12/14] Compiling Himotoki Transformer.swift
[13/14] Compiling Himotoki StandardLib.swift
/host/spi-builder-workspace/Sources/KeyPath.swift:20:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
 7 | //
 8 |
 9 | public struct KeyPath: Hashable {
   |               `- note: consider making struct 'KeyPath' conform to the 'Sendable' protocol
10 |     public let components: [String]
11 |
   :
18 |     }
19 |
20 |     public static let empty: KeyPath = KeyPath([])
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'KeyPath' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' 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
21 | }
22 |
[14/14] Compiling Himotoki decode.swift
Build complete! (25.39s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Himotoki",
  "name" : "Himotoki",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "Himotoki",
      "targets" : [
        "Himotoki"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "HimotokiTests",
      "module_type" : "SwiftTarget",
      "name" : "HimotokiTests",
      "path" : "Tests/HimotokiTests",
      "sources" : [
        "DecodableTest.swift",
        "DecodeErrorTest.swift",
        "DecodeWithRootKeyPathTest.swift",
        "KeyPathTest.swift",
        "NestedObjectParsingTest.swift",
        "RawRepresentableTest.swift",
        "TransformerTest.swift"
      ],
      "target_dependencies" : [
        "Himotoki"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Himotoki",
      "module_type" : "SwiftTarget",
      "name" : "Himotoki",
      "path" : "Sources",
      "product_memberships" : [
        "Himotoki"
      ],
      "sources" : [
        "Casting.swift",
        "Decodable.swift",
        "DecodeError.swift",
        "Extractor.swift",
        "KeyPath.swift",
        "NSNumber.swift",
        "Operators.swift",
        "RawRepresentable.swift",
        "StandardLib.swift",
        "Transformer.swift",
        "decode.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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.