This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kaiede/MCP4725.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Kaiede/MCP4725.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/13] Compiling SingleBoard SingleBoard.swift
[5/13] Compiling SingleBoard GPIO.swift
[6/13] Compiling SingleBoard Extensions.swift
[7/13] Compiling SingleBoard Raspberry_Registers.swift
[8/13] Compiling SingleBoard Pine_Board.swift
[9/13] Compiling SingleBoard Raspberry_PWM.swift
[10/13] Compiling SingleBoard I2C.swift
[11/13] Emitting module SingleBoard
[12/13] Compiling SingleBoard Chip_Board.swift
[13/13] Compiling SingleBoard Raspberry_Board.swift
[14/15] Compiling MCP4725 MCP4725.swift
/Users/admin/builder/spi-builder-workspace/Sources/MCP4725.swift:48:20: warning: static property 'dataLength' is not concurrency-safe because it is non-isolated 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 non-isolated 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
/Users/admin/builder/spi-builder-workspace/Sources/MCP4725.swift:71:20: warning: static property 'dataLength' is not concurrency-safe because it is non-isolated 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 non-isolated 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
[15/15] Emitting module MCP4725
/Users/admin/builder/spi-builder-workspace/Sources/MCP4725.swift:48:20: warning: static property 'dataLength' is not concurrency-safe because it is non-isolated 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 non-isolated 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
/Users/admin/builder/spi-builder-workspace/Sources/MCP4725.swift:71:20: warning: static property 'dataLength' is not concurrency-safe because it is non-isolated 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 non-isolated 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! (22.20s)
Fetching https://github.com/Kaiede/SingleBoard.git
[1/277] Fetching singleboard
Fetched https://github.com/Kaiede/SingleBoard.git from cache (0.78s)
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
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" : "/Users/admin/builder/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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.