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 PatchouliCore, reference main (466d8b), with Swift 6.0 for Linux on 16 Sep 2024 07:51:12 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexhunsley/patchouli-core.git
Reference: main
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/alexhunsley/patchouli-core
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 466d8bf Update README.md
Cloned https://github.com/alexhunsley/patchouli-core.git
Revision (git rev-parse @):
466d8bf714654716727c5543853f19ebc73ba532
SUCCESS checkout https://github.com/alexhunsley/patchouli-core.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alexhunsley/patchouli-core.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
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/11] Compiling PatchouliCore StringPatchType.swift
/host/spi-builder-workspace/Sources/StringPatch/StringPatchType.swift:11:23: warning: static property 'emptyContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |     public typealias AddressType = String
10 |
11 |     public static var emptyContent = ""
   |                       |- warning: static property 'emptyContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'emptyContent' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'emptyContent' 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
12 |
13 |     /// The Protocol Witness used by the reducer
/host/spi-builder-workspace/Sources/StringPatch/StringPatchType.swift:14:23: warning: static property 'patcher' is not concurrency-safe because non-'Sendable' type 'Patchable<StringPatchType>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     /// The Protocol Witness used by the reducer
14 |     static public let patcher = Patchable<StringPatchType>(
   |                       |- warning: static property 'patcher' is not concurrency-safe because non-'Sendable' type 'Patchable<StringPatchType>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'patcher' 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
15 |         added: { (container: String, content: String, address: String) -> String in
16 |             // We interpret 'add' in string matching to mean "place a copy of content
/host/spi-builder-workspace/Sources/Patchable/Patchable.swift:9:15: note: consider making generic struct 'Patchable' conform to the 'Sendable' protocol
 7 | /// Protocol witness instantiations of this type should lose the
 8 | /// gerund style and be named e.g. 'patcher'.
 9 | public struct Patchable<T: PatchType> {
   |               `- note: consider making generic struct 'Patchable' conform to the 'Sendable' protocol
10 |     public typealias C = T.ContentType
11 |     public typealias A = T.AddressType
[4/12] Compiling PatchouliCore DSL+StringPatch.swift
[5/12] Compiling PatchouliCore PatchouliError.swift
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.AddressType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.AddressType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
11 | }
12 |
[6/12] Compiling PatchouliCore PatchedContent+Reduce.swift
[7/12] Compiling PatchouliCore PatchType.swift
[8/12] Compiling PatchouliCore AddressedPatchItemsBuilder.swift
[9/12] Compiling PatchouliCore DSL.swift
[10/12] Emitting module PatchouliCore
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.AddressType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.AddressType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/PatchouliError.swift:10:10: warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
 8 |     case contentWasNil
 9 |
10 |     case testFailed(T.ContentType, T.AddressType, T.ContentType)
   |          `- warning: associated value 'testFailed' of 'Sendable'-conforming generic enum 'PatchouliError' has non-sendable type 'T.ContentType'; this is an error in the Swift 6 language mode
11 | }
12 |
/host/spi-builder-workspace/Sources/StringPatch/StringPatchType.swift:11:23: warning: static property 'emptyContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |     public typealias AddressType = String
10 |
11 |     public static var emptyContent = ""
   |                       |- warning: static property 'emptyContent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'emptyContent' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'emptyContent' 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
12 |
13 |     /// The Protocol Witness used by the reducer
/host/spi-builder-workspace/Sources/StringPatch/StringPatchType.swift:14:23: warning: static property 'patcher' is not concurrency-safe because non-'Sendable' type 'Patchable<StringPatchType>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |     /// The Protocol Witness used by the reducer
14 |     static public let patcher = Patchable<StringPatchType>(
   |                       |- warning: static property 'patcher' is not concurrency-safe because non-'Sendable' type 'Patchable<StringPatchType>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'patcher' 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
15 |         added: { (container: String, content: String, address: String) -> String in
16 |             // We interpret 'add' in string matching to mean "place a copy of content
/host/spi-builder-workspace/Sources/Patchable/Patchable.swift:9:15: note: consider making generic struct 'Patchable' conform to the 'Sendable' protocol
 7 | /// Protocol witness instantiations of this type should lose the
 8 | /// gerund style and be named e.g. 'patcher'.
 9 | public struct Patchable<T: PatchType> {
   |               `- note: consider making generic struct 'Patchable' conform to the 'Sendable' protocol
10 |     public typealias C = T.ContentType
11 |     public typealias A = T.AddressType
[11/12] Compiling PatchouliCore Patchable.swift
[12/12] Compiling PatchouliCore String+Util.swift
Build complete! (14.95s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PatchouliCore",
  "name" : "PatchouliCore",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PatchouliCore",
      "targets" : [
        "PatchouliCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PatchouliCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliCoreTests",
      "path" : "Tests",
      "sources" : [
        "PatchouliCoreTests.swift",
        "PatchouliStringTests.swift",
        "TestHelpers.swift"
      ],
      "target_dependencies" : [
        "PatchouliCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PatchouliCore",
      "module_type" : "SwiftTarget",
      "name" : "PatchouliCore",
      "path" : "Sources",
      "product_memberships" : [
        "PatchouliCore"
      ],
      "sources" : [
        "AddressedPatchItemsBuilder.swift",
        "DSL.swift",
        "PatchType.swift",
        "Patchable/Patchable.swift",
        "PatchedContent+Reduce.swift",
        "PatchouliError.swift",
        "StringPatch/DSL+StringPatch.swift",
        "StringPatch/StringPatchType.swift",
        "Util/String+Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.