Build Information
Successful build of Regex, reference master (d3ba02
), with Swift 6.0 for Linux on 1 Nov 2024 06:49:03 UTC.
Swift 6 data race errors: 5
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
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: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/sharplet/Regex.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Regex Regex.swift
[4/9] Compiling Regex Foundation+Ranges.swift
[5/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: annotate 'ignoreCase' 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
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: annotate 'ignoreMetacharacters' 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
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: annotate 'anchorsMatchLines' 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 |
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: annotate 'dotMatchesLineSeparators' 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
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: annotate 'allowCommentsAndWhitespace' 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
49 |
50 | // MARK: OptionSetType
[6/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: annotate 'ignoreCase' 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
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: annotate 'ignoreMetacharacters' 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
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: annotate 'anchorsMatchLines' 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 |
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: annotate 'dotMatchesLineSeparators' 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
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: annotate 'allowCommentsAndWhitespace' 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
49 |
50 | // MARK: OptionSetType
[7/9] Compiling Regex String+ReplaceMatching.swift
[8/9] Compiling Regex ThreadLocal.swift
[9/9] Compiling Regex MatchResult.swift
Build complete! (15.64s)
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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.