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 Regex, reference 1.2.0 (166728), with Swift 6.1 for Linux on 25 Apr 2025 07:42:50 UTC.

Swift 6 data race errors: 10

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crossroadlabs/Regex.git
Reference: 1.2.0
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/crossroadlabs/Regex
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 1667287 Updated changelog. Prepared 1.2.0 release
Cloned https://github.com/crossroadlabs/Regex.git
Revision (git rev-parse @):
166728756082a9cac6e4aed3ebbce8e41cb3a945
SUCCESS checkout https://github.com/crossroadlabs/Regex.git at 1.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/crossroadlabs/Regex.git
https://github.com/crossroadlabs/Regex.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Regex",
  "name" : "Regex",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Regex",
      "targets" : [
        "Regex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RegexTests",
      "module_type" : "SwiftTarget",
      "name" : "RegexTests",
      "path" : "Tests/RegexTests",
      "sources" : [
        "RegexTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Regex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Regex",
      "module_type" : "SwiftTarget",
      "name" : "Regex",
      "path" : "Sources/Regex",
      "product_memberships" : [
        "Regex"
      ],
      "sources" : [
        "GroupRangeUtils.swift",
        "Match.swift",
        "MatchSequence.swift",
        "PlatformTypes.swift",
        "Regex.swift",
        "RegexOptions.swift",
        "String+Regex.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling Regex String+Regex.swift
[4/11] Compiling Regex Utils.swift
[5/11] Compiling Regex RegexOptions.swift
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:42:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 40 |      * Match letters in the pattern independent of case.
 41 |      */
 42 |     public static let caseInsensitive = RegexOptions(rawValue: 1)
    |                       |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'caseInsensitive' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:47:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 45 |      * Ignore whitespace and #-prefixed comments in the pattern.
 46 |      */
 47 |     public static let allowCommentsAndWhitespace = RegexOptions(rawValue: 2)
    |                       |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'allowCommentsAndWhitespace' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 48 |
 49 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:52:23: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 50 |      * Treat the entire pattern as a literal string.
 51 |      */
 52 |     public static let ignoreMetacharacters = RegexOptions(rawValue: 4)
    |                       |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignoreMetacharacters' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:57:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 55 |      * Allow . to match any character, including line separators.
 56 |      */
 57 |     public static let dotMatchesLineSeparators = RegexOptions(rawValue: 8)
    |                       |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'dotMatchesLineSeparators' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:62:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 60 |      * Allow ^ and $ to match the start and end of lines.
 61 |      */
 62 |     public static let anchorsMatchLines = RegexOptions(rawValue: 16)
    |                       |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'anchorsMatchLines' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:67:23: warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 65 |      * Treat only \n as a line separator (otherwise, all standard line separators are used).
 66 |      */
 67 |     public static let useUnixLineSeparators = RegexOptions(rawValue: 32)
    |                       |- warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'useUnixLineSeparators' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |
 69 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:72:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 70 |      * Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
 71 |      */
 72 |     public static let useUnicodeWordBoundaries = RegexOptions(rawValue: 64)
    |                       |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'useUnicodeWordBoundaries' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 76 |      * Options used by default in Regex
 77 |      */
 78 |     public static let `default`:RegexOptions = [caseInsensitive]
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 | }
 80 |
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:84:1: warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 82 |  * Internal implementation that can't be hidden. Skip it.
 83 |  */
 84 | extension NSRegularExpression.Options : Hashable {
    | |- warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 85 | 	/**
 86 |      * Internal implementation that can't be hidden. Skip it.
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:109:13: warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
107 | }
108 |
109 | private let nsToRegexOptionsMap:[NSRegularExpression.Options: RegexOptions] = [
    |             |- warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'nsToRegexOptionsMap' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |     .caseInsensitive:.caseInsensitive,
111 |     .allowCommentsAndWhitespace:.allowCommentsAndWhitespace,
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:119:13: warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
117 | ]
118 |
119 | private let regexToNSOptionsMap:[RegexOptions: NSRegularExpression.Options] = nsToRegexOptionsMap.reduce([:]) { (dict, kv) in
    |             |- warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'regexToNSOptionsMap' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |     var dict = dict
121 |     dict[kv.value] = kv.key
[6/11] Compiling Regex Regex.swift
[7/11] Compiling Regex PlatformTypes.swift
[8/11] Compiling Regex MatchSequence.swift
[9/11] Compiling Regex GroupRangeUtils.swift
[10/11] Emitting module Regex
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:42:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 40 |      * Match letters in the pattern independent of case.
 41 |      */
 42 |     public static let caseInsensitive = RegexOptions(rawValue: 1)
    |                       |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'caseInsensitive' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:47:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 45 |      * Ignore whitespace and #-prefixed comments in the pattern.
 46 |      */
 47 |     public static let allowCommentsAndWhitespace = RegexOptions(rawValue: 2)
    |                       |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'allowCommentsAndWhitespace' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 48 |
 49 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:52:23: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 50 |      * Treat the entire pattern as a literal string.
 51 |      */
 52 |     public static let ignoreMetacharacters = RegexOptions(rawValue: 4)
    |                       |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignoreMetacharacters' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:57:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 55 |      * Allow . to match any character, including line separators.
 56 |      */
 57 |     public static let dotMatchesLineSeparators = RegexOptions(rawValue: 8)
    |                       |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'dotMatchesLineSeparators' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:62:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 60 |      * Allow ^ and $ to match the start and end of lines.
 61 |      */
 62 |     public static let anchorsMatchLines = RegexOptions(rawValue: 16)
    |                       |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'anchorsMatchLines' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:67:23: warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 65 |      * Treat only \n as a line separator (otherwise, all standard line separators are used).
 66 |      */
 67 |     public static let useUnixLineSeparators = RegexOptions(rawValue: 32)
    |                       |- warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'useUnixLineSeparators' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |
 69 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:72:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 70 |      * Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
 71 |      */
 72 |     public static let useUnicodeWordBoundaries = RegexOptions(rawValue: 64)
    |                       |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'useUnicodeWordBoundaries' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 76 |      * Options used by default in Regex
 77 |      */
 78 |     public static let `default`:RegexOptions = [caseInsensitive]
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 | }
 80 |
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:84:1: warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 82 |  * Internal implementation that can't be hidden. Skip it.
 83 |  */
 84 | extension NSRegularExpression.Options : Hashable {
    | |- warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 85 | 	/**
 86 |      * Internal implementation that can't be hidden. Skip it.
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:109:13: warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
107 | }
108 |
109 | private let nsToRegexOptionsMap:[NSRegularExpression.Options: RegexOptions] = [
    |             |- warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'nsToRegexOptionsMap' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |     .caseInsensitive:.caseInsensitive,
111 |     .allowCommentsAndWhitespace:.allowCommentsAndWhitespace,
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:119:13: warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
117 | ]
118 |
119 | private let regexToNSOptionsMap:[RegexOptions: NSRegularExpression.Options] = nsToRegexOptionsMap.reduce([:]) { (dict, kv) in
    |             |- warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'regexToNSOptionsMap' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |     var dict = dict
121 |     dict[kv.value] = kv.key
[11/11] Compiling Regex Match.swift
Build complete! (6.63s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Regex",
  "name" : "Regex",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Regex",
      "targets" : [
        "Regex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RegexTests",
      "module_type" : "SwiftTarget",
      "name" : "RegexTests",
      "path" : "Tests/RegexTests",
      "sources" : [
        "RegexTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Regex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Regex",
      "module_type" : "SwiftTarget",
      "name" : "Regex",
      "path" : "Sources/Regex",
      "product_memberships" : [
        "Regex"
      ],
      "sources" : [
        "GroupRangeUtils.swift",
        "Match.swift",
        "MatchSequence.swift",
        "PlatformTypes.swift",
        "Regex.swift",
        "RegexOptions.swift",
        "String+Regex.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.