The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of SwiftRegex, reference main (60fde2), with Swift 6.0 for macOS (SPM) on 24 Feb 2025 19:39:27 UTC.

Swift 6 data race errors: 8

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
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 60fde2e Missing count parameter.
Cloned https://github.com/johnno1962/SwiftRegex5.git
Revision (git rev-parse @):
60fde2e2e3b691abb35ba4b67e3f0adc82f6d1f5
SUCCESS checkout https://github.com/johnno1962/SwiftRegex5.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftregex5",
      "name": "SwiftRegex",
      "url": "https://github.com/johnno1962/SwiftRegex5.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftRegex5",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/johnno1962/SwiftRegex5.git
[1/209] Fetching swiftregex5
Fetched https://github.com/johnno1962/SwiftRegex5.git from cache (0.94s)
Creating working copy for https://github.com/johnno1962/SwiftRegex5.git
Working copy of https://github.com/johnno1962/SwiftRegex5.git resolved at main (60fde2e)
warning: '.resolve-product-dependencies': dependency 'swiftregex5' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
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.2.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-5BDAB9E9C0126B9D.txt
[4/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: 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
 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: annotate 'unmatchedGroup' 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
 33 |
 34 |     let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:287: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
285 | public typealias RegexImpl = TupleRegex
286 |
287 | 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: annotate 'regexCache' 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
288 | private var cacheLock = NSLock()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:288: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
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | 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: annotate 'cacheLock' 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
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[5/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: 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
 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: annotate 'unmatchedGroup' 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
 33 |
 34 |     let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:287: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
285 | public typealias RegexImpl = TupleRegex
286 |
287 | 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: annotate 'regexCache' 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
288 | private var cacheLock = NSLock()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:288: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
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | 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: annotate 'cacheLock' 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
289 |
290 | 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: 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
 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: annotate 'unmatchedGroup' 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
 33 |
 34 |     let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:287: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
285 | public typealias RegexImpl = TupleRegex
286 |
287 | 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: annotate 'regexCache' 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
288 | private var cacheLock = NSLock()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:288: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
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | 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: annotate 'cacheLock' 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
289 |
290 | 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: 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
 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: annotate 'unmatchedGroup' 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
 33 |
 34 |     let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:287: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
285 | public typealias RegexImpl = TupleRegex
286 |
287 | 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: annotate 'regexCache' 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
288 | private var cacheLock = NSLock()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:288: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
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | 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: annotate 'cacheLock' 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
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
Build complete! (5.69s)
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.