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

Swift 6 data race errors: 5

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/yonaskolb/JSONUtilities.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/yonaskolb/JSONUtilities
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 128d2ff update to Xcode 10.2
Cloned https://github.com/yonaskolb/JSONUtilities.git
Revision (git rev-parse @):
128d2ffc22467f69569ef8ff971683e2393191a0
SUCCESS checkout https://github.com/yonaskolb/JSONUtilities.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/yonaskolb/JSONUtilities.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/11] Compiling JSONUtilities KeyPath.swift
[4/11] Compiling JSONUtilities InvalidItemBehaviour.swift
[5/11] Compiling JSONUtilities JSONFileLoading.swift
/host/spi-builder-workspace/Sources/JSONUtilities/JSONFileLoading.swift:40:16: warning: result of call to 'url(forResource:withExtension:)' is unused
38 |      */
39 |     static func from(filename: String, bundle: Bundle = .main) throws -> JSONDictionary {
40 |         bundle.url(forResource: filename, withExtension: "json")
   |                `- warning: result of call to 'url(forResource:withExtension:)' is unused
41 |         guard let url = bundle.url(forResource: filename, withExtension: "json") else {
42 |             throw JSONUtilsError.couldNotFindFile
[6/12] Compiling JSONUtilities Dictionary+KeyPath.swift
[7/12] Compiling JSONUtilities DecodingError.swift
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:17:16: warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
15 |
16 |     /// The reason the error occurred
17 |     public var reason: Reason
   |                `- warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
18 |
19 |     /// dictionary in which the error occured
   :
63 |
64 |     /// The reason the error occurred
65 |     public enum Reason: String, CustomStringConvertible {
   |                 `- note: consider making enum 'Reason' conform to the 'Sendable' protocol
66 |
67 |         /// Key was not found in a JSONDictionary
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:20:16: warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
18 |
19 |     /// dictionary in which the error occured
20 |     public let dictionary: [AnyHashable: Any]
   |                `- warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
21 |
22 |     /// array in which the error occurred
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
  |                       `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 |     public typealias Element = (key: Key, value: Value)
3 |     @inlinable public init()
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:23:16: warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
21 |
22 |     /// array in which the error occurred
23 |     public let array: JSONArray?
   |                `- warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
24 |
25 |     /// the keypath at which the error occurred
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:29:16: warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
27 |
28 |     /// the expected type that was being decoded while the error happened
29 |     public let expectedType: Any
   |                `- warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |     /// the value that caused the error
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:32:16: warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |     /// the value that caused the error
32 |     public let value: Any
   |                `- warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 |
34 |     init(dictionary: [AnyHashable: Any], keyPath: KeyPath, expectedType: Any.Type, value: Any, array: JSONArray? = nil, reason: Reason) {
[8/12] Compiling JSONUtilities Dictionary+JSONKey.swift
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:17:16: warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
15 |
16 |     /// The reason the error occurred
17 |     public var reason: Reason
   |                `- warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
18 |
19 |     /// dictionary in which the error occured
   :
63 |
64 |     /// The reason the error occurred
65 |     public enum Reason: String, CustomStringConvertible {
   |                 `- note: consider making enum 'Reason' conform to the 'Sendable' protocol
66 |
67 |         /// Key was not found in a JSONDictionary
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:20:16: warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
18 |
19 |     /// dictionary in which the error occured
20 |     public let dictionary: [AnyHashable: Any]
   |                `- warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
21 |
22 |     /// array in which the error occurred
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
  |                       `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 |     public typealias Element = (key: Key, value: Value)
3 |     @inlinable public init()
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:23:16: warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
21 |
22 |     /// array in which the error occurred
23 |     public let array: JSONArray?
   |                `- warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
24 |
25 |     /// the keypath at which the error occurred
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:29:16: warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
27 |
28 |     /// the expected type that was being decoded while the error happened
29 |     public let expectedType: Any
   |                `- warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |     /// the value that caused the error
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:32:16: warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |     /// the value that caused the error
32 |     public let value: Any
   |                `- warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 |
34 |     init(dictionary: [AnyHashable: Any], keyPath: KeyPath, expectedType: Any.Type, value: Any, array: JSONArray? = nil, reason: Reason) {
[9/12] Emitting module JSONUtilities
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:17:16: warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
15 |
16 |     /// The reason the error occurred
17 |     public var reason: Reason
   |                `- warning: stored property 'reason' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'DecodingError.Reason'; this is an error in the Swift 6 language mode
18 |
19 |     /// dictionary in which the error occured
   :
63 |
64 |     /// The reason the error occurred
65 |     public enum Reason: String, CustomStringConvertible {
   |                 `- note: consider making enum 'Reason' conform to the 'Sendable' protocol
66 |
67 |         /// Key was not found in a JSONDictionary
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:20:16: warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
18 |
19 |     /// dictionary in which the error occured
20 |     public let dictionary: [AnyHashable: Any]
   |                `- warning: stored property 'dictionary' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type '[AnyHashable : Any]'; this is an error in the Swift 6 language mode
21 |
22 |     /// array in which the error occurred
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
  |                       `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 |     public typealias Element = (key: Key, value: Value)
3 |     @inlinable public init()
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:23:16: warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
21 |
22 |     /// array in which the error occurred
23 |     public let array: JSONArray?
   |                `- warning: stored property 'array' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'JSONArray?' (aka 'Optional<Array<Any>>'); this is an error in the Swift 6 language mode
24 |
25 |     /// the keypath at which the error occurred
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:29:16: warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
27 |
28 |     /// the expected type that was being decoded while the error happened
29 |     public let expectedType: Any
   |                `- warning: stored property 'expectedType' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |     /// the value that caused the error
/host/spi-builder-workspace/Sources/JSONUtilities/DecodingError.swift:32:16: warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
30 |
31 |     /// the value that caused the error
32 |     public let value: Any
   |                `- warning: stored property 'value' of 'Sendable'-conforming struct 'DecodingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
33 |
34 |     init(dictionary: [AnyHashable: Any], keyPath: KeyPath, expectedType: Any.Type, value: Any, array: JSONArray? = nil, reason: Reason) {
[10/12] Compiling JSONUtilities URL+JSONPrimitiveConvertible.swift
[11/12] Compiling JSONUtilities JSONObjectConvertible.swift
[12/12] Compiling JSONUtilities JSONPrimitiveConvertible.swift
Build complete! (13.96s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JSONUtilities",
  "name" : "JSONUtilities",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSONUtilities",
      "targets" : [
        "JSONUtilities"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONUtilitiesTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONUtilitiesTests",
      "path" : "Tests/JSONUtilitiesTests",
      "sources" : [
        "Dictionary+KeyPathTests.swift",
        "FileLoadingTests.swift",
        "Helpers/Dictionary+Equatable.swift",
        "Helpers/XCTestCase+Additions.swift",
        "InlineDecodingTests.swift",
        "InvalidItemBehaviourTests.swift",
        "JSONDecodingTests.swift",
        "JSONPrimitiveConvertibleTests.swift",
        "Mocks/MockChild.swift",
        "Mocks/MockParent.swift",
        "Mocks/MockSimpleChild.swift",
        "Mocks/MockSimpleParent.swift",
        "TestFiles/JSONFiles.swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONUtilities",
      "module_type" : "SwiftTarget",
      "name" : "JSONUtilities",
      "path" : "Sources/JSONUtilities",
      "product_memberships" : [
        "JSONUtilities"
      ],
      "sources" : [
        "DecodingError.swift",
        "Dictionary+JSONKey.swift",
        "Dictionary+KeyPath.swift",
        "InvalidItemBehaviour.swift",
        "JSONFileLoading.swift",
        "JSONObjectConvertible.swift",
        "JSONPrimitiveConvertible.swift",
        "KeyPath.swift",
        "URL+JSONPrimitiveConvertible.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.