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 1.0.0 (04b37b), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 18:21:26 UTC.

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/eheitfield/SimpleMatrixKit.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/eheitfield/SimpleMatrixKit
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 04b37bd Refactored square matrix functionality.  Improved LUP decomposition algorithm.  Improved error handling.  Updated documentation.
Cloned https://github.com/eheitfield/SimpleMatrixKit.git
Revision (git rev-parse @):
04b37bd04e97d9137647795d75c4716514b5eae6
SUCCESS checkout https://github.com/eheitfield/SimpleMatrixKit.git at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "simplematrixkit",
      "name": "SimpleMatrixKit",
      "url": "https://github.com/eheitfield/SimpleMatrixKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SimpleMatrixKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/eheitfield/SimpleMatrixKit.git
[1/85] Fetching simplematrixkit
Fetched https://github.com/eheitfield/SimpleMatrixKit.git from cache (0.83s)
Creating working copy for https://github.com/eheitfield/SimpleMatrixKit.git
Working copy of https://github.com/eheitfield/SimpleMatrixKit.git resolved at 1.0.0 (04b37bd)
warning: '.resolve-product-dependencies': dependency 'simplematrixkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/eheitfield/SimpleMatrixKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/10] Compiling SimpleMatrixKit Math Extensions.swift
[4/10] Compiling SimpleMatrixKit Concatination.swift
[5/10] Compiling SimpleMatrixKit SquareRealMatrix.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:15:5: 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 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:16:5: 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 Matrix.swift
/Users/admin/builder/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 |     }
[7/10] Emitting module SimpleMatrixKit
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:15:5: 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 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:16:5: 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]]) {
/Users/admin/builder/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 |     }
/Users/admin/builder/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 DereferencedRealMatrix.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:15:5: 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 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleMatrixKit/DereferencedRealMatrix.swift:16:5: 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]]) {
[9/10] Compiling SimpleMatrixKit MatrixError.swift
/Users/admin/builder/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
[10/10] Compiling SimpleMatrixKit MatrixRepresentable.swift
Build complete! (10.81s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimpleMatrixKit",
  "name" : "SimpleMatrixKit",
  "path" : "/Users/admin/builder/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" : [
        "Concatination.swift",
        "DereferencedRealMatrix.swift",
        "Math Extensions.swift",
        "Matrix.swift",
        "MatrixError.swift",
        "MatrixRepresentable.swift",
        "SquareRealMatrix.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.