Build Information
Successful build of Regex, reference 2.1.1 (76c2b7
), 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-0":/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: 2.1.1
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
* tag 2.1.1 -> FETCH_HEAD
HEAD is now at 76c2b73 Update podspec license type (#72)
Cloned https://github.com/sharplet/Regex.git
Revision (git rev-parse @):
76c2b73d4281d77fc3118391877efd1bf972f515
SUCCESS checkout https://github.com/sharplet/Regex.git at 2.1.1
========================================
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-0":/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 ThreadLocal.swift
[4/9] Compiling Regex Regex.swift
[5/9] Compiling Regex String+ReplaceMatching.swift
[6/9] Compiling Regex Options.swift
/host/spi-builder-workspace/Source/Regex/Options.swift:11:21: warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
9 | /// let a = Regex("a", options: .ignoreCase)
10 | /// a.allMatches(in: "aA").map { $0.matchedString } // ["a", "A"]
11 | public static let ignoreCase = Options(rawValue: 1)
| |- warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type '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
12 |
13 | /// Ignore any metacharacters in the pattern, treating every character as
/host/spi-builder-workspace/Source/Regex/Options.swift:20:21: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
18 | /// let parens = Regex("()", options: .ignoreMetacharacters)
19 | /// parens.matches("()") // true
20 | public static let ignoreMetacharacters = Options(rawValue: 1 << 1)
| |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type '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
21 |
22 | /// By default, "^" matches the beginning of the string and "$" matches the
/host/spi-builder-workspace/Source/Regex/Options.swift:30:21: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
28 | /// let foo = Regex("^foo", options: .anchorsMatchLines)
29 | /// foo.allMatches(in: "foo\nbar\nfoo\n").count // 2
30 | public static let anchorsMatchLines = Options(rawValue: 1 << 2)
| |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type '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
31 |
32 | /// Usually, "." matches all characters except newlines (\n). Using this
/host/spi-builder-workspace/Source/Regex/Options.swift:39:21: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
37 | /// let newLines = Regex("test.test", options: .dotMatchesLineSeparators)
38 | /// newLines.allMatches(in: "test\ntest").count // 1
39 | public static let dotMatchesLineSeparators = Options(rawValue: 1 << 3)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type '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
40 |
41 | /// Ignore whitespace and #-prefixed comments in the pattern.
/host/spi-builder-workspace/Source/Regex/Options.swift:47:21: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
45 | /// let newLines = Regex("test test # this is a regex", options: .allowCommentsAndWhitespace)
46 | /// newLines.allMatches(in: "testtest").count // 2
47 | public static let allowCommentsAndWhitespace = Options(rawValue: 1 << 4)
| |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type '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
48 |
49 | // MARK: OptionSetType
[7/9] Emitting module Regex
/host/spi-builder-workspace/Source/Regex/Options.swift:11:21: warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
9 | /// let a = Regex("a", options: .ignoreCase)
10 | /// a.allMatches(in: "aA").map { $0.matchedString } // ["a", "A"]
11 | public static let ignoreCase = Options(rawValue: 1)
| |- warning: static property 'ignoreCase' is not concurrency-safe because non-'Sendable' type '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
12 |
13 | /// Ignore any metacharacters in the pattern, treating every character as
/host/spi-builder-workspace/Source/Regex/Options.swift:20:21: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
18 | /// let parens = Regex("()", options: .ignoreMetacharacters)
19 | /// parens.matches("()") // true
20 | public static let ignoreMetacharacters = Options(rawValue: 1 << 1)
| |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type '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
21 |
22 | /// By default, "^" matches the beginning of the string and "$" matches the
/host/spi-builder-workspace/Source/Regex/Options.swift:30:21: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
28 | /// let foo = Regex("^foo", options: .anchorsMatchLines)
29 | /// foo.allMatches(in: "foo\nbar\nfoo\n").count // 2
30 | public static let anchorsMatchLines = Options(rawValue: 1 << 2)
| |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type '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
31 |
32 | /// Usually, "." matches all characters except newlines (\n). Using this
/host/spi-builder-workspace/Source/Regex/Options.swift:39:21: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
37 | /// let newLines = Regex("test.test", options: .dotMatchesLineSeparators)
38 | /// newLines.allMatches(in: "test\ntest").count // 1
39 | public static let dotMatchesLineSeparators = Options(rawValue: 1 << 3)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type '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
40 |
41 | /// Ignore whitespace and #-prefixed comments in the pattern.
/host/spi-builder-workspace/Source/Regex/Options.swift:47:21: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'Options' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// `Options` defines alternate behaviours of regular expressions when matching.
4 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
5 | /// Ignores the case of letters when matching.
6 | ///
:
45 | /// let newLines = Regex("test test # this is a regex", options: .allowCommentsAndWhitespace)
46 | /// newLines.allMatches(in: "testtest").count // 2
47 | public static let allowCommentsAndWhitespace = Options(rawValue: 1 << 4)
| |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type '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
48 |
49 | // MARK: OptionSetType
[8/9] Compiling Regex Foundation+Ranges.swift
[9/9] Compiling Regex MatchResult.swift
Build complete! (15.06s)
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.