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 MCP4725, reference master (a5f110), with Swift 6.1 for Linux on 28 Apr 2025 03:53:13 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/Kaiede/MCP4725.git
Reference: master
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/Kaiede/MCP4725
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a5f1104 Enable GitHub Actions (#1)
Cloned https://github.com/Kaiede/MCP4725.git
Revision (git rev-parse @):
a5f1104bf404a765be61679e2e1fca7351f81d03
SUCCESS checkout https://github.com/Kaiede/MCP4725.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Kaiede/MCP4725.git
https://github.com/Kaiede/MCP4725.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "singleboard",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kaiede/SingleBoard.git"
    }
  ],
  "manifest_display_name" : "MCP4725",
  "name" : "MCP4725",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MCP4725",
      "targets" : [
        "MCP4725"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MCP4725",
      "module_type" : "SwiftTarget",
      "name" : "MCP4725",
      "path" : "Sources",
      "product_dependencies" : [
        "SingleBoard"
      ],
      "product_memberships" : [
        "MCP4725"
      ],
      "sources" : [
        "MCP4725.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/Kaiede/SingleBoard.git
[1/277] Fetching singleboard
Fetched https://github.com/Kaiede/SingleBoard.git from cache (0.20s)
Computing version for https://github.com/Kaiede/SingleBoard.git
Computed https://github.com/Kaiede/SingleBoard.git at 1.0.0 (0.66s)
Creating working copy for https://github.com/Kaiede/SingleBoard.git
Working copy of https://github.com/Kaiede/SingleBoard.git resolved at 1.0.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/12] Emitting module SingleBoard
[5/12] Compiling SingleBoard Chip_Board.swift
[6/12] Compiling SingleBoard Pine_Board.swift
[7/13] Compiling SingleBoard GPIO.swift
[8/13] Compiling SingleBoard Extensions.swift
[9/13] Compiling SingleBoard Raspberry_PWM.swift
[10/13] Compiling SingleBoard Raspberry_Board.swift
[11/13] Compiling SingleBoard SingleBoard.swift
[12/13] Compiling SingleBoard I2C.swift
[13/13] Compiling SingleBoard Raspberry_Registers.swift
[15/16] Emitting module MCP4725
/host/spi-builder-workspace/Sources/MCP4725.swift:48:20: warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |
 47 |     internal struct FastModeData: I2CWritable {
 48 |         static var dataLength: Int = MemoryLayout<UInt16>.size
    |                    |- warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'dataLength' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'dataLength' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |         var mode: PowerDownMode
 50 |         var voltage: UInt16
/host/spi-builder-workspace/Sources/MCP4725.swift:71:20: warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 69 |
 70 |     internal struct FullData: I2CReadWritable {
 71 |         static var dataLength: Int = MemoryLayout<UInt8>.size * 3
    |                    |- warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'dataLength' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'dataLength' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |         var command: WriteCommand
[16/16] Compiling MCP4725 MCP4725.swift
/host/spi-builder-workspace/Sources/MCP4725.swift:48:20: warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 46 |
 47 |     internal struct FastModeData: I2CWritable {
 48 |         static var dataLength: Int = MemoryLayout<UInt16>.size
    |                    |- warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'dataLength' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'dataLength' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |         var mode: PowerDownMode
 50 |         var voltage: UInt16
/host/spi-builder-workspace/Sources/MCP4725.swift:71:20: warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 69 |
 70 |     internal struct FullData: I2CReadWritable {
 71 |         static var dataLength: Int = MemoryLayout<UInt8>.size * 3
    |                    |- warning: static property 'dataLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'dataLength' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'dataLength' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |         var command: WriteCommand
Build complete! (9.61s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "singleboard",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kaiede/SingleBoard.git"
    }
  ],
  "manifest_display_name" : "MCP4725",
  "name" : "MCP4725",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MCP4725",
      "targets" : [
        "MCP4725"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MCP4725",
      "module_type" : "SwiftTarget",
      "name" : "MCP4725",
      "path" : "Sources",
      "product_dependencies" : [
        "SingleBoard"
      ],
      "product_memberships" : [
        "MCP4725"
      ],
      "sources" : [
        "MCP4725.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.