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 sort-state-university, reference 1.3.0 (08c621), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 16:55:43 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/kylehughes/sort-state-university.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kylehughes/sort-state-university
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 08c6214 Implement Codable, Equatable, and Hashable conformance for SortingAlgorithmStep
Cloned https://github.com/kylehughes/sort-state-university.git
Revision (git rev-parse @):
08c6214712954428471151d8b73d80db0adbab39
SUCCESS checkout https://github.com/kylehughes/sort-state-university.git at 1.3.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": "sort-state-university",
      "name": "sort-state-university",
      "url": "https://github.com/kylehughes/sort-state-university.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/sort-state-university",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/kylehughes/sort-state-university.git
[1/734] Fetching sort-state-university
Fetched https://github.com/kylehughes/sort-state-university.git from cache (1.05s)
Creating working copy for https://github.com/kylehughes/sort-state-university.git
Working copy of https://github.com/kylehughes/sort-state-university.git resolved at 1.3.0 (08c6214)
warning: '.resolve-product-dependencies': dependency 'sort-state-university' 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/kylehughes/sort-state-university.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/12] Compiling SortStateUniversity SortingAlgorithmLabel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:37:23: warning: static property 'allBuiltIn' is not concurrency-safe because non-'Sendable' type '[SortingAlgorithmLabel]' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// The type used to uniquely identify a sorting algorithm implementation.
 9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
   |               `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 |     /// The stable identity of the sorting algorithm label.
11 |     public let id: String
   :
35 |
36 |     /// The labels of all sorting algorithms that are built into the library.
37 |     public static let allBuiltIn: [SortingAlgorithmLabel] = [
   |                       |- warning: static property 'allBuiltIn' is not concurrency-safe because non-'Sendable' type '[SortingAlgorithmLabel]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'allBuiltIn' 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
38 |         .insertion,
39 |         .merge,
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:45:23: warning: static property 'insertion' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// The type used to uniquely identify a sorting algorithm implementation.
 9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
   |               `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 |     /// The stable identity of the sorting algorithm label.
11 |     public let id: String
   :
43 |
44 |     /// The label of the `InsertionSort` algorithm.
45 |     public static let insertion = SortingAlgorithmLabel(id: "insertion", name: "Insertion Sort")
   |                       |- warning: static property 'insertion' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'insertion' 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
46 |
47 |     /// The label of the `MergeSort` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:48:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// The type used to uniquely identify a sorting algorithm implementation.
 9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
   |               `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 |     /// The stable identity of the sorting algorithm label.
11 |     public let id: String
   :
46 |
47 |     /// The label of the `MergeSort` algorithm.
48 |     public static let merge = SortingAlgorithmLabel(id: "merge", name: "Merge Sort")
   |                       |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'merge' 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 | }
50 |
[4/12] Compiling SortStateUniversity SortingAlgorithm.swift
[5/13] Compiling SortStateUniversity MergeSort.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:48:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// The type used to uniquely identify a sorting algorithm implementation.
 9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
   |               `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 |     /// The stable identity of the sorting algorithm label.
11 |     public let id: String
   :
46 |
47 |     /// The label of the `MergeSort` algorithm.
48 |     public static let merge = SortingAlgorithmLabel(id: "merge", name: "Merge Sort")
   |                       |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'merge' 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 | }
50 |
[6/13] Compiling SortStateUniversity MergeSort+Merge.swift
[7/13] Compiling SortStateUniversity Array+SortStateUniversity.swift
[8/13] Compiling SortStateUniversity Complexity.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/Complexity.swift:44:23: warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | ///
18 | /// - SeeAlso: https://en.wikipedia.org/wiki/Big_O_notation
19 | public enum Complexity: Equatable, Hashable, CaseIterable {
   |             `- note: consider making enum 'Complexity' conform to the 'Sendable' protocol
20 |     /// O(1)
21 |     case constant
   :
42 |
43 |     /// A collection of all complexity values from least complex to most complex.
44 |     public static let allCasesInOrder: [Complexity] = [
   |                       |- warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'allCasesInOrder' 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
45 |         .constant,
46 |         .logarithmic,
[9/13] Compiling SortStateUniversity Int+SortStateUniversity.swift
[10/13] Compiling SortStateUniversity Comparison.swift
[11/13] Emitting module SortStateUniversity
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/Complexity.swift:44:23: warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | ///
18 | /// - SeeAlso: https://en.wikipedia.org/wiki/Big_O_notation
19 | public enum Complexity: Equatable, Hashable, CaseIterable {
   |             `- note: consider making enum 'Complexity' conform to the 'Sendable' protocol
20 |     /// O(1)
21 |     case constant
   :
42 |
43 |     /// A collection of all complexity values from least complex to most complex.
44 |     public static let allCasesInOrder: [Complexity] = [
   |                       |- warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'allCasesInOrder' 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
45 |         .constant,
46 |         .logarithmic,
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:37:23: warning: static property 'allBuiltIn' is not concurrency-safe because non-'Sendable' type '[SortingAlgorithmLabel]' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// The type used to uniquely identify a sorting algorithm implementation.
 9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
   |               `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 |     /// The stable identity of the sorting algorithm label.
11 |     public let id: String
   :
35 |
36 |     /// The labels of all sorting algorithms that are built into the library.
37 |     public static let allBuiltIn: [SortingAlgorithmLabel] = [
   |                       |- warning: static property 'allBuiltIn' is not concurrency-safe because non-'Sendable' type '[SortingAlgorithmLabel]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'allBuiltIn' 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
38 |         .insertion,
39 |         .merge,
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:45:23: warning: static property 'insertion' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// The type used to uniquely identify a sorting algorithm implementation.
 9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
   |               `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 |     /// The stable identity of the sorting algorithm label.
11 |     public let id: String
   :
43 |
44 |     /// The label of the `InsertionSort` algorithm.
45 |     public static let insertion = SortingAlgorithmLabel(id: "insertion", name: "Insertion Sort")
   |                       |- warning: static property 'insertion' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'insertion' 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
46 |
47 |     /// The label of the `MergeSort` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:48:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// The type used to uniquely identify a sorting algorithm implementation.
 9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
   |               `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 |     /// The stable identity of the sorting algorithm label.
11 |     public let id: String
   :
46 |
47 |     /// The label of the `MergeSort` algorithm.
48 |     public static let merge = SortingAlgorithmLabel(id: "merge", name: "Merge Sort")
   |                       |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'merge' 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 | }
50 |
[12/13] Compiling SortStateUniversity InsertionSort.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:45:23: warning: static property 'insertion' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// The type used to uniquely identify a sorting algorithm implementation.
 9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
   |               `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 |     /// The stable identity of the sorting algorithm label.
11 |     public let id: String
   :
43 |
44 |     /// The label of the `InsertionSort` algorithm.
45 |     public static let insertion = SortingAlgorithmLabel(id: "insertion", name: "Insertion Sort")
   |                       |- warning: static property 'insertion' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'insertion' 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
46 |
47 |     /// The label of the `MergeSort` algorithm.
[13/13] Compiling SortStateUniversity SortingAlgorithmStep.swift
Build complete! (12.86s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "sort-state-university",
  "name" : "sort-state-university",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "SortStateUniversity",
      "targets" : [
        "SortStateUniversity"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SortStateUniversityTests",
      "module_type" : "SwiftTarget",
      "name" : "SortStateUniversityTests",
      "path" : "Tests/SortStateUniversityTests",
      "sources" : [
        "Tests/ComparisonTests.swift",
        "Tests/ComplexityTests.swift",
        "Tests/Insertion Sort/InsertionSortTests.swift",
        "Tests/Merge Sort/MergeSortTests.swift",
        "Tests/SortingAlgorithmStepTests.swift",
        "Tests/SortingAlgorithmTests.swift",
        "Utilities/Extensions/SortStateUniversity/InsertionSort+SortStateUniversityTests.swift",
        "Utilities/Extensions/SortStateUniversity/MergeSort+SortStateUniversityTests.swift",
        "Utilities/SortInputFactory.swift",
        "Utilities/SortTestHarness.swift"
      ],
      "target_dependencies" : [
        "SortStateUniversity"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SortStateUniversity",
      "module_type" : "SwiftTarget",
      "name" : "SortStateUniversity",
      "path" : "Sources/SortStateUniversity",
      "product_memberships" : [
        "SortStateUniversity"
      ],
      "sources" : [
        "Comparison.swift",
        "Complexity.swift",
        "Extensions/Standard Library/Array+SortStateUniversity.swift",
        "Extensions/Standard Library/Int+SortStateUniversity.swift",
        "Insertion Sort/InsertionSort.swift",
        "Merge Sort/MergeSort+Merge.swift",
        "Merge Sort/MergeSort.swift",
        "SortingAlgorithm.swift",
        "SortingAlgorithmLabel.swift",
        "SortingAlgorithmStep.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.