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 BinaryCodable, reference develop (4caa9d), with Swift 6.1 for Linux on 25 Apr 2025 23:54:37 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/jverkoey/BinaryCodable.git
Reference: develop
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/jverkoey/BinaryCodable
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 4caa9de Remove empty requirements section.
Cloned https://github.com/jverkoey/BinaryCodable.git
Revision (git rev-parse @):
4caa9de7d9c51b0777fc4524a6c19221fa42538f
SUCCESS checkout https://github.com/jverkoey/BinaryCodable.git at develop
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jverkoey/BinaryCodable.git
https://github.com/jverkoey/BinaryCodable.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BinaryCodable",
  "name" : "BinaryCodable",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BinaryCodable",
      "targets" : [
        "BinaryCodable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BinaryCodableTests",
      "module_type" : "SwiftTarget",
      "name" : "BinaryCodableTests",
      "path" : "Tests/BinaryCodableTests",
      "sources" : [
        "ArrayDecoderTests.swift",
        "ArrayEncoderTests.swift",
        "BinaryFloatingPoint+bytes.swift",
        "BufferedDataTests.swift",
        "DecodeRemainderTests.swift",
        "FixedWidthInteger+bytes.swift",
        "GIFHeaderTests.swift",
        "LengthEncodedPacketDecoderTests.swift",
        "LengthEncodedPacketEncoderTests.swift",
        "MisalignedDecoderTests.swift"
      ],
      "target_dependencies" : [
        "BinaryCodable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BinaryCodable",
      "module_type" : "SwiftTarget",
      "name" : "BinaryCodable",
      "path" : "Sources/BinaryCodable",
      "product_memberships" : [
        "BinaryCodable"
      ],
      "sources" : [
        "BinaryCodable.swift",
        "BinaryDataCoders/BinaryDataDecoder.swift",
        "BinaryDataCoders/BinaryDataEncoder.swift",
        "BinaryDataCoders/BufferedData.swift",
        "BinaryDataCoders/ByteRepresentations.swift",
        "BinaryDecodable.swift",
        "BinaryEncodable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling BinaryCodable BinaryCodable.swift
[4/10] Emitting module BinaryCodable
/host/spi-builder-workspace/Sources/BinaryCodable/BinaryDecodable.swift:82:8: warning: associated value 'dataCorrupted' of 'Sendable'-conforming enum 'BinaryDecodingError' has non-sendable type 'BinaryDecodingError.Context'; this is an error in the Swift 6 language mode
 58 |    The context in which the error occurred.
 59 |    */
 60 |   public struct Context {
    |                 `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 61 |
 62 |     /**
    :
 80 |    As an associated value, this case contains the context for debugging.
 81 |    */
 82 |   case dataCorrupted(Context)
    |        `- warning: associated value 'dataCorrupted' of 'Sendable'-conforming enum 'BinaryDecodingError' has non-sendable type 'BinaryDecodingError.Context'; this is an error in the Swift 6 language mode
 83 | }
 84 |
/host/spi-builder-workspace/Sources/BinaryCodable/BinaryEncodable.swift:74:8: warning: associated value 'incompatibleStringEncoding' of 'Sendable'-conforming enum 'BinaryEncodingError' has non-sendable type 'BinaryEncodingError.Context'; this is an error in the Swift 6 language mode
 50 |    The context in which the error occurred.
 51 |    */
 52 |   public struct Context {
    |                 `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 53 |
 54 |     /**
    :
 72 |    As an associated value, this case contains the context for debugging.
 73 |    */
 74 |   case incompatibleStringEncoding(Context)
    |        `- warning: associated value 'incompatibleStringEncoding' of 'Sendable'-conforming enum 'BinaryEncodingError' has non-sendable type 'BinaryEncodingError.Context'; this is an error in the Swift 6 language mode
 75 | }
 76 |
[5/10] Compiling BinaryCodable BinaryDataDecoder.swift
[6/10] Compiling BinaryCodable BufferedData.swift
[7/10] Compiling BinaryCodable ByteRepresentations.swift
[8/10] Compiling BinaryCodable BinaryDataEncoder.swift
[9/10] Compiling BinaryCodable BinaryDecodable.swift
/host/spi-builder-workspace/Sources/BinaryCodable/BinaryDecodable.swift:82:8: warning: associated value 'dataCorrupted' of 'Sendable'-conforming enum 'BinaryDecodingError' has non-sendable type 'BinaryDecodingError.Context'; this is an error in the Swift 6 language mode
 58 |    The context in which the error occurred.
 59 |    */
 60 |   public struct Context {
    |                 `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 61 |
 62 |     /**
    :
 80 |    As an associated value, this case contains the context for debugging.
 81 |    */
 82 |   case dataCorrupted(Context)
    |        `- warning: associated value 'dataCorrupted' of 'Sendable'-conforming enum 'BinaryDecodingError' has non-sendable type 'BinaryDecodingError.Context'; this is an error in the Swift 6 language mode
 83 | }
 84 |
[10/10] Compiling BinaryCodable BinaryEncodable.swift
/host/spi-builder-workspace/Sources/BinaryCodable/BinaryEncodable.swift:74:8: warning: associated value 'incompatibleStringEncoding' of 'Sendable'-conforming enum 'BinaryEncodingError' has non-sendable type 'BinaryEncodingError.Context'; this is an error in the Swift 6 language mode
 50 |    The context in which the error occurred.
 51 |    */
 52 |   public struct Context {
    |                 `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 53 |
 54 |     /**
    :
 72 |    As an associated value, this case contains the context for debugging.
 73 |    */
 74 |   case incompatibleStringEncoding(Context)
    |        `- warning: associated value 'incompatibleStringEncoding' of 'Sendable'-conforming enum 'BinaryEncodingError' has non-sendable type 'BinaryEncodingError.Context'; this is an error in the Swift 6 language mode
 75 | }
 76 |
Build complete! (5.75s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BinaryCodable",
  "name" : "BinaryCodable",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BinaryCodable",
      "targets" : [
        "BinaryCodable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BinaryCodableTests",
      "module_type" : "SwiftTarget",
      "name" : "BinaryCodableTests",
      "path" : "Tests/BinaryCodableTests",
      "sources" : [
        "ArrayDecoderTests.swift",
        "ArrayEncoderTests.swift",
        "BinaryFloatingPoint+bytes.swift",
        "BufferedDataTests.swift",
        "DecodeRemainderTests.swift",
        "FixedWidthInteger+bytes.swift",
        "GIFHeaderTests.swift",
        "LengthEncodedPacketDecoderTests.swift",
        "LengthEncodedPacketEncoderTests.swift",
        "MisalignedDecoderTests.swift"
      ],
      "target_dependencies" : [
        "BinaryCodable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BinaryCodable",
      "module_type" : "SwiftTarget",
      "name" : "BinaryCodable",
      "path" : "Sources/BinaryCodable",
      "product_memberships" : [
        "BinaryCodable"
      ],
      "sources" : [
        "BinaryCodable.swift",
        "BinaryDataCoders/BinaryDataDecoder.swift",
        "BinaryDataCoders/BinaryDataEncoder.swift",
        "BinaryDataCoders/BufferedData.swift",
        "BinaryDataCoders/ByteRepresentations.swift",
        "BinaryDecodable.swift",
        "BinaryEncodable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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.