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 RegexMatcher with Swift 6.0 (beta) for Linux (81d8ba) on 10 Jul 2024 20:46:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.46.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hectr/swift-regex.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/hectr/swift-regex
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 81d8ba6 Release 1.2.0
Cloned https://github.com/hectr/swift-regex.git
Revision (git rev-parse @):
81d8ba65f57de1ee53eb64d4a49d164da1a4718d
SUCCESS checkout https://github.com/hectr/swift-regex.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/hectr/swift-regex.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:939bcf47aaf06a33919ac1ec1df3a4704fc37493bc970719b13df1c85d27e20a
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/7] Compiling RegexMatcher String+NSRange.swift
[4/7] Compiling RegexMatcher Regex.swift
/host/spi-builder-workspace/Sources/RegexMatcher/Regex.swift:27:16: warning: static property 'DefaultOptions' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression.Options' may have shared mutable state; this is an error in the Swift 6 language mode
25 | public struct Regex: Equatable {
26 |
27 |     static let DefaultOptions = NSRegularExpression.Options(rawValue: 0)
   |                `- warning: static property 'DefaultOptions' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     static let DefaultMatchingOptions = NSRegularExpression.MatchingOptions(rawValue: 0)
29 |
Foundation.NSRegularExpression:2:19: note: struct 'Options' does not conform to the 'Sendable' protocol
 1 | extension NSRegularExpression {
 2 |     public struct Options : OptionSet {
   |                   `- note: struct 'Options' does not conform to the 'Sendable' protocol
 3 |         public let rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/RegexMatcher/Regex.swift:21:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
19 | // THE SOFTWARE.
20 |
21 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
22 |
23 | // Wrapper for `NSRegularExpression`.
   :
25 | public struct Regex: Equatable {
26 |
27 |     static let DefaultOptions = NSRegularExpression.Options(rawValue: 0)
   |                |- note: annotate 'DefaultOptions' 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
28 |     static let DefaultMatchingOptions = NSRegularExpression.MatchingOptions(rawValue: 0)
29 |
/host/spi-builder-workspace/Sources/RegexMatcher/Regex.swift:28:16: warning: static property 'DefaultMatchingOptions' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression.MatchingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |     static let DefaultOptions = NSRegularExpression.Options(rawValue: 0)
28 |     static let DefaultMatchingOptions = NSRegularExpression.MatchingOptions(rawValue: 0)
   |                |- warning: static property 'DefaultMatchingOptions' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression.MatchingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'DefaultMatchingOptions' 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
29 |
30 |     public let pattern: String
Foundation.NSRegularExpression:2:19: note: struct 'MatchingOptions' does not conform to the 'Sendable' protocol
 1 | extension NSRegularExpression {
 2 |     public struct MatchingOptions : OptionSet {
   |                   `- note: struct 'MatchingOptions' does not conform to the 'Sendable' protocol
 3 |         public let rawValue: UInt
 4 |         public init(rawValue: UInt)
[5/7] Compiling RegexMatcher Match.swift
[6/7] Compiling RegexMatcher Regex+ExpressibleByStringLiteral.swift
[7/7] Emitting module RegexMatcher
/host/spi-builder-workspace/Sources/RegexMatcher/Regex.swift:27:16: warning: static property 'DefaultOptions' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression.Options' may have shared mutable state; this is an error in the Swift 6 language mode
25 | public struct Regex: Equatable {
26 |
27 |     static let DefaultOptions = NSRegularExpression.Options(rawValue: 0)
   |                `- warning: static property 'DefaultOptions' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression.Options' may have shared mutable state; this is an error in the Swift 6 language mode
28 |     static let DefaultMatchingOptions = NSRegularExpression.MatchingOptions(rawValue: 0)
29 |
Foundation.NSRegularExpression:2:19: note: struct 'Options' does not conform to the 'Sendable' protocol
 1 | extension NSRegularExpression {
 2 |     public struct Options : OptionSet {
   |                   `- note: struct 'Options' does not conform to the 'Sendable' protocol
 3 |         public let rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/RegexMatcher/Regex.swift:21:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
19 | // THE SOFTWARE.
20 |
21 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
22 |
23 | // Wrapper for `NSRegularExpression`.
   :
25 | public struct Regex: Equatable {
26 |
27 |     static let DefaultOptions = NSRegularExpression.Options(rawValue: 0)
   |                |- note: annotate 'DefaultOptions' 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
28 |     static let DefaultMatchingOptions = NSRegularExpression.MatchingOptions(rawValue: 0)
29 |
/host/spi-builder-workspace/Sources/RegexMatcher/Regex.swift:28:16: warning: static property 'DefaultMatchingOptions' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression.MatchingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |     static let DefaultOptions = NSRegularExpression.Options(rawValue: 0)
28 |     static let DefaultMatchingOptions = NSRegularExpression.MatchingOptions(rawValue: 0)
   |                |- warning: static property 'DefaultMatchingOptions' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression.MatchingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'DefaultMatchingOptions' 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
29 |
30 |     public let pattern: String
Foundation.NSRegularExpression:2:19: note: struct 'MatchingOptions' does not conform to the 'Sendable' protocol
 1 | extension NSRegularExpression {
 2 |     public struct MatchingOptions : OptionSet {
   |                   `- note: struct 'MatchingOptions' does not conform to the 'Sendable' protocol
 3 |         public let rawValue: UInt
 4 |         public init(rawValue: UInt)
Build complete! (8.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RegexMatcher",
  "name" : "RegexMatcher",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RegexMatcher",
      "targets" : [
        "RegexMatcher"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RegexMatcherTests",
      "module_type" : "SwiftTarget",
      "name" : "RegexMatcherTests",
      "path" : "Tests/RegexMatcherTests",
      "sources" : [
        "MatchTests.swift",
        "RegexTests.swift",
        "StringTests.swift"
      ],
      "target_dependencies" : [
        "RegexMatcher"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RegexMatcher",
      "module_type" : "SwiftTarget",
      "name" : "RegexMatcher",
      "path" : "Sources/RegexMatcher",
      "product_memberships" : [
        "RegexMatcher"
      ],
      "sources" : [
        "Match.swift",
        "Regex+ExpressibleByStringLiteral.swift",
        "Regex.swift",
        "String+NSRange.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:2616150e65f8b5d336ef2ff8828ee78d83c0c72abe57c7be9f4d8e5b61afb28f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Done.