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

Swift 6 data race errors: 4

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/RougeWare/Swift-SerializationTools.git
Reference: production
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/RougeWare/Swift-SerializationTools
 * branch            production -> FETCH_HEAD
 * [new branch]      production -> origin/production
HEAD is now at 4d151e1 Merge pull request #6 from RougeWare/feature/CodableBridge+Passthrough-conformance
Cloned https://github.com/RougeWare/Swift-SerializationTools.git
Revision (git rev-parse @):
4d151e1513b04da2ddc9fe464352e4070f7d992f
SUCCESS checkout https://github.com/RougeWare/Swift-SerializationTools.git at production
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/RougeWare/Swift-SerializationTools.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
Fetching https://github.com/RougeWare/Swift-Optional-Tools.git
[2/67] Fetching swift-optional-tools
Fetched https://github.com/RougeWare/Swift-Optional-Tools.git from cache (0.24s)
Computing version for https://github.com/RougeWare/Swift-Optional-Tools.git
Computed https://github.com/RougeWare/Swift-Optional-Tools.git at 1.1.3 (0.82s)
Creating working copy for https://github.com/RougeWare/Swift-Optional-Tools.git
Working copy of https://github.com/RougeWare/Swift-Optional-Tools.git resolved at 1.1.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/6] Compiling OptionalTools unwrappedOrThrow.swift
[5/6] Emitting module OptionalTools
[6/6] Compiling OptionalTools Optional operators.swift
[8/10] Compiling SerializationTools CodableBridge.swift
[9/10] Emitting module SerializationTools
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:98:16: warning: static property 'convertToJavaScriptStyleStrings' is not concurrency-safe because non-'Sendable' type 'JSONEncoder.NonConformingFloatEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 96 |
 97 |     /// Converts these non-conforming floats to strings which are equivalent to JavaScript's representations
 98 |     static let convertToJavaScriptStyleStrings =
    |                `- warning: static property 'convertToJavaScriptStyleStrings' is not concurrency-safe because non-'Sendable' type 'JSONEncoder.NonConformingFloatEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 99 |         convertToString(positiveInfinity: "Infinity", negativeInfinity: "-Infinity", nan: "NaN")
100 | }
Foundation.JSONEncoder:27:17: note: enum 'NonConformingFloatEncodingStrategy' does not conform to the 'Sendable' protocol
25 |         case custom((Data, any Encoder) throws -> Void)
26 |     }
27 |     public enum NonConformingFloatEncodingStrategy {
   |                 `- note: enum 'NonConformingFloatEncodingStrategy' does not conform to the 'Sendable' protocol
28 |         case `throw`
29 |         case convertToString(positiveInfinity: String, negativeInfinity: String, nan: String)
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  9 | import OptionalTools
 10 |
    :
 96 |
 97 |     /// Converts these non-conforming floats to strings which are equivalent to JavaScript's representations
 98 |     static let convertToJavaScriptStyleStrings =
    |                |- note: annotate 'convertToJavaScriptStyleStrings' 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
 99 |         convertToString(positiveInfinity: "Infinity", negativeInfinity: "-Infinity", nan: "NaN")
100 | }
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:90:10: warning: associated value 'failedToEncodeDataToString(attemptedEncoding:)' of 'Sendable'-conforming enum 'JsonEncodingError' has non-sendable type 'String.Encoding'; this is an error in the Swift 6 language mode
 88 |     ///
 89 |     /// - Parameter attemptedEncoding: The encoding that was used when trying to encode the `Data` to a `String`
 90 |     case failedToEncodeDataToString(attemptedEncoding: String.Encoding)
    |          `- warning: associated value 'failedToEncodeDataToString(attemptedEncoding:)' of 'Sendable'-conforming enum 'JsonEncodingError' has non-sendable type 'String.Encoding'; this is an error in the Swift 6 language mode
 91 | }
 92 |
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:187:16: warning: static property 'convertFromJavaScriptStyleStrings' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.NonConformingFloatDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 |     /// Converts JavaScript's representations of non-conforming floats as strings, to Swift's actual versions
187 |     static let convertFromJavaScriptStyleStrings =
    |                |- warning: static property 'convertFromJavaScriptStyleStrings' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.NonConformingFloatDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'convertFromJavaScriptStyleStrings' 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
188 |         convertFromString(positiveInfinity: "Infinity", negativeInfinity: "-Infinity", nan: "NaN")
189 | }
Foundation.JSONDecoder:16:17: note: enum 'NonConformingFloatDecodingStrategy' does not conform to the 'Sendable' protocol
14 |         case custom((_ decoder: any Decoder) throws -> Data)
15 |     }
16 |     public enum NonConformingFloatDecodingStrategy {
   |                 `- note: enum 'NonConformingFloatDecodingStrategy' does not conform to the 'Sendable' protocol
17 |         case `throw`
18 |         case convertFromString(positiveInfinity: String, negativeInfinity: String, nan: String)
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:179:10: warning: associated value 'failedToDecodeDataFromString(attemptedEncoding:)' of 'Sendable'-conforming enum 'JsonDecodingError' has non-sendable type 'String.Encoding'; this is an error in the Swift 6 language mode
177 |     ///
178 |     /// - Parameter attemptedEncoding: The encoding that was used when trying to encode the `String` to a `Data`
179 |     case failedToDecodeDataFromString(attemptedEncoding: String.Encoding)
    |          `- warning: associated value 'failedToDecodeDataFromString(attemptedEncoding:)' of 'Sendable'-conforming enum 'JsonDecodingError' has non-sendable type 'String.Encoding'; this is an error in the Swift 6 language mode
180 | }
181 |
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
[10/10] Compiling SerializationTools JSON conveniences.swift
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:98:16: warning: static property 'convertToJavaScriptStyleStrings' is not concurrency-safe because non-'Sendable' type 'JSONEncoder.NonConformingFloatEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 96 |
 97 |     /// Converts these non-conforming floats to strings which are equivalent to JavaScript's representations
 98 |     static let convertToJavaScriptStyleStrings =
    |                `- warning: static property 'convertToJavaScriptStyleStrings' is not concurrency-safe because non-'Sendable' type 'JSONEncoder.NonConformingFloatEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 99 |         convertToString(positiveInfinity: "Infinity", negativeInfinity: "-Infinity", nan: "NaN")
100 | }
Foundation.JSONEncoder:27:17: note: enum 'NonConformingFloatEncodingStrategy' does not conform to the 'Sendable' protocol
25 |         case custom((Data, any Encoder) throws -> Void)
26 |     }
27 |     public enum NonConformingFloatEncodingStrategy {
   |                 `- note: enum 'NonConformingFloatEncodingStrategy' does not conform to the 'Sendable' protocol
28 |         case `throw`
29 |         case convertToString(positiveInfinity: String, negativeInfinity: String, nan: String)
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  6 | //
  7 |
  8 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  9 | import OptionalTools
 10 |
    :
 96 |
 97 |     /// Converts these non-conforming floats to strings which are equivalent to JavaScript's representations
 98 |     static let convertToJavaScriptStyleStrings =
    |                |- note: annotate 'convertToJavaScriptStyleStrings' 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
 99 |         convertToString(positiveInfinity: "Infinity", negativeInfinity: "-Infinity", nan: "NaN")
100 | }
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:90:10: warning: associated value 'failedToEncodeDataToString(attemptedEncoding:)' of 'Sendable'-conforming enum 'JsonEncodingError' has non-sendable type 'String.Encoding'; this is an error in the Swift 6 language mode
 88 |     ///
 89 |     /// - Parameter attemptedEncoding: The encoding that was used when trying to encode the `Data` to a `String`
 90 |     case failedToEncodeDataToString(attemptedEncoding: String.Encoding)
    |          `- warning: associated value 'failedToEncodeDataToString(attemptedEncoding:)' of 'Sendable'-conforming enum 'JsonEncodingError' has non-sendable type 'String.Encoding'; this is an error in the Swift 6 language mode
 91 | }
 92 |
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:187:16: warning: static property 'convertFromJavaScriptStyleStrings' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.NonConformingFloatDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 |     /// Converts JavaScript's representations of non-conforming floats as strings, to Swift's actual versions
187 |     static let convertFromJavaScriptStyleStrings =
    |                |- warning: static property 'convertFromJavaScriptStyleStrings' is not concurrency-safe because non-'Sendable' type 'JSONDecoder.NonConformingFloatDecodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'convertFromJavaScriptStyleStrings' 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
188 |         convertFromString(positiveInfinity: "Infinity", negativeInfinity: "-Infinity", nan: "NaN")
189 | }
Foundation.JSONDecoder:16:17: note: enum 'NonConformingFloatDecodingStrategy' does not conform to the 'Sendable' protocol
14 |         case custom((_ decoder: any Decoder) throws -> Data)
15 |     }
16 |     public enum NonConformingFloatDecodingStrategy {
   |                 `- note: enum 'NonConformingFloatDecodingStrategy' does not conform to the 'Sendable' protocol
17 |         case `throw`
18 |         case convertFromString(positiveInfinity: String, negativeInfinity: String, nan: String)
/host/spi-builder-workspace/Sources/SerializationTools/JSON conveniences.swift:179:10: warning: associated value 'failedToDecodeDataFromString(attemptedEncoding:)' of 'Sendable'-conforming enum 'JsonDecodingError' has non-sendable type 'String.Encoding'; this is an error in the Swift 6 language mode
177 |     ///
178 |     /// - Parameter attemptedEncoding: The encoding that was used when trying to encode the `String` to a `Data`
179 |     case failedToDecodeDataFromString(attemptedEncoding: String.Encoding)
    |          `- warning: associated value 'failedToDecodeDataFromString(attemptedEncoding:)' of 'Sendable'-conforming enum 'JsonDecodingError' has non-sendable type 'String.Encoding'; this is an error in the Swift 6 language mode
180 | }
181 |
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
 1 | extension String {
 2 |     public struct Encoding : RawRepresentable {
   |                   `- note: struct 'Encoding' does not conform to the 'Sendable' protocol
 3 |         public var rawValue: UInt
 4 |         public init(rawValue: UInt)
Build complete! (16.16s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-optional-tools",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/RougeWare/Swift-Optional-Tools.git"
    }
  ],
  "manifest_display_name" : "SerializationTools",
  "name" : "SerializationTools",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "SerializationTools",
      "targets" : [
        "SerializationTools"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SerializationToolsTests",
      "module_type" : "SwiftTarget",
      "name" : "SerializationToolsTests",
      "path" : "Tests/SerializationToolsTests",
      "sources" : [
        "CodableBridge tests.swift",
        "JSON conveniences tests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SerializationTools"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SerializationTools",
      "module_type" : "SwiftTarget",
      "name" : "SerializationTools",
      "path" : "Sources/SerializationTools",
      "product_dependencies" : [
        "OptionalTools"
      ],
      "product_memberships" : [
        "SerializationTools"
      ],
      "sources" : [
        "CodableBridge.swift",
        "JSON conveniences.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.