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 CBORCoding, reference main (434a23), with Swift 6.1 for Linux on 28 Apr 2025 00:41:05 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/SomeRandomiOSDev/CBORCoding.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/SomeRandomiOSDev/CBORCoding
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 434a239 Merge pull request #33 from DanieleCeglia-EPR/main
Submodule path 'Half': checked out '14b1ab35ffdf62c999ef1016ec0f8e745a6feed5'
Submodule 'Half' (https://github.com/SomeRandomiOSDev/Half) registered for path 'Half'
Cloning into '/host/spi-builder-workspace/Half'...
Cloned https://github.com/SomeRandomiOSDev/CBORCoding.git
Revision (git rev-parse @):
434a239fba3909bf957b36dbabac93626985a0d2
SUCCESS checkout https://github.com/SomeRandomiOSDev/CBORCoding.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/SomeRandomiOSDev/CBORCoding.git
https://github.com/SomeRandomiOSDev/CBORCoding.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "half",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SomeRandomiOSDev/Half"
    }
  ],
  "manifest_display_name" : "CBORCoding",
  "name" : "CBORCoding",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "CBORCoding",
      "targets" : [
        "CBORCoding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CBORCodingTests",
      "module_type" : "SwiftTarget",
      "name" : "CBORCodingTests",
      "path" : "Tests/CBORCodingTests",
      "product_dependencies" : [
        "Half"
      ],
      "sources" : [
        "CBORDecoderTests.swift",
        "CBOREncoderTests.swift",
        "CBORParserTests.swift",
        "CBORTests.swift",
        "ContainersTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CBORCoding"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CBORCoding",
      "module_type" : "SwiftTarget",
      "name" : "CBORCoding",
      "path" : "Sources/CBORCoding",
      "product_dependencies" : [
        "Half"
      ],
      "product_memberships" : [
        "CBORCoding"
      ],
      "sources" : [
        "CBOR+Codable.swift",
        "CBOR+Equatable.swift",
        "CBOR.swift",
        "CBORDecoder.swift",
        "CBOREncoder.swift",
        "CBORParser.swift",
        "Containers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/SomeRandomiOSDev/Half
[1/630] Fetching half
Fetched https://github.com/SomeRandomiOSDev/Half from cache (0.26s)
Computing version for https://github.com/SomeRandomiOSDev/Half
Computed https://github.com/SomeRandomiOSDev/Half at 1.4.2 (0.67s)
Creating working copy for https://github.com/SomeRandomiOSDev/Half
Working copy of https://github.com/SomeRandomiOSDev/Half resolved at 1.4.2
Building for debugging...
[0/6] Write sources
[2/6] Compiling fp_trunc.cpp
[3/6] Compiling fp_extend.cpp
[4/6] Compiling half.c
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/10] Compiling Half Half.swift
[8/10] Compiling Half Half+Coding.swift
[9/10] Emitting module Half
[10/10] Compiling Half Functions.swift
[12/19] Compiling CBORCoding Containers.swift
[13/19] Emitting module CBORCoding
/host/spi-builder-workspace/Sources/CBORCoding/CBORDecoder.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | #if canImport(Combine)
/host/spi-builder-workspace/Sources/CBORCoding/CBOREncoder.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | #if canImport(Combine)
/host/spi-builder-workspace/Sources/CBORCoding/CBORParser.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | // MARK: - CBORParser Definition
/host/spi-builder-workspace/Sources/CBORCoding/CBOR.swift:43:27: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |      ```
 37 |      */
 38 |     public struct NegativeUInt64: RawRepresentable {
    |                   `- note: consider making struct 'NegativeUInt64' conform to the 'Sendable' protocol
 39 |
 40 |         // MARK: Public Constants
 41 |
 42 |         /// The maximum value this type can represent: `-1`
 43 |         public static let max = NegativeUInt64(rawValue: 0)
    |                           |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'max' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |
 45 |         /// The minimum value this type can represent: `-18446744073709551616`
/host/spi-builder-workspace/Sources/CBORCoding/CBOR.swift:46:27: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |      ```
 37 |      */
 38 |     public struct NegativeUInt64: RawRepresentable {
    |                   `- note: consider making struct 'NegativeUInt64' conform to the 'Sendable' protocol
 39 |
 40 |         // MARK: Public Constants
    :
 44 |
 45 |         /// The minimum value this type can represent: `-18446744073709551616`
 46 |         public static let min = NegativeUInt64(rawValue: .max)
    |                           |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'min' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 |         // MARK: RawRepresentable Protocol Requirements
[14/19] Compiling CBORCoding CBOR+Codable.swift
[15/19] Compiling CBORCoding CBOR.swift
/host/spi-builder-workspace/Sources/CBORCoding/CBOR.swift:43:27: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |      ```
 37 |      */
 38 |     public struct NegativeUInt64: RawRepresentable {
    |                   `- note: consider making struct 'NegativeUInt64' conform to the 'Sendable' protocol
 39 |
 40 |         // MARK: Public Constants
 41 |
 42 |         /// The maximum value this type can represent: `-1`
 43 |         public static let max = NegativeUInt64(rawValue: 0)
    |                           |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'max' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 44 |
 45 |         /// The minimum value this type can represent: `-18446744073709551616`
/host/spi-builder-workspace/Sources/CBORCoding/CBOR.swift:46:27: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |      ```
 37 |      */
 38 |     public struct NegativeUInt64: RawRepresentable {
    |                   `- note: consider making struct 'NegativeUInt64' conform to the 'Sendable' protocol
 39 |
 40 |         // MARK: Public Constants
    :
 44 |
 45 |         /// The minimum value this type can represent: `-18446744073709551616`
 46 |         public static let min = NegativeUInt64(rawValue: .max)
    |                           |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'CBOR.NegativeUInt64' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'min' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 47 |
 48 |         // MARK: RawRepresentable Protocol Requirements
[16/19] Compiling CBORCoding CBORDecoder.swift
/host/spi-builder-workspace/Sources/CBORCoding/CBORDecoder.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | #if canImport(Combine)
[17/19] Compiling CBORCoding CBOR+Equatable.swift
[18/19] Compiling CBORCoding CBOREncoder.swift
/host/spi-builder-workspace/Sources/CBORCoding/CBOREncoder.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | #if canImport(Combine)
[19/19] Compiling CBORCoding CBORParser.swift
/host/spi-builder-workspace/Sources/CBORCoding/CBORParser.swift:9:22: warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
   7 |
   8 | import Foundation
   9 | @_implementationOnly import Half
     |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'CBORCoding' may lead to instability during execution
  10 |
  11 | // MARK: - CBORParser Definition
Build complete! (14.98s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "half",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SomeRandomiOSDev/Half"
    }
  ],
  "manifest_display_name" : "CBORCoding",
  "name" : "CBORCoding",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "CBORCoding",
      "targets" : [
        "CBORCoding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CBORCodingTests",
      "module_type" : "SwiftTarget",
      "name" : "CBORCodingTests",
      "path" : "Tests/CBORCodingTests",
      "product_dependencies" : [
        "Half"
      ],
      "sources" : [
        "CBORDecoderTests.swift",
        "CBOREncoderTests.swift",
        "CBORParserTests.swift",
        "CBORTests.swift",
        "ContainersTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CBORCoding"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CBORCoding",
      "module_type" : "SwiftTarget",
      "name" : "CBORCoding",
      "path" : "Sources/CBORCoding",
      "product_dependencies" : [
        "Half"
      ],
      "product_memberships" : [
        "CBORCoding"
      ],
      "sources" : [
        "CBOR+Codable.swift",
        "CBOR+Equatable.swift",
        "CBOR.swift",
        "CBORDecoder.swift",
        "CBOREncoder.swift",
        "CBORParser.swift",
        "Containers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.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.