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 FlexibleDiff, reference 0.0.9 (a51327), with Swift 6.0 for Linux on 1 Nov 2024 13:04:30 UTC.

Swift 6 data race errors: 2

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/RACCommunity/FlexibleDiff.git
Reference: 0.0.9
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/RACCommunity/FlexibleDiff
 * tag               0.0.9      -> FETCH_HEAD
HEAD is now at a513271 Bumping minimum deployment target to iOS 9.0 (#18)
Submodule path 'Carthage/Checkouts/Nimble': checked out '43304bf2b1579fd555f2fdd51742771c1e4f2b98'
Submodule path 'Carthage/Checkouts/Quick': checked out '94df9b449508344667e5afc7e80f8bcbff1e4c37'
Submodule path 'Carthage/Checkouts/Quick/Externals/Nimble': checked out '43304bf2b1579fd555f2fdd51742771c1e4f2b98'
Submodule path 'Carthage/Checkouts/xcconfigs': checked out 'd0f8992afad45262cfe3a3cf512e7127fdcf296c'
Submodule 'Carthage/Checkouts/Nimble' (https://github.com/Quick/Nimble.git) registered for path 'Carthage/Checkouts/Nimble'
Submodule 'Carthage/Checkouts/Quick' (https://github.com/Quick/Quick.git) registered for path 'Carthage/Checkouts/Quick'
Submodule 'Carthage/Checkouts/xcconfigs' (https://github.com/jspahrsummers/xcconfigs.git) registered for path 'Carthage/Checkouts/xcconfigs'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Nimble'...
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Quick'...
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/xcconfigs'...
Submodule 'Externals/Nimble' (https://github.com/Quick/Nimble.git) registered for path 'Carthage/Checkouts/Quick/Externals/Nimble'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Quick/Externals/Nimble'...
Cloned https://github.com/RACCommunity/FlexibleDiff.git
Revision (git rev-parse @):
a5132719a812111ef7eaea647a659a351b15abf4
SUCCESS checkout https://github.com/RACCommunity/FlexibleDiff.git at 0.0.9
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/RACCommunity/FlexibleDiff.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
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/Quick/Quick.git
[1/14723] Fetching quick
[14724/33941] Fetching quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (1.94s)
Fetched https://github.com/Quick/Nimble.git from cache (1.96s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (0.47s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.44s)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling FlexibleDiff SectionedChangeset.swift
[4/6] Compiling FlexibleDiff Snapshot.swift
[5/6] Compiling FlexibleDiff Changeset.swift
/host/spi-builder-workspace/FlexibleDiff/Changeset.swift:440:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Changeset.ObjectDiffStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
428 | 	/// The comparison strategies used by the collection diffing operators on collections
429 | 	/// that contain `Hashable` objects.
430 | 	public struct ObjectDiffStrategy {
    |                `- note: consider making struct 'ObjectDiffStrategy' conform to the 'Sendable' protocol
431 | 		fileprivate enum Kind {
432 | 			case identity
    :
438 |
439 | 		/// Compare the elements by their value equality.
440 | 		public static let value = ObjectDiffStrategy(kind: .value)
    |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Changeset.ObjectDiffStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'value' 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
441 |
442 | 		fileprivate let kind: Kind
/host/spi-builder-workspace/FlexibleDiff/Changeset.swift:437:21: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Changeset.ObjectDiffStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
428 | 	/// The comparison strategies used by the collection diffing operators on collections
429 | 	/// that contain `Hashable` objects.
430 | 	public struct ObjectDiffStrategy {
    |                `- note: consider making struct 'ObjectDiffStrategy' conform to the 'Sendable' protocol
431 | 		fileprivate enum Kind {
432 | 			case identity
    :
435 |
436 | 		/// Compare the elements by their object identity.
437 | 		public static let identity = ObjectDiffStrategy(kind: .identity)
    |                     |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Changeset.ObjectDiffStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'identity' 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
438 |
439 | 		/// Compare the elements by their value equality.
/host/spi-builder-workspace/FlexibleDiff/Changeset.swift:145:7: warning: variable 'oldIdentifiers' was never mutated; consider changing to 'let' constant
143 | 		var table: [Identifier: DiffEntry] = Dictionary(minimumCapacity: Int(current.count))
144 |
145 | 		var oldIdentifiers = ContiguousArray(previous.map(identifier))
    |       `- warning: variable 'oldIdentifiers' was never mutated; consider changing to 'let' constant
146 | 		var newIdentifiers = ContiguousArray(current.map(identifier))
147 |
/host/spi-builder-workspace/FlexibleDiff/Changeset.swift:146:7: warning: variable 'newIdentifiers' was never mutated; consider changing to 'let' constant
144 |
145 | 		var oldIdentifiers = ContiguousArray(previous.map(identifier))
146 | 		var newIdentifiers = ContiguousArray(current.map(identifier))
    |       `- warning: variable 'newIdentifiers' was never mutated; consider changing to 'let' constant
147 |
148 | 		var oldReferences: [DiffReference] = []
[6/6] Emitting module FlexibleDiff
/host/spi-builder-workspace/FlexibleDiff/Changeset.swift:440:21: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Changeset.ObjectDiffStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
428 | 	/// The comparison strategies used by the collection diffing operators on collections
429 | 	/// that contain `Hashable` objects.
430 | 	public struct ObjectDiffStrategy {
    |                `- note: consider making struct 'ObjectDiffStrategy' conform to the 'Sendable' protocol
431 | 		fileprivate enum Kind {
432 | 			case identity
    :
438 |
439 | 		/// Compare the elements by their value equality.
440 | 		public static let value = ObjectDiffStrategy(kind: .value)
    |                     |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Changeset.ObjectDiffStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'value' 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
441 |
442 | 		fileprivate let kind: Kind
/host/spi-builder-workspace/FlexibleDiff/Changeset.swift:437:21: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Changeset.ObjectDiffStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
428 | 	/// The comparison strategies used by the collection diffing operators on collections
429 | 	/// that contain `Hashable` objects.
430 | 	public struct ObjectDiffStrategy {
    |                `- note: consider making struct 'ObjectDiffStrategy' conform to the 'Sendable' protocol
431 | 		fileprivate enum Kind {
432 | 			case identity
    :
435 |
436 | 		/// Compare the elements by their object identity.
437 | 		public static let identity = ObjectDiffStrategy(kind: .identity)
    |                     |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Changeset.ObjectDiffStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'identity' 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
438 |
439 | 		/// Compare the elements by their value equality.
Build complete! (14.19s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "quick",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Quick.git"
    },
    {
      "identity" : "nimble",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "8.0.0",
            "upper_bound" : "9.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Nimble.git"
    }
  ],
  "manifest_display_name" : "FlexibleDiff",
  "name" : "FlexibleDiff",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FlexibleDiff",
      "targets" : [
        "FlexibleDiff"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "FlexibleDiffTests",
      "module_type" : "SwiftTarget",
      "name" : "FlexibleDiffTests",
      "path" : "FlexibleDiffTests",
      "product_dependencies" : [
        "Quick",
        "Nimble"
      ],
      "sources" : [
        "ChangesetSpec.swift",
        "Delta+NimbleMatcher.swift",
        "ReproducibilityTest.swift",
        "SectionedChangesetSpec.swift"
      ],
      "target_dependencies" : [
        "FlexibleDiff"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FlexibleDiff",
      "module_type" : "SwiftTarget",
      "name" : "FlexibleDiff",
      "path" : "FlexibleDiff",
      "product_memberships" : [
        "FlexibleDiff"
      ],
      "sources" : [
        "Changeset.swift",
        "SectionedChangeset.swift",
        "Snapshot.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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.