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 0.1.0 (30bdd6), with Swift 6.0 for Linux on 4 Nov 2024 01:37:06 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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kaiede/MCP4725.git
Reference: 0.1.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/Kaiede/MCP4725
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 30bdd6b Align with SingleBoard 1.0.0
Cloned https://github.com/Kaiede/MCP4725.git
Revision (git rev-parse @):
30bdd6b7060b33e1e18bc768dca2009e0424b752
SUCCESS checkout https://github.com/Kaiede/MCP4725.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Kaiede/MCP4725.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 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/Kaiede/SingleBoard.git
[1/277] Fetching singleboard
Fetched https://github.com/Kaiede/SingleBoard.git from cache (0.22s)
Computing version for https://github.com/Kaiede/SingleBoard.git
Computed https://github.com/Kaiede/SingleBoard.git at 1.0.0 (0.48s)
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/13] Compiling SingleBoard Raspberry_Registers.swift
[6/13] Compiling SingleBoard Raspberry_PWM.swift
[7/13] Compiling SingleBoard SingleBoard.swift
[8/13] Compiling SingleBoard Extensions.swift
[9/13] Compiling SingleBoard GPIO.swift
[10/13] Compiling SingleBoard I2C.swift
[11/13] Compiling SingleBoard Chip_Board.swift
[12/13] Compiling SingleBoard Pine_Board.swift
[13/13] Compiling SingleBoard Raspberry_Board.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: annotate 'dataLength' 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
 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: annotate 'dataLength' 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
 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: annotate 'dataLength' 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
 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: annotate 'dataLength' 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
 72 |
 73 |         var command: WriteCommand
Build complete! (16.48s)
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.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.