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 main (6f721f), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 16:55:28 UTC.

Swift 6 data race errors: 5

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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kylehughes/sort-state-university
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6f721f2 Improve quicksort algorithm with harmonic numbers
Cloned https://github.com/kylehughes/sort-state-university.git
Revision (git rev-parse @):
6f721f2274b0965dd5e54ba156c4e82e953a47d3
SUCCESS checkout https://github.com/kylehughes/sort-state-university.git at main
========================================
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.04s)
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 main (6f721f2)
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/16] Compiling SortStateUniversity SortingAlgorithmLabel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' 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
   :
36 |
37 |     /// The label of the ``InsertionSort`` algorithm.
38 |     public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
   |                       |- warning: static property 'insertionSort' 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 'insertionSort' 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
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' 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
   :
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
41 |     public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
   |                       |- warning: static property 'mergeSort' 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 'mergeSort' 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
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' 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
   :
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
44 |     public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
   |                       |- warning: static property 'quicksort' 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 'quicksort' 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 | }
46 |
[4/17] Compiling SortStateUniversity Quicksort+Partition.swift
[5/17] Compiling SortStateUniversity SortingAlgorithmStep.swift
[6/17] Emitting module SortStateUniversity
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// Enumeration of all sorting algorithms that are built into the library.
 9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
   |             `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 |     /// A simple sorting algorithm that sorts its elements one at a time.
11 |     ///
   :
26 |
27 |     /// A collection of all values in this type, in alphabetical order (in American English).
28 |     public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
   |                       |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'allCasesInAlphabeticalOrder' 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
29 |
30 |     // MARK: Public Instance Interface
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' 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
   :
36 |
37 |     /// The label of the ``InsertionSort`` algorithm.
38 |     public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
   |                       |- warning: static property 'insertionSort' 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 'insertionSort' 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
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' 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
   :
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
41 |     public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
   |                       |- warning: static property 'mergeSort' 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 'mergeSort' 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
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' 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
   :
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
44 |     public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
   |                       |- warning: static property 'quicksort' 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 'quicksort' 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 | }
46 |
/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,
[7/17] Compiling SortStateUniversity SortingAlgorithm.swift
[8/17] Compiling SortStateUniversity Quicksort.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' 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
   :
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
44 |     public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
   |                       |- warning: static property 'quicksort' 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 'quicksort' 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 | }
46 |
[9/17] Compiling SortStateUniversity InsertionSort.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' 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
   :
36 |
37 |     /// The label of the ``InsertionSort`` algorithm.
38 |     public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
   |                       |- warning: static property 'insertionSort' 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 'insertionSort' 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
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
[10/17] Compiling SortStateUniversity MergeSort+Merge.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' 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
   :
36 |
37 |     /// The label of the ``InsertionSort`` algorithm.
38 |     public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
   |                       |- warning: static property 'insertionSort' 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 'insertionSort' 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
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
[11/17] Compiling SortStateUniversity Double+SortStateUniversity.swift
[12/17] Compiling SortStateUniversity Int+SortStateUniversity.swift
[13/17] Compiling SortStateUniversity BuiltInSortingAlgorithmType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// Enumeration of all sorting algorithms that are built into the library.
 9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
   |             `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 |     /// A simple sorting algorithm that sorts its elements one at a time.
11 |     ///
   :
26 |
27 |     /// A collection of all values in this type, in alphabetical order (in American English).
28 |     public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
   |                       |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'allCasesInAlphabeticalOrder' 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
29 |
30 |     // MARK: Public Instance Interface
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' 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
   :
36 |
37 |     /// The label of the ``InsertionSort`` algorithm.
38 |     public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
   |                       |- warning: static property 'insertionSort' 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 'insertionSort' 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
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' 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
   :
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
41 |     public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
   |                       |- warning: static property 'mergeSort' 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 'mergeSort' 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
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' 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
   :
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
44 |     public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
   |                       |- warning: static property 'quicksort' 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 'quicksort' 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 | }
46 |
[14/17] Compiling SortStateUniversity Comparison.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | /// Enumeration of all sorting algorithms that are built into the library.
 9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
   |             `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 |     /// A simple sorting algorithm that sorts its elements one at a time.
11 |     ///
   :
26 |
27 |     /// A collection of all values in this type, in alphabetical order (in American English).
28 |     public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
   |                       |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'allCasesInAlphabeticalOrder' 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
29 |
30 |     // MARK: Public Instance Interface
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' 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
   :
36 |
37 |     /// The label of the ``InsertionSort`` algorithm.
38 |     public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
   |                       |- warning: static property 'insertionSort' 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 'insertionSort' 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
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' 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
   :
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
41 |     public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
   |                       |- warning: static property 'mergeSort' 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 'mergeSort' 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
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' 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
   :
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
44 |     public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
   |                       |- warning: static property 'quicksort' 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 'quicksort' 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 | }
46 |
[15/17] 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,
[16/17] Compiling SortStateUniversity Array+SortStateUniversity.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,
[17/17] Compiling SortStateUniversity MergeSort.swift
/Users/admin/builder/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' 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
   :
39 |
40 |     /// The label of the ``MergeSort`` algorithm.
41 |     public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
   |                       |- warning: static property 'mergeSort' 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 'mergeSort' 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
42 |
43 |     /// The label of the ``Quicksort`` algorithm.
Build complete! (12.89s)
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/AbstractSortingAlgorithmTest.swift",
        "Tests/BuiltInSortingAlgorithmTypeTests.swift",
        "Tests/ComparisonTests.swift",
        "Tests/ComplexityTests.swift",
        "Tests/Insertion Sort/InsertionSortTests.swift",
        "Tests/Merge Sort/MergeSortTests.swift",
        "Tests/Quicksort/QuicksortTests.swift",
        "Tests/SortingAlgorithmStepTests.swift",
        "Utilities/DefaultSortingAlgorithmInputFactory.swift",
        "Utilities/SortingAlgorithmInputCase.swift",
        "Utilities/SortingAlgorithmInputFactory.swift"
      ],
      "target_dependencies" : [
        "SortStateUniversity"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SortStateUniversity",
      "module_type" : "SwiftTarget",
      "name" : "SortStateUniversity",
      "path" : "Sources/SortStateUniversity",
      "product_memberships" : [
        "SortStateUniversity"
      ],
      "sources" : [
        "BuiltInSortingAlgorithmType.swift",
        "Comparison.swift",
        "Complexity.swift",
        "Extensions/Standard Library/Array+SortStateUniversity.swift",
        "Extensions/Standard Library/Double+SortStateUniversity.swift",
        "Extensions/Standard Library/Int+SortStateUniversity.swift",
        "Insertion Sort/InsertionSort.swift",
        "Merge Sort/MergeSort+Merge.swift",
        "Merge Sort/MergeSort.swift",
        "Quicksort/Quicksort+Partition.swift",
        "Quicksort/Quicksort.swift",
        "SortingAlgorithm.swift",
        "SortingAlgorithmLabel.swift",
        "SortingAlgorithmStep.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.