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 ObjectCoder, reference 1.0.4 (db7d7b), with Swift 6.0 for Linux on 28 Nov 2024 10:48:05 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/nearfri/ObjectCoder.git
Reference: 1.0.4
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/nearfri/ObjectCoder
 * tag               1.0.4      -> FETCH_HEAD
HEAD is now at db7d7b9 Fix wrong indentations
Cloned https://github.com/nearfri/ObjectCoder.git
Revision (git rev-parse @):
db7d7b98b6784e5af158ff20edc9c331681fc10f
SUCCESS checkout https://github.com/nearfri/ObjectCoder.git at 1.0.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/nearfri/ObjectCoder.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/mattgallagher/CwlPreconditionTesting
[1/1257] Fetching cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlPreconditionTesting from cache (0.23s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting
Computed https://github.com/mattgallagher/CwlPreconditionTesting at 2.2.2 (0.49s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.16s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (0.51s)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting resolved at 2.2.2
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling ObjectCoder ObjectEncoder.swift
/host/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum NilCodingStrategy {
   |             `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
 4 |     case null           // NSNull
 5 |     case symbol(String) // symbol like "$null"
   :
30 |
31 | extension NilCodingStrategy {
32 |     public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |     public static let defaultNilSymbol: String = "$null"
34 | }
[4/17] Compiling ObjectCoder ReferencingEncoder.swift
/host/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum NilCodingStrategy {
   |             `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
 4 |     case null           // NSNull
 5 |     case symbol(String) // symbol like "$null"
   :
30 |
31 | extension NilCodingStrategy {
32 |     public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |     public static let defaultNilSymbol: String = "$null"
34 | }
[5/17] Compiling ObjectCoder SingleValueObjectDecodingContainer.swift
[6/17] Compiling ObjectCoder UnkeyedObjectDecodingContainer.swift
[7/17] Compiling ObjectCoder KeyedObjectEncodingContainer.swift
[8/17] Compiling ObjectCoder ObjectContainer.swift
[9/19] Compiling ObjectCoder CodingStorage.swift
[10/19] Compiling ObjectCoder InitializableWithAny.swift
[11/19] Emitting module ObjectCoder
/host/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum NilCodingStrategy {
   |             `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
 4 |     case null           // NSNull
 5 |     case symbol(String) // symbol like "$null"
   :
30 |
31 | extension NilCodingStrategy {
32 |     public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |     public static let defaultNilSymbol: String = "$null"
34 | }
[12/19] Compiling ObjectCoder KeyedObjectDecodingContainer.swift
/host/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum NilCodingStrategy {
   |             `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
 4 |     case null           // NSNull
 5 |     case symbol(String) // symbol like "$null"
   :
30 |
31 | extension NilCodingStrategy {
32 |     public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |     public static let defaultNilSymbol: String = "$null"
34 | }
[13/19] Compiling ObjectCoder ObjectDecoder.swift
/host/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum NilCodingStrategy {
   |             `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
 4 |     case null           // NSNull
 5 |     case symbol(String) // symbol like "$null"
   :
30 |
31 | extension NilCodingStrategy {
32 |     public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |     public static let defaultNilSymbol: String = "$null"
34 | }
[14/19] Compiling ObjectCoder SingleValueObjectEncodingContanier.swift
[15/19] Compiling ObjectCoder UnkeyedObjectEncodingContanier.swift
[16/19] Compiling ObjectCoder Errors.swift
/host/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum NilCodingStrategy {
   |             `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
 4 |     case null           // NSNull
 5 |     case symbol(String) // symbol like "$null"
   :
30 |
31 | extension NilCodingStrategy {
32 |     public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |     public static let defaultNilSymbol: String = "$null"
34 | }
[17/19] Compiling ObjectCoder NilCodingStrategy.swift
/host/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum NilCodingStrategy {
   |             `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
 4 |     case null           // NSNull
 5 |     case symbol(String) // symbol like "$null"
   :
30 |
31 | extension NilCodingStrategy {
32 |     public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
33 |     public static let defaultNilSymbol: String = "$null"
34 | }
[18/19] Compiling ObjectCoder ObjectCoder+Combine.swift
[19/19] Compiling ObjectCoder ObjectKey.swift
Build complete! (18.84s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "cwlpreconditiontesting",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mattgallagher/CwlPreconditionTesting"
    }
  ],
  "manifest_display_name" : "ObjectCoder",
  "name" : "ObjectCoder",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ObjectCoder",
      "targets" : [
        "ObjectCoder"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObjectCoderTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjectCoderTests",
      "path" : "Tests/ObjectCoderTests",
      "product_dependencies" : [
        "CwlPreconditionTesting"
      ],
      "sources" : [
        "ObjectCoderTests.swift"
      ],
      "target_dependencies" : [
        "ObjectCoder"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjectCoder",
      "module_type" : "SwiftTarget",
      "name" : "ObjectCoder",
      "path" : "Sources/ObjectCoder",
      "product_memberships" : [
        "ObjectCoder"
      ],
      "sources" : [
        "CodingStorage.swift",
        "Decoder/InitializableWithAny.swift",
        "Decoder/KeyedObjectDecodingContainer.swift",
        "Decoder/ObjectDecoder.swift",
        "Decoder/SingleValueObjectDecodingContainer.swift",
        "Decoder/UnkeyedObjectDecodingContainer.swift",
        "Encoder/KeyedObjectEncodingContainer.swift",
        "Encoder/ObjectContainer.swift",
        "Encoder/ObjectEncoder.swift",
        "Encoder/ReferencingEncoder.swift",
        "Encoder/SingleValueObjectEncodingContanier.swift",
        "Encoder/UnkeyedObjectEncodingContanier.swift",
        "Errors.swift",
        "NilCodingStrategy.swift",
        "ObjectCoder+Combine.swift",
        "ObjectKey.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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.