Build Information
Successful build of Semver with Swift 6.0 for Linux.
Swift 6 data race errors: 1
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kutchie-pelaez/Semver.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/kutchie-pelaez/Semver
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 2b515fb initial commit
Cloned https://github.com/kutchie-pelaez/Semver.git
Revision (git rev-parse @):
2b515fb1b5fc653e5f2140386f57b873853661e2
SUCCESS checkout https://github.com/kutchie-pelaez/Semver.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/kutchie-pelaez/Semver.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Emitting module Semver
/host/spi-builder-workspace/Sources/SemverIdentifier.swift:3:13: warning: let 'regex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let regex = try! NSRegularExpression(pattern: "[A-Za-z0-9-]+")
| `- warning: let 'regex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | enum SemverIdentifier: CustomStringConvertible, Comparable {
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/SemverIdentifier.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | private let regex = try! NSRegularExpression(pattern: "[A-Za-z0-9-]+")
| |- note: annotate 'regex' 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
4 |
5 | enum SemverIdentifier: CustomStringConvertible, Comparable {
[4/7] Compiling Semver SemverParser.swift
[5/7] Compiling Semver SemverIdentifier.swift
/host/spi-builder-workspace/Sources/SemverIdentifier.swift:3:13: warning: let 'regex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | private let regex = try! NSRegularExpression(pattern: "[A-Za-z0-9-]+")
| `- warning: let 'regex' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | enum SemverIdentifier: CustomStringConvertible, Comparable {
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/SemverIdentifier.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | private let regex = try! NSRegularExpression(pattern: "[A-Za-z0-9-]+")
| |- note: annotate 'regex' 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
4 |
5 | enum SemverIdentifier: CustomStringConvertible, Comparable {
[6/7] Compiling Semver Semver.swift
[7/7] Compiling Semver SemverComparer.swift
Build complete! (12.23s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Semver",
"name" : "Semver",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "Semver",
"targets" : [
"Semver"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SemverTests",
"module_type" : "SwiftTarget",
"name" : "SemverTests",
"path" : "Tests",
"sources" : [
"SemverBackusNaurGrammar.swift",
"SemverTests.swift"
],
"target_dependencies" : [
"Semver"
],
"type" : "test"
},
{
"c99name" : "Semver",
"module_type" : "SwiftTarget",
"name" : "Semver",
"path" : "Sources",
"product_memberships" : [
"Semver"
],
"sources" : [
"Semver.swift",
"SemverComparer.swift",
"SemverIdentifier.swift",
"SemverParser.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.