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 Linux.

Swift 6 data race errors: 2

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.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.0
Building package at path:  $workDir
https://github.com/Kaiede/MCP4725.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
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.65s)
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] Compiling SingleBoard Raspberry_Registers.swift
[5/13] Compiling SingleBoard Extensions.swift
[6/13] Compiling SingleBoard Raspberry_PWM.swift
[7/13] Emitting module SingleBoard
[8/13] Compiling SingleBoard Chip_Board.swift
[9/13] Compiling SingleBoard Pine_Board.swift
[10/13] Compiling SingleBoard Raspberry_Board.swift
[11/13] Compiling SingleBoard I2C.swift
[12/13] Compiling SingleBoard GPIO.swift
[13/13] Compiling SingleBoard SingleBoard.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 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
/host/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
[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 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
/host/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! (17.70s)
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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.