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 InAnyCase, reference v1.0.2 (ec6911), with Swift 6.0 for Linux on 28 Nov 2024 08:42:32 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ThatsJustCheesy/InAnyCase.git
Reference: v1.0.2
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/ThatsJustCheesy/InAnyCase
 * tag               v1.0.2     -> FETCH_HEAD
HEAD is now at ec6911c Cache compiled regex
Cloned https://github.com/ThatsJustCheesy/InAnyCase.git
Revision (git rev-parse @):
ec6911c8c8e5d6a97a27b254445b72590b31908d
SUCCESS checkout https://github.com/ThatsJustCheesy/InAnyCase.git at v1.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ThatsJustCheesy/InAnyCase.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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/sharplet/Regex.git
[1/1254] Fetching regex
Fetched https://github.com/sharplet/Regex.git from cache (1.19s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.1 (4.92s)
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/10] Compiling Regex ThreadLocal.swift
[5/10] Compiling Regex Regex.swift
[6/10] Compiling Regex MatchResult.swift
[7/10] Compiling Regex Foundation+Ranges.swift
[8/10] Compiling Regex String+ReplaceMatching.swift
[9/10] Emitting module Regex
[10/10] Compiling Regex Options.swift
[12/13] Compiling InAnyCase InAnyCase.swift
/host/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:49:24: warning: static property 'camelSplitRegex' is not concurrency-safe because non-'Sendable' type 'Regex' may have shared mutable state; this is an error in the Swift 6 language mode
 47 |     case space
 48 |
 49 |     private static let camelSplitRegex = Regex("(?<!\\p{Lu})(?=\\p{Lu})")
    |                        `- warning: static property 'camelSplitRegex' is not concurrency-safe because non-'Sendable' type 'Regex' may have shared mutable state; this is an error in the Swift 6 language mode
 50 |
 51 |     public func split(_ string: Substring) -> [Substring] {
/host/spi-builder-workspace/.build/checkouts/Regex/Source/Regex/Regex.swift:3:15: note: struct 'Regex' does not conform to the 'Sendable' protocol
  1 | import Foundation
  2 |
  3 | public struct Regex: CustomStringConvertible, CustomDebugStringConvertible {
    |               `- note: struct 'Regex' does not conform to the 'Sendable' protocol
  4 |   // MARK: Initialisation
  5 |
/host/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Regex'
  3 |
  4 | import Foundation
  5 | import Regex
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Regex'
  6 |
  7 | extension String {
    :
 47 |     case space
 48 |
 49 |     private static let camelSplitRegex = Regex("(?<!\\p{Lu})(?=\\p{Lu})")
    |                        |- note: annotate 'camelSplitRegex' 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
 50 |
 51 |     public func split(_ string: Substring) -> [Substring] {
/host/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:25:25: warning: tuple conversion from '(offset: Int, element: Substring)' to '(index: Int, word: Substring)' mismatches labels
 23 |             .reduce([Substring(self)]) { result, style in result.flatMap { style.split($0) } }
 24 |             .enumerated()
 25 |             .map(`case`.transform(pair:))
    |                         `- warning: tuple conversion from '(offset: Int, element: Substring)' to '(index: Int, word: Substring)' mismatches labels
 26 |             .joined(separator: toJoinStyle.joinSeparator)
 27 |     }
[13/13] Emitting module InAnyCase
/host/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:49:24: warning: static property 'camelSplitRegex' is not concurrency-safe because non-'Sendable' type 'Regex' may have shared mutable state; this is an error in the Swift 6 language mode
 47 |     case space
 48 |
 49 |     private static let camelSplitRegex = Regex("(?<!\\p{Lu})(?=\\p{Lu})")
    |                        `- warning: static property 'camelSplitRegex' is not concurrency-safe because non-'Sendable' type 'Regex' may have shared mutable state; this is an error in the Swift 6 language mode
 50 |
 51 |     public func split(_ string: Substring) -> [Substring] {
/host/spi-builder-workspace/.build/checkouts/Regex/Source/Regex/Regex.swift:3:15: note: struct 'Regex' does not conform to the 'Sendable' protocol
  1 | import Foundation
  2 |
  3 | public struct Regex: CustomStringConvertible, CustomDebugStringConvertible {
    |               `- note: struct 'Regex' does not conform to the 'Sendable' protocol
  4 |   // MARK: Initialisation
  5 |
/host/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Regex'
  3 |
  4 | import Foundation
  5 | import Regex
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Regex'
  6 |
  7 | extension String {
    :
 47 |     case space
 48 |
 49 |     private static let camelSplitRegex = Regex("(?<!\\p{Lu})(?=\\p{Lu})")
    |                        |- note: annotate 'camelSplitRegex' 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
 50 |
 51 |     public func split(_ string: Substring) -> [Substring] {
Build complete! (27.17s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sharplet/Regex.git"
    }
  ],
  "manifest_display_name" : "InAnyCase",
  "name" : "InAnyCase",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "InAnyCase",
      "targets" : [
        "InAnyCase"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InAnyCaseTests",
      "module_type" : "SwiftTarget",
      "name" : "InAnyCaseTests",
      "path" : "Tests/InAnyCaseTests",
      "sources" : [
        "InAnyCaseTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "InAnyCase"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InAnyCase",
      "module_type" : "SwiftTarget",
      "name" : "InAnyCase",
      "path" : "Sources/InAnyCase",
      "product_dependencies" : [
        "Regex"
      ],
      "product_memberships" : [
        "InAnyCase"
      ],
      "sources" : [
        "InAnyCase.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.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
Done.