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 1.4.0 (6fbd64), with Swift 6.0 for Linux on 30 Nov 2024 05:29:11 UTC.

Swift 6 data race errors: 2

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SomeRandomiOSDev/CBORCoding.git
Reference: 1.4.0
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
 * tag               1.4.0      -> FETCH_HEAD
HEAD is now at 6fbd643 Merge pull request #30 from SomeRandomiOSDev/bulk-updates
Submodule path 'Half': checked out 'bb32fc7a5d5cfcee01e5442b1381450b1fcd4803'
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 @):
6fbd643c64cf6ef7a98391820c372d05fa9ed9ab
SUCCESS checkout https://github.com/SomeRandomiOSDev/CBORCoding.git at 1.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/SomeRandomiOSDev/CBORCoding.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/SomeRandomiOSDev/Half
[1/630] Fetching half
Fetched https://github.com/SomeRandomiOSDev/Half from cache (0.22s)
Computing version for https://github.com/SomeRandomiOSDev/Half
Computed https://github.com/SomeRandomiOSDev/Half at 1.4.2 (0.44s)
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_extend.cpp
[3/6] Compiling half.c
[4/6] Compiling fp_trunc.cpp
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/10] Compiling Half Half+Coding.swift
[8/10] Compiling Half Half.swift
[9/10] Emitting module Half
[10/10] Compiling Half Functions.swift
[12/19] Compiling CBORCoding Containers.swift
[13/19] Compiling CBORCoding CBOR+Equatable.swift
[14/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: annotate 'max' 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
 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: annotate 'min' 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
 47 |
 48 |         // MARK: RawRepresentable Protocol Requirements
[15/19] Compiling CBORCoding CBOR+Codable.swift
[16/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)
[17/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: annotate 'max' 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
 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: annotate 'min' 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
 47 |
 48 |         // MARK: RawRepresentable Protocol Requirements
[18/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)
[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! (20.08s)
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.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.