The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftRegex, reference main (84c3fa), with Swift 6.1 for macOS (SPM) on 18 Feb 2026 23:27:49 UTC.

Swift 6 data race errors: 8

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/SwiftRegex5.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/johnno1962/SwiftRegex5
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 84c3fa9 Allow optional chaining.
Cloned https://github.com/johnno1962/SwiftRegex5.git
Revision (git rev-parse @):
84c3fa9a180b2c02e65e9a61287445b0482a5efe
SUCCESS checkout https://github.com/johnno1962/SwiftRegex5.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/johnno1962/SwiftRegex5.git
https://github.com/johnno1962/SwiftRegex5.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftRegex",
  "name" : "SwiftRegex",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftRegex",
      "targets" : [
        "SwiftRegex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftRegexD",
      "targets" : [
        "SwiftRegexD"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRegexTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRegexTests",
      "path" : "SwiftRegex5Tests",
      "sources" : [
        "SwiftRegex5Tests.swift"
      ],
      "target_dependencies" : [
        "SwiftRegex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRegexD",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRegexD",
      "path" : "Sources/SwiftRegexD",
      "product_memberships" : [
        "SwiftRegexD"
      ],
      "sources" : [
        "TupleRegex.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftRegex",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRegex",
      "path" : "Sources/SwiftRegex",
      "product_memberships" : [
        "SwiftRegex"
      ],
      "sources" : [
        "TupleRegex.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/7] Compiling SwiftRegex TupleRegex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 | public struct RegexOptioned: RegexLiteral, Hashable {
 30 |
 31 |     public static var defaultOptions: NSRegularExpression.Options = []
    |                       |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     public static var unmatchedGroup = ""
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 |     public static var defaultOptions: NSRegularExpression.Options = []
 32 |     public static var unmatchedGroup = ""
    |                       |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:288:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 | public typealias RegexImpl = TupleRegex
287 |
288 | private var regexCache = [RegexOptioned: NSRegularExpression]()
    |             |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 | private var cacheLock = NSLock()
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:289:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |
288 | private var regexCache = [RegexOptioned: NSRegularExpression]()
289 | private var cacheLock = NSLock()
    |             |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 |
291 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[5/7] Emitting module SwiftRegex
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 | public struct RegexOptioned: RegexLiteral, Hashable {
 30 |
 31 |     public static var defaultOptions: NSRegularExpression.Options = []
    |                       |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     public static var unmatchedGroup = ""
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 |     public static var defaultOptions: NSRegularExpression.Options = []
 32 |     public static var unmatchedGroup = ""
    |                       |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:288:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 | public typealias RegexImpl = TupleRegex
287 |
288 | private var regexCache = [RegexOptioned: NSRegularExpression]()
    |             |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 | private var cacheLock = NSLock()
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:289:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |
288 | private var regexCache = [RegexOptioned: NSRegularExpression]()
289 | private var cacheLock = NSLock()
    |             |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 |
291 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[6/7] Emitting module SwiftRegexD
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 | public struct RegexOptioned: RegexLiteral, Hashable {
 30 |
 31 |     public static var defaultOptions: NSRegularExpression.Options = []
    |                       |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     public static var unmatchedGroup = ""
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 |     public static var defaultOptions: NSRegularExpression.Options = []
 32 |     public static var unmatchedGroup = ""
    |                       |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:288:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 | public typealias RegexImpl = TupleRegex
287 |
288 | private var regexCache = [RegexOptioned: NSRegularExpression]()
    |             |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 | private var cacheLock = NSLock()
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:289:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |
288 | private var regexCache = [RegexOptioned: NSRegularExpression]()
289 | private var cacheLock = NSLock()
    |             |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 |
291 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[7/7] Compiling SwiftRegexD TupleRegex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 29 | public struct RegexOptioned: RegexLiteral, Hashable {
 30 |
 31 |     public static var defaultOptions: NSRegularExpression.Options = []
    |                       |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     public static var unmatchedGroup = ""
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 |     public static var defaultOptions: NSRegularExpression.Options = []
 32 |     public static var unmatchedGroup = ""
    |                       |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:288:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 | public typealias RegexImpl = TupleRegex
287 |
288 | private var regexCache = [RegexOptioned: NSRegularExpression]()
    |             |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 | private var cacheLock = NSLock()
290 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:289:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
287 |
288 | private var regexCache = [RegexOptioned: NSRegularExpression]()
289 | private var cacheLock = NSLock()
    |             |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
290 |
291 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
Build complete! (3.85s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftRegex",
  "name" : "SwiftRegex",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftRegex",
      "targets" : [
        "SwiftRegex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftRegexD",
      "targets" : [
        "SwiftRegexD"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRegexTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRegexTests",
      "path" : "SwiftRegex5Tests",
      "sources" : [
        "SwiftRegex5Tests.swift"
      ],
      "target_dependencies" : [
        "SwiftRegex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRegexD",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRegexD",
      "path" : "Sources/SwiftRegexD",
      "product_memberships" : [
        "SwiftRegexD"
      ],
      "sources" : [
        "TupleRegex.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftRegex",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRegex",
      "path" : "Sources/SwiftRegex",
      "product_memberships" : [
        "SwiftRegex"
      ],
      "sources" : [
        "TupleRegex.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.