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 SimpleMatrixKit, reference main (1aa691), with Swift 6.1 for Linux on 26 Apr 2025 13:06:38 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/eheitfield/SimpleMatrixKit.git
Reference: main
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/eheitfield/SimpleMatrixKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1aa691c Minor documentation edits
Cloned https://github.com/eheitfield/SimpleMatrixKit.git
Revision (git rev-parse @):
1aa691c42c7d215f8b6018ab3e5d273890d6e7e8
SUCCESS checkout https://github.com/eheitfield/SimpleMatrixKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/eheitfield/SimpleMatrixKit.git
https://github.com/eheitfield/SimpleMatrixKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimpleMatrixKit",
  "name" : "SimpleMatrixKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SimpleMatrixKit",
      "targets" : [
        "SimpleMatrixKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleMatrixKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SimpleMatrixKitTests",
      "path" : "Tests/SimpleMatrixKitTests",
      "sources" : [
        "SimpleMatrixKitTests.swift"
      ],
      "target_dependencies" : [
        "SimpleMatrixKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SimpleMatrixKit",
      "module_type" : "SwiftTarget",
      "name" : "SimpleMatrixKit",
      "path" : "Sources/SimpleMatrixKit",
      "product_memberships" : [
        "SimpleMatrixKit"
      ],
      "sources" : [
        "Concatenation.swift",
        "DereferencedRealMatrix.swift",
        "Math Extensions.swift",
        "Matrix.swift",
        "MatrixError.swift",
        "MatrixRepresentable.swift",
        "SquareRealMatrix.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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 SimpleMatrixKit Math Extensions.swift
[4/10] Compiling SimpleMatrixKit DereferencedRealMatrix.swift
/host/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:15:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
13 |
14 |     private var startRows: [[Value]]
15 |     private (set) var rPtrs: [Int]
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
16 |     private (set) var cPtrs: [Int]
17 |
/host/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:16:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |     private var startRows: [[Value]]
15 |     private (set) var rPtrs: [Int]
16 |     private (set) var cPtrs: [Int]
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
17 |
18 |     init(_ rows: [[Value]]) {
[5/10] Compiling SimpleMatrixKit SquareRealMatrix.swift
/host/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:15:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
13 |
14 |     private var startRows: [[Value]]
15 |     private (set) var rPtrs: [Int]
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
16 |     private (set) var cPtrs: [Int]
17 |
/host/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:16:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |     private var startRows: [[Value]]
15 |     private (set) var rPtrs: [Int]
16 |     private (set) var cPtrs: [Int]
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
17 |
18 |     init(_ rows: [[Value]]) {
[6/10] Compiling SimpleMatrixKit MatrixRepresentable.swift
[7/10] Emitting module SimpleMatrixKit
/host/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:15:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
13 |
14 |     private var startRows: [[Value]]
15 |     private (set) var rPtrs: [Int]
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
16 |     private (set) var cPtrs: [Int]
17 |
/host/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:16:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |     private var startRows: [[Value]]
15 |     private (set) var rPtrs: [Int]
16 |     private (set) var cPtrs: [Int]
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
17 |
18 |     init(_ rows: [[Value]]) {
/host/spi-builder-workspace/Sources/SimpleMatrixKit/Matrix.swift:88:30: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 13 | /// the inner arrays must be of the same length so that the data forms
 14 | /// a proper matrix.
 15 | public struct Matrix<Value> {
    |                      `- note: 'Value' previously declared here
 16 |
 17 |     var elements: [[Value]]
    :
 86 |     /// - Parameter type: type of matrix Value
 87 |     /// - Returns: An empty matrix of the given Value type
 88 |     public static func empty<Value>() -> Matrix<Value> {
    |                              `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 89 |         return Matrix<Value>(rows: 0, cols: 0, valueArray: [Value]() )
 90 |     }
/host/spi-builder-workspace/Sources/SimpleMatrixKit/MatrixError.swift:19:10: warning: associated value 'nonconformingMatrices(rule:)' of 'Sendable'-conforming enum 'MatrixError' has non-sendable type 'MatrixError.ConformanceRule'; this is an error in the Swift 6 language mode
13 | public enum MatrixError: Error {
14 |
15 |     public enum ConformanceRule {
   |                 `- note: consider making enum 'ConformanceRule' conform to the 'Sendable' protocol
16 |         case addition, multiplication, horizontalConcatenation, verticalConcatenation
17 |     }
18 |
19 |     case nonconformingMatrices(rule: ConformanceRule)
   |          `- warning: associated value 'nonconformingMatrices(rule:)' of 'Sendable'-conforming enum 'MatrixError' has non-sendable type 'MatrixError.ConformanceRule'; this is an error in the Swift 6 language mode
20 |     case squareOperationOnNonsquareMatrix
21 |     case symmetricOperationOnNonsymmetricMatrix
[8/10] Compiling SimpleMatrixKit Concatenation.swift
[9/10] Compiling SimpleMatrixKit Matrix.swift
/host/spi-builder-workspace/Sources/SimpleMatrixKit/Matrix.swift:88:30: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 13 | /// the inner arrays must be of the same length so that the data forms
 14 | /// a proper matrix.
 15 | public struct Matrix<Value> {
    |                      `- note: 'Value' previously declared here
 16 |
 17 |     var elements: [[Value]]
    :
 86 |     /// - Parameter type: type of matrix Value
 87 |     /// - Returns: An empty matrix of the given Value type
 88 |     public static func empty<Value>() -> Matrix<Value> {
    |                              `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 89 |         return Matrix<Value>(rows: 0, cols: 0, valueArray: [Value]() )
 90 |     }
[10/10] Compiling SimpleMatrixKit MatrixError.swift
/host/spi-builder-workspace/Sources/SimpleMatrixKit/MatrixError.swift:19:10: warning: associated value 'nonconformingMatrices(rule:)' of 'Sendable'-conforming enum 'MatrixError' has non-sendable type 'MatrixError.ConformanceRule'; this is an error in the Swift 6 language mode
13 | public enum MatrixError: Error {
14 |
15 |     public enum ConformanceRule {
   |                 `- note: consider making enum 'ConformanceRule' conform to the 'Sendable' protocol
16 |         case addition, multiplication, horizontalConcatenation, verticalConcatenation
17 |     }
18 |
19 |     case nonconformingMatrices(rule: ConformanceRule)
   |          `- warning: associated value 'nonconformingMatrices(rule:)' of 'Sendable'-conforming enum 'MatrixError' has non-sendable type 'MatrixError.ConformanceRule'; this is an error in the Swift 6 language mode
20 |     case squareOperationOnNonsquareMatrix
21 |     case symmetricOperationOnNonsymmetricMatrix
Build complete! (9.55s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimpleMatrixKit",
  "name" : "SimpleMatrixKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SimpleMatrixKit",
      "targets" : [
        "SimpleMatrixKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleMatrixKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SimpleMatrixKitTests",
      "path" : "Tests/SimpleMatrixKitTests",
      "sources" : [
        "SimpleMatrixKitTests.swift"
      ],
      "target_dependencies" : [
        "SimpleMatrixKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SimpleMatrixKit",
      "module_type" : "SwiftTarget",
      "name" : "SimpleMatrixKit",
      "path" : "Sources/SimpleMatrixKit",
      "product_memberships" : [
        "SimpleMatrixKit"
      ],
      "sources" : [
        "Concatenation.swift",
        "DereferencedRealMatrix.swift",
        "Math Extensions.swift",
        "Matrix.swift",
        "MatrixError.swift",
        "MatrixRepresentable.swift",
        "SquareRealMatrix.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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.