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 JSON, reference 2.2.2 (6c7ce4), with Swift 6.1 for Linux on 28 Apr 2025 06:23:05 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.1-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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor-community/json.git
Reference: 2.2.2
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/vapor-community/json
 * tag               2.2.2      -> FETCH_HEAD
HEAD is now at 6c7ce40 remove characters warning
Cloned https://github.com/vapor-community/json.git
Revision (git rev-parse @):
6c7ce40d30b322d45cc49a8f1d742609d3228eb7
SUCCESS checkout https://github.com/vapor-community/json.git at 2.2.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor-community/json.git
https://github.com/vapor-community/json.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/core.git"
    },
    {
      "identity" : "node",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/node.git"
    }
  ],
  "manifest_display_name" : "JSON",
  "name" : "JSON",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSON",
      "targets" : [
        "JSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONTests",
      "path" : "Tests/JSONTests",
      "sources" : [
        "JSONConvertibleTests.swift",
        "JSONTests.swift"
      ],
      "target_dependencies" : [
        "JSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSON",
      "module_type" : "SwiftTarget",
      "name" : "JSON",
      "path" : "Sources/JSON",
      "product_dependencies" : [
        "Core",
        "Node"
      ],
      "product_memberships" : [
        "JSON"
      ],
      "sources" : [
        "JSON+Bytes.swift",
        "JSON+Fuzzy.swift",
        "JSON+Parse.swift",
        "JSON+Serialize.swift",
        "JSON.swift",
        "JSONContext.swift",
        "JSONRepresentable.swift",
        "Sequence+Convertible.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/node.git
[1/20143] Fetching core
[404/24354] Fetching core, node
Fetched https://github.com/vapor/node.git from cache (0.82s)
Fetched https://github.com/vapor/core.git from cache (0.83s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (1.48s)
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor/debugging.git
[1/260] Fetching debugging
[261/618] Fetching debugging, bits
Fetched https://github.com/vapor/debugging.git from cache (0.22s)
Fetched https://github.com/vapor/bits.git from cache (0.28s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (2.23s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (1.93s)
Computing version for https://github.com/vapor/node.git
Computed https://github.com/vapor/node.git at 2.1.5 (0.68s)
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.1
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/node.git
Working copy of https://github.com/vapor/node.git resolved at 2.1.5
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/33] Emitting module Debugging
[10/33] Emitting module Bits
[11/35] Compiling Bits Operators.swift
[12/35] Compiling Bits String+BytesConvertible.swift
[13/35] Compiling Bits Byte+ControlCharacters.swift
[14/35] Compiling Bits Byte+Convenience.swift
[15/35] Compiling Bits Byte+PatternMatching.swift
[16/35] Compiling Bits UnsignedInteger+BytesConvertible.swift
[17/35] Compiling Bits UnsignedInteger+Shifting.swift
[18/35] Compiling Bits Aliases.swift
[19/35] Compiling Bits Base64Encoder.swift
[20/35] Compiling Bits Byte+Alphabet.swift
[21/35] Compiling Debugging Debuggable.swift
[22/36] Compiling PathIndexable PathIndexable+Subscripting.swift
[23/36] Compiling PathIndexable PathIndexable.swift
[24/36] Emitting module PathIndexable
[27/37] Emitting module libc
[28/37] Compiling libc libc.swift
[30/38] Compiling Bits Bytes+Percent.swift
[31/38] Compiling Bits BytesConvertible.swift
[32/38] Compiling Bits Data+BytesConvertible.swift
[33/38] Compiling Bits HexEncoder.swift
[34/38] Compiling Bits Byte+Random.swift
[35/38] Compiling Bits Byte+UTF8Numbers.swift
[36/38] Compiling Bits ByteSequence+Conversions.swift
[37/38] Compiling Bits Bytes+Base64.swift
[38/38] Compiling Bits Bytes+Hex.swift
[40/61] Compiling Core Extendable.swift
[41/61] Compiling Core FileProtocol.swift
[42/61] Compiling Core Int+Hex.swift
[43/61] Compiling Core Result.swift
[44/61] Compiling Core Semaphore.swift
[45/61] Compiling Core Sequence.swift
[46/61] Emitting module Core
[47/63] Compiling Core DispatchTime+Utilities.swift
[48/63] Compiling Core EmptyInitializable.swift
[49/63] Compiling Core Exports.swift
[50/63] Compiling Core Collection+Safe.swift
[51/63] Compiling Core DataFile.swift
[52/63] Compiling Core Dispatch.swift
[53/63] Compiling Core Array.swift
[54/63] Compiling Core Bits.swift
[55/63] Compiling Core Cache.swift
[56/63] Compiling Core StaticDataBuffer.swift
[57/63] Compiling Core String+CaseInsensitiveCompare.swift
[58/63] Compiling Core String+Polymorphic.swift
[59/63] Compiling Core Lock.swift
[60/63] Compiling Core Portal.swift
[61/63] Compiling Core RFC1123.swift
[62/63] Compiling Core String.swift
[63/63] Compiling Core WorkingDirectory.swift
[65/99] Compiling Node Integer+Convertible.swift
[66/99] Compiling Node Schema+Convertible.swift
[67/99] Compiling Node SchemaWrapper+Convertible.swift
[68/99] Compiling Node String+Convertible.swift
[69/99] Compiling Node UUID+Convertible.swift
[70/103] Compiling Node StructuredDataWrapper+Equatable.swift
[71/103] Compiling Node StructuredDataWrapper+Literals.swift
[72/103] Compiling Node StructuredDataWrapper+PathIndexable.swift
[73/103] Compiling Node StructuredDataWrapper+Polymorphic.swift
[74/103] Compiling Node StructuredData+PathIndexable.swift
[75/103] Compiling Node StructuredData+Polymorphic.swift
[76/103] Compiling Node StructuredData.swift
[77/103] Compiling Node StructuredDataWrapper+Cases.swift
[78/103] Compiling Node StructuredDataWrapper+Convenience.swift
[79/103] Compiling Node StructuredDataWrapper.swift
[80/103] Compiling Node Errors.swift
[81/103] Compiling Node Exports.swift
[82/103] Compiling Node Identifier.swift
[83/103] Emitting module Node
[84/103] Compiling Node Optional+Convertible.swift
[85/103] Compiling Node Set+Convertible.swift
[86/103] Compiling Node Number.swift
[87/103] Compiling Node StructuredData+Equatable.swift
[88/103] Compiling Node StructuredData+Init.swift
[89/103] Compiling Node Getters.swift
[90/103] Compiling Node Setters.swift
[91/103] Compiling Node Bool+Convertible.swift
[92/103] Compiling Node Date+Convertible.swift
[93/103] Compiling Node FloatingPoint+Convertible.swift
[94/103] Compiling Node NodeRepresentable.swift
[95/103] Compiling Node Array+Convertible.swift
[96/103] Compiling Node Dictionary+Convertible.swift
[97/103] Compiling Node Fuzzy+Any.swift
[98/103] Compiling Node FuzzyConverter.swift
[99/103] Compiling Node UnsignedInteger+Convertible.swift
[100/103] Compiling Node Context.swift
[101/103] Compiling Node Node.swift
[102/103] Compiling Node NodeConvertible.swift
[103/103] Compiling Node NodeInitializable.swift
[105/112] Compiling JSON JSONRepresentable.swift
[106/113] Compiling JSON JSONContext.swift
/host/spi-builder-workspace/Sources/JSON/JSONContext.swift:2:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONContext' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public final class JSONContext: Context {
   |                    `- note: class 'JSONContext' does not conform to the 'Sendable' protocol
 2 |     internal static let shared = JSONContext()
   |                         |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONContext' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 3 |     fileprivate init() {}
 4 | }
/host/spi-builder-workspace/Sources/JSON/JSONContext.swift:6:12: warning: let 'jsonContext' is not concurrency-safe because non-'Sendable' type 'JSONContext' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public final class JSONContext: Context {
   |                    `- note: class 'JSONContext' does not conform to the 'Sendable' protocol
 2 |     internal static let shared = JSONContext()
 3 |     fileprivate init() {}
 4 | }
 5 |
 6 | public let jsonContext = JSONContext.shared
   |            |- warning: let 'jsonContext' is not concurrency-safe because non-'Sendable' type 'JSONContext' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: add '@MainActor' to make let 'jsonContext' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |
 8 | extension Context {
[107/113] Compiling JSON JSON+Parse.swift
/host/spi-builder-workspace/Sources/JSON/JSON+Parse.swift:129:31: warning: reference to static property 'outgoingDateFormatter' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 |             return value
128 |         case .date(let date):
129 |             let string = Date.outgoingDateFormatter.string(from: date)
    |                               `- warning: reference to static property 'outgoingDateFormatter' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
130 |             return string
131 |         }
/host/spi-builder-workspace/.build/checkouts/node/Sources/Node/Convertibles/Date+Convertible.swift:53:23: note: static property declared here
 51 |         the user is responsible for handling their date formatting manually.
 52 |     */
 53 |     public static var outgoingDateFormatter: DateFormatter = .iso8601
    |                       `- note: static property declared here
 54 |
 55 |     /**
[108/113] Compiling JSON JSON+Bytes.swift
[109/113] Compiling JSON JSON+Fuzzy.swift
[110/113] Compiling JSON JSON+Serialize.swift
[111/113] Emitting module JSON
/host/spi-builder-workspace/Sources/JSON/JSON.swift:11:23: warning: static property 'defaultContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct JSON: StructuredDataWrapper {
11 |     public static var defaultContext: Context? = jsonContext
   |                       |- warning: static property 'defaultContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultContext' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'defaultContext' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public var wrapped: StructuredData
13 |     public let context: Context
/host/spi-builder-workspace/Sources/JSON/JSONContext.swift:2:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONContext' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public final class JSONContext: Context {
   |                    `- note: class 'JSONContext' does not conform to the 'Sendable' protocol
 2 |     internal static let shared = JSONContext()
   |                         |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'JSONContext' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 3 |     fileprivate init() {}
 4 | }
/host/spi-builder-workspace/Sources/JSON/JSONContext.swift:6:12: warning: let 'jsonContext' is not concurrency-safe because non-'Sendable' type 'JSONContext' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | public final class JSONContext: Context {
   |                    `- note: class 'JSONContext' does not conform to the 'Sendable' protocol
 2 |     internal static let shared = JSONContext()
 3 |     fileprivate init() {}
 4 | }
 5 |
 6 | public let jsonContext = JSONContext.shared
   |            |- warning: let 'jsonContext' is not concurrency-safe because non-'Sendable' type 'JSONContext' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: add '@MainActor' to make let 'jsonContext' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |
 8 | extension Context {
[112/113] Compiling JSON JSON.swift
/host/spi-builder-workspace/Sources/JSON/JSON.swift:11:23: warning: static property 'defaultContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | public struct JSON: StructuredDataWrapper {
11 |     public static var defaultContext: Context? = jsonContext
   |                       |- warning: static property 'defaultContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultContext' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'defaultContext' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public var wrapped: StructuredData
13 |     public let context: Context
[113/113] Compiling JSON Sequence+Convertible.swift
Build complete! (20.81s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/core.git"
    },
    {
      "identity" : "node",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/node.git"
    }
  ],
  "manifest_display_name" : "JSON",
  "name" : "JSON",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSON",
      "targets" : [
        "JSON"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONTests",
      "path" : "Tests/JSONTests",
      "sources" : [
        "JSONConvertibleTests.swift",
        "JSONTests.swift"
      ],
      "target_dependencies" : [
        "JSON"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSON",
      "module_type" : "SwiftTarget",
      "name" : "JSON",
      "path" : "Sources/JSON",
      "product_dependencies" : [
        "Core",
        "Node"
      ],
      "product_memberships" : [
        "JSON"
      ],
      "sources" : [
        "JSON+Bytes.swift",
        "JSON+Fuzzy.swift",
        "JSON+Parse.swift",
        "JSON+Serialize.swift",
        "JSON.swift",
        "JSONContext.swift",
        "JSONRepresentable.swift",
        "Sequence+Convertible.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.