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 6.1.3 (60fde2), with Swift 6.1 for Android on 30 May 2025 10:33:56 UTC.

Swift 6 data race errors: 8

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/SwiftRegex5.git
Reference: 6.1.3
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/johnno1962/SwiftRegex5
 * tag               6.1.3      -> FETCH_HEAD
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 6.1.3
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/johnno1962/SwiftRegex5.git
https://github.com/johnno1962/SwiftRegex5.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftRegex",
  "name" : "SwiftRegex",
  "path" : "/host/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 ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Emitting module SwiftRegexD
/host/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 |
/host/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
/host/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: 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
288 | private var cacheLock = NSLock()
289 |
/host/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: 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
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[5/7] Compiling SwiftRegexD TupleRegex.swift
/host/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 |
/host/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
/host/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: 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
288 | private var cacheLock = NSLock()
289 |
/host/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: 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
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[6/8] Emitting module SwiftRegex
/host/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 |
/host/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
/host/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: 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
288 | private var cacheLock = NSLock()
289 |
/host/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: 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
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[7/8] Compiling SwiftRegex TupleRegex.swift
/host/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 |
/host/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
/host/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: 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
288 | private var cacheLock = NSLock()
289 |
/host/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: 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
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
Build complete! (10.99s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftRegex",
  "name" : "SwiftRegex",
  "path" : "/host/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"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.