This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for Linux.

Swift 6 data race errors: 1

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ThatsJustCheesy/InAnyCase.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/ThatsJustCheesy/InAnyCase.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" 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
Fetching https://github.com/sharplet/Regex.git
[1/1254] Fetching regex
Fetched https://github.com/sharplet/Regex.git from cache (0.60s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.0 (1.14s)
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/10] Compiling Regex Options.swift
[5/10] Compiling Regex MatchResult.swift
[6/10] Emitting module Regex
[7/10] Compiling Regex Foundation+Ranges.swift
[8/10] Compiling Regex String+ReplaceMatching.swift
[9/10] Compiling Regex Regex.swift
[10/10] Compiling Regex ThreadLocal.swift
[12/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] {
[13/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 |     }
Build complete! (16.39s)
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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.