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 Linux on 4 Nov 2024 16:46:04 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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.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 /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/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
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kylehughes/sort-state-university.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/12] Compiling SortStateUniversity SortingAlgorithm.swift
[4/13] Compiling SortStateUniversity SortingAlgorithmStep.swift
[5/13] Compiling SortStateUniversity MergeSort.swift
/host/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 SortingAlgorithmLabel.swift
/host/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,
/host/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.
/host/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 |
[7/13] Compiling SortStateUniversity Array+SortStateUniversity.swift
[8/13] Compiling SortStateUniversity Int+SortStateUniversity.swift
[9/13] Compiling SortStateUniversity Comparison.swift
/host/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,
[10/13] Compiling SortStateUniversity Complexity.swift
/host/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,
[11/13] Emitting module SortStateUniversity
/host/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,
/host/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,
/host/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.
/host/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
/host/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 MergeSort+Merge.swift
Build complete! (8.65s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "sort-state-university",
  "name" : "sort-state-university",
  "path" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.