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

Swift 6 data race errors: 10

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/FluidGroup/JAYSON.git
Reference: main
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/FluidGroup/JAYSON
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 59e9a66 Update workflow
Cloned https://github.com/FluidGroup/JAYSON.git
Revision (git rev-parse @):
59e9a669b0d18a6536f3592a22a6d08538a718ec
SUCCESS checkout https://github.com/FluidGroup/JAYSON.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/FluidGroup/JAYSON.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
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/JAYSON/Info.plist
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling JAYSON JSON+OptionalProperty.swift
[4/12] Compiling JAYSON JSON+StateProperty.swift
[5/12] Compiling JAYSON JSON+CustomString.swift
[6/12] Emitting module JAYSON
/host/spi-builder-workspace/Sources/JAYSON/JSON+SourceType.swift:89:17: warning: let 'trueNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
87 | }
88 |
89 | fileprivate let trueNumber = NSNumber(value: true)
   |                 `- warning: let 'trueNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
90 | fileprivate let falseNumber = NSNumber(value: false)
91 | fileprivate let trueObjCType = String(cString: trueNumber.objCType)
Foundation.NSNumber:1:12: note: class 'NSNumber' does not conform to the 'Sendable' protocol
 1 | open class NSNumber : NSValue {
   |            `- note: class 'NSNumber' does not conform to the 'Sendable' protocol
 2 |     override open var hash: Int { get }
 3 |     override open func isEqual(_ value: Any?) -> Bool
/host/spi-builder-workspace/Sources/JAYSON/JSON+SourceType.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
21 | // THE SOFTWARE.
22 |
23 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
24 |
25 | extension JSON {
   :
87 | }
88 |
89 | fileprivate let trueNumber = NSNumber(value: true)
   |                 |- note: annotate 'trueNumber' 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
90 | fileprivate let falseNumber = NSNumber(value: false)
91 | fileprivate let trueObjCType = String(cString: trueNumber.objCType)
/host/spi-builder-workspace/Sources/JAYSON/JSON+SourceType.swift:90:17: warning: let 'falseNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | fileprivate let trueNumber = NSNumber(value: true)
90 | fileprivate let falseNumber = NSNumber(value: false)
   |                 |- warning: let 'falseNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
   |                 |- note: annotate 'falseNumber' 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
91 | fileprivate let trueObjCType = String(cString: trueNumber.objCType)
92 | fileprivate let falseObjCType = String(cString: falseNumber.objCType)
Foundation.NSNumber:1:12: note: class 'NSNumber' does not conform to the 'Sendable' protocol
 1 | open class NSNumber : NSValue {
   |            `- note: class 'NSNumber' does not conform to the 'Sendable' protocol
 2 |     override open var hash: Int { get }
 3 |     override open func isEqual(_ value: Any?) -> Bool
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:26:8: warning: associated value 'notFoundKeyPath(keyPath:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'KeyPath<JSON, JSON?>'; this is an error in the Swift 6 language mode
 24 |
 25 | public enum JSONError: Error {
 26 |   case notFoundKeyPath(keyPath: KeyPath<JSON, JSON?>, json: JSON)
    |        `- warning: associated value 'notFoundKeyPath(keyPath:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'KeyPath<JSON, JSON?>'; this is an error in the Swift 6 language mode
 27 |   case notFoundKey(key: String, json: JSON)
 28 |   case notFoundIndex(index: Int, json: JSON)
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
  |              `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 |     deinit
3 | }
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:29:8: warning: associated value 'failedToGetString(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 27 |   case notFoundKey(key: String, json: JSON)
 28 |   case notFoundIndex(index: Int, json: JSON)
 29 |   case failedToGetString(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetString(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 30 |   case failedToGetBool(source: Any, json: JSON)
 31 |   case failedToGetNumber(source: Any, json: JSON)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:30:8: warning: associated value 'failedToGetBool(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 28 |   case notFoundIndex(index: Int, json: JSON)
 29 |   case failedToGetString(source: Any, json: JSON)
 30 |   case failedToGetBool(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetBool(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 31 |   case failedToGetNumber(source: Any, json: JSON)
 32 |   case failedToGetArray(source: Any, json: JSON)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:31:8: warning: associated value 'failedToGetNumber(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 29 |   case failedToGetString(source: Any, json: JSON)
 30 |   case failedToGetBool(source: Any, json: JSON)
 31 |   case failedToGetNumber(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetNumber(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 32 |   case failedToGetArray(source: Any, json: JSON)
 33 |   case failedToGetDictionary(source: Any, json: JSON)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:32:8: warning: associated value 'failedToGetArray(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 30 |   case failedToGetBool(source: Any, json: JSON)
 31 |   case failedToGetNumber(source: Any, json: JSON)
 32 |   case failedToGetArray(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetArray(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 33 |   case failedToGetDictionary(source: Any, json: JSON)
 34 |   case failedToParseURL(source: Any, json: JSON)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:33:8: warning: associated value 'failedToGetDictionary(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 31 |   case failedToGetNumber(source: Any, json: JSON)
 32 |   case failedToGetArray(source: Any, json: JSON)
 33 |   case failedToGetDictionary(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetDictionary(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 34 |   case failedToParseURL(source: Any, json: JSON)
 35 |   case decodeError(source: Any, json: JSON, decodeError: Error)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:34:8: warning: associated value 'failedToParseURL(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 32 |   case failedToGetArray(source: Any, json: JSON)
 33 |   case failedToGetDictionary(source: Any, json: JSON)
 34 |   case failedToParseURL(source: Any, json: JSON)
    |        `- warning: associated value 'failedToParseURL(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 35 |   case decodeError(source: Any, json: JSON, decodeError: Error)
 36 |   case failedToInitializeFromJSONString(String)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:35:8: warning: associated value 'decodeError(source:json:decodeError:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 33 |   case failedToGetDictionary(source: Any, json: JSON)
 34 |   case failedToParseURL(source: Any, json: JSON)
 35 |   case decodeError(source: Any, json: JSON, decodeError: Error)
    |        `- warning: associated value 'decodeError(source:json:decodeError:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 36 |   case failedToInitializeFromJSONString(String)
 37 |   case invalidJSONObject
[7/12] Compiling JAYSON Decoder.swift
[8/12] Compiling JAYSON JSON+Codable.swift
[9/12] Compiling JAYSON JSONWritableType.swift
[10/12] Compiling JAYSON JSON+StrictGetter.swift
[11/12] Compiling JAYSON JSON.swift
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:26:8: warning: associated value 'notFoundKeyPath(keyPath:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'KeyPath<JSON, JSON?>'; this is an error in the Swift 6 language mode
 24 |
 25 | public enum JSONError: Error {
 26 |   case notFoundKeyPath(keyPath: KeyPath<JSON, JSON?>, json: JSON)
    |        `- warning: associated value 'notFoundKeyPath(keyPath:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'KeyPath<JSON, JSON?>'; this is an error in the Swift 6 language mode
 27 |   case notFoundKey(key: String, json: JSON)
 28 |   case notFoundIndex(index: Int, json: JSON)
Swift.KeyPath:1:14: note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
1 | public class KeyPath<Root, Value> : PartialKeyPath<Root> {
  |              `- note: generic class 'KeyPath' does not conform to the 'Sendable' protocol
2 |     deinit
3 | }
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:29:8: warning: associated value 'failedToGetString(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 27 |   case notFoundKey(key: String, json: JSON)
 28 |   case notFoundIndex(index: Int, json: JSON)
 29 |   case failedToGetString(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetString(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 30 |   case failedToGetBool(source: Any, json: JSON)
 31 |   case failedToGetNumber(source: Any, json: JSON)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:30:8: warning: associated value 'failedToGetBool(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 28 |   case notFoundIndex(index: Int, json: JSON)
 29 |   case failedToGetString(source: Any, json: JSON)
 30 |   case failedToGetBool(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetBool(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 31 |   case failedToGetNumber(source: Any, json: JSON)
 32 |   case failedToGetArray(source: Any, json: JSON)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:31:8: warning: associated value 'failedToGetNumber(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 29 |   case failedToGetString(source: Any, json: JSON)
 30 |   case failedToGetBool(source: Any, json: JSON)
 31 |   case failedToGetNumber(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetNumber(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 32 |   case failedToGetArray(source: Any, json: JSON)
 33 |   case failedToGetDictionary(source: Any, json: JSON)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:32:8: warning: associated value 'failedToGetArray(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 30 |   case failedToGetBool(source: Any, json: JSON)
 31 |   case failedToGetNumber(source: Any, json: JSON)
 32 |   case failedToGetArray(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetArray(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 33 |   case failedToGetDictionary(source: Any, json: JSON)
 34 |   case failedToParseURL(source: Any, json: JSON)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:33:8: warning: associated value 'failedToGetDictionary(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 31 |   case failedToGetNumber(source: Any, json: JSON)
 32 |   case failedToGetArray(source: Any, json: JSON)
 33 |   case failedToGetDictionary(source: Any, json: JSON)
    |        `- warning: associated value 'failedToGetDictionary(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 34 |   case failedToParseURL(source: Any, json: JSON)
 35 |   case decodeError(source: Any, json: JSON, decodeError: Error)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:34:8: warning: associated value 'failedToParseURL(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 32 |   case failedToGetArray(source: Any, json: JSON)
 33 |   case failedToGetDictionary(source: Any, json: JSON)
 34 |   case failedToParseURL(source: Any, json: JSON)
    |        `- warning: associated value 'failedToParseURL(source:json:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 35 |   case decodeError(source: Any, json: JSON, decodeError: Error)
 36 |   case failedToInitializeFromJSONString(String)
/host/spi-builder-workspace/Sources/JAYSON/JSON.swift:35:8: warning: associated value 'decodeError(source:json:decodeError:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 33 |   case failedToGetDictionary(source: Any, json: JSON)
 34 |   case failedToParseURL(source: Any, json: JSON)
 35 |   case decodeError(source: Any, json: JSON, decodeError: Error)
    |        `- warning: associated value 'decodeError(source:json:decodeError:)' of 'Sendable'-conforming enum 'JSONError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 36 |   case failedToInitializeFromJSONString(String)
 37 |   case invalidJSONObject
[12/12] Compiling JAYSON JSON+SourceType.swift
/host/spi-builder-workspace/Sources/JAYSON/JSON+SourceType.swift:89:17: warning: let 'trueNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
87 | }
88 |
89 | fileprivate let trueNumber = NSNumber(value: true)
   |                 `- warning: let 'trueNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
90 | fileprivate let falseNumber = NSNumber(value: false)
91 | fileprivate let trueObjCType = String(cString: trueNumber.objCType)
Foundation.NSNumber:1:12: note: class 'NSNumber' does not conform to the 'Sendable' protocol
 1 | open class NSNumber : NSValue {
   |            `- note: class 'NSNumber' does not conform to the 'Sendable' protocol
 2 |     override open var hash: Int { get }
 3 |     override open func isEqual(_ value: Any?) -> Bool
/host/spi-builder-workspace/Sources/JAYSON/JSON+SourceType.swift:23:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
21 | // THE SOFTWARE.
22 |
23 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
24 |
25 | extension JSON {
   :
87 | }
88 |
89 | fileprivate let trueNumber = NSNumber(value: true)
   |                 |- note: annotate 'trueNumber' 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
90 | fileprivate let falseNumber = NSNumber(value: false)
91 | fileprivate let trueObjCType = String(cString: trueNumber.objCType)
/host/spi-builder-workspace/Sources/JAYSON/JSON+SourceType.swift:90:17: warning: let 'falseNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
88 |
89 | fileprivate let trueNumber = NSNumber(value: true)
90 | fileprivate let falseNumber = NSNumber(value: false)
   |                 |- warning: let 'falseNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
   |                 |- note: annotate 'falseNumber' 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
91 | fileprivate let trueObjCType = String(cString: trueNumber.objCType)
92 | fileprivate let falseObjCType = String(cString: falseNumber.objCType)
Foundation.NSNumber:1:12: note: class 'NSNumber' does not conform to the 'Sendable' protocol
 1 | open class NSNumber : NSValue {
   |            `- note: class 'NSNumber' does not conform to the 'Sendable' protocol
 2 |     override open var hash: Int { get }
 3 |     override open func isEqual(_ value: Any?) -> Bool
Build complete! (10.36s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JAYSON",
  "name" : "JAYSON",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JAYSON",
      "targets" : [
        "JAYSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JAYSON",
      "module_type" : "SwiftTarget",
      "name" : "JAYSON",
      "path" : "Sources/JAYSON",
      "product_memberships" : [
        "JAYSON"
      ],
      "sources" : [
        "Decoder.swift",
        "JSON+Codable.swift",
        "JSON+CustomString.swift",
        "JSON+OptionalProperty.swift",
        "JSON+SourceType.swift",
        "JSON+StateProperty.swift",
        "JSON+StrictGetter.swift",
        "JSON.swift",
        "JSONWritableType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.