Build Information
Successful build of Regex, reference master (d3ba02), with Swift 6.1 for Android on 27 May 2025 19:54:01 UTC.
Swift 6 data race errors: 5
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sharplet/Regex.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/sharplet/Regex
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d3ba024 Merge pull request #74 from sharplet/disambiguate-options
Cloned https://github.com/sharplet/Regex.git
Revision (git rev-parse @):
d3ba024b643b5e8ed4451617195f4fa180c88cb1
SUCCESS checkout https://github.com/sharplet/Regex.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/sharplet/Regex.git
https://github.com/sharplet/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"
]
}
}
],
"swift_languages_versions" : [
"4.2",
"5"
],
"targets" : [
{
"c99name" : "RegexTests",
"module_type" : "SwiftTarget",
"name" : "RegexTests",
"path" : "Tests/RegexTests",
"sources" : [
"Assertions.swift",
"CodableTests.swift",
"OptionsTests.swift",
"RegexTests.swift",
"StringReplacementTests.swift",
"Support.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Regex"
],
"type" : "test"
},
{
"c99name" : "Regex",
"module_type" : "SwiftTarget",
"name" : "Regex",
"path" : "Source/Regex",
"product_memberships" : [
"Regex"
],
"sources" : [
"Foundation+Ranges.swift",
"MatchResult.swift",
"Options.swift",
"Regex.swift",
"String+ReplaceMatching.swift",
"ThreadLocal.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Regex Options.swift
/host/spi-builder-workspace/Source/Regex/Options.swift:12:23: warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
10 | /// let a = Regex("a", options: .ignoreCase)
11 | /// a.allMatches(in: "aA").map { $0.matchedString } // ["a", "A"]
12 | public static let ignoreCase = Options(rawValue: 1)
| |- warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignoreCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Ignore any metacharacters in the pattern, treating every character as
/host/spi-builder-workspace/Source/Regex/Options.swift:21:23: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
19 | /// let parens = Regex("()", options: .ignoreMetacharacters)
20 | /// parens.matches("()") // true
21 | public static let ignoreMetacharacters = Options(rawValue: 1 << 1)
| |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'Regex.Options' 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
22 |
23 | /// By default, "^" matches the beginning of the string and "$" matches the
/host/spi-builder-workspace/Source/Regex/Options.swift:31:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
29 | /// let foo = Regex("^foo", options: .anchorsMatchLines)
30 | /// foo.allMatches(in: "foo\nbar\nfoo\n").count // 2
31 | public static let anchorsMatchLines = Options(rawValue: 1 << 2)
| |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'Regex.Options' 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
32 |
33 | /// Usually, "." matches all characters except newlines (\n). Using this
/host/spi-builder-workspace/Source/Regex/Options.swift:40:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
38 | /// let newLines = Regex("test.test", options: .dotMatchesLineSeparators)
39 | /// newLines.allMatches(in: "test\ntest").count // 1
40 | public static let dotMatchesLineSeparators = Options(rawValue: 1 << 3)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Regex.Options' 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
41 |
42 | /// Ignore whitespace and #-prefixed comments in the pattern.
/host/spi-builder-workspace/Source/Regex/Options.swift:48:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
46 | /// let newLines = Regex("test test # this is a regex", options: .allowCommentsAndWhitespace)
47 | /// newLines.allMatches(in: "testtest").count // 2
48 | public static let allowCommentsAndWhitespace = Options(rawValue: 1 << 4)
| |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'Regex.Options' 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
49 |
50 | // MARK: OptionSetType
[4/9] Compiling Regex Regex.swift
[5/9] Compiling Regex String+ReplaceMatching.swift
[6/9] Compiling Regex ThreadLocal.swift
[7/9] Compiling Regex Foundation+Ranges.swift
[8/9] Emitting module Regex
/host/spi-builder-workspace/Source/Regex/Options.swift:12:23: warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
10 | /// let a = Regex("a", options: .ignoreCase)
11 | /// a.allMatches(in: "aA").map { $0.matchedString } // ["a", "A"]
12 | public static let ignoreCase = Options(rawValue: 1)
| |- warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignoreCase' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// Ignore any metacharacters in the pattern, treating every character as
/host/spi-builder-workspace/Source/Regex/Options.swift:21:23: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
19 | /// let parens = Regex("()", options: .ignoreMetacharacters)
20 | /// parens.matches("()") // true
21 | public static let ignoreMetacharacters = Options(rawValue: 1 << 1)
| |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'Regex.Options' 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
22 |
23 | /// By default, "^" matches the beginning of the string and "$" matches the
/host/spi-builder-workspace/Source/Regex/Options.swift:31:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
29 | /// let foo = Regex("^foo", options: .anchorsMatchLines)
30 | /// foo.allMatches(in: "foo\nbar\nfoo\n").count // 2
31 | public static let anchorsMatchLines = Options(rawValue: 1 << 2)
| |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'Regex.Options' 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
32 |
33 | /// Usually, "." matches all characters except newlines (\n). Using this
/host/spi-builder-workspace/Source/Regex/Options.swift:40:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
38 | /// let newLines = Regex("test.test", options: .dotMatchesLineSeparators)
39 | /// newLines.allMatches(in: "test\ntest").count // 1
40 | public static let dotMatchesLineSeparators = Options(rawValue: 1 << 3)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Regex.Options' 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
41 |
42 | /// Ignore whitespace and #-prefixed comments in the pattern.
/host/spi-builder-workspace/Source/Regex/Options.swift:48:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'Regex.Options' may have shared mutable state; this is an error in the Swift 6 language mode
3 | extension Regex {
4 | /// `Options` defines alternate behaviours of regular expressions when matching.
5 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
6 | /// Ignores the case of letters when matching.
7 | ///
:
46 | /// let newLines = Regex("test test # this is a regex", options: .allowCommentsAndWhitespace)
47 | /// newLines.allMatches(in: "testtest").count // 2
48 | public static let allowCommentsAndWhitespace = Options(rawValue: 1 << 4)
| |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'Regex.Options' 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
49 |
50 | // MARK: OptionSetType
[9/9] Compiling Regex MatchResult.swift
Build complete! (18.49s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Regex",
"name" : "Regex",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Regex",
"targets" : [
"Regex"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4.2",
"5"
],
"targets" : [
{
"c99name" : "RegexTests",
"module_type" : "SwiftTarget",
"name" : "RegexTests",
"path" : "Tests/RegexTests",
"sources" : [
"Assertions.swift",
"CodableTests.swift",
"OptionsTests.swift",
"RegexTests.swift",
"StringReplacementTests.swift",
"Support.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Regex"
],
"type" : "test"
},
{
"c99name" : "Regex",
"module_type" : "SwiftTarget",
"name" : "Regex",
"path" : "Source/Regex",
"product_memberships" : [
"Regex"
],
"sources" : [
"Foundation+Ranges.swift",
"MatchResult.swift",
"Options.swift",
"Regex.swift",
"String+ReplaceMatching.swift",
"ThreadLocal.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
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.