Build Information
Successful build of OSInfo with Swift 6.0 for Linux.
Swift 6 data race errors: 1
Build Command
bash -c docker run --rm -v "checkouts-4609320-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/MarcoEidinger/OSInfo.git
Reference: main
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/MarcoEidinger/OSInfo
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 54fd667 detect name for visionOS correctly when using Xcode 15 Beta 6+
Cloned https://github.com/MarcoEidinger/OSInfo.git
Revision (git rev-parse @):
54fd6673923ef5966268918152235b0e15ed057c
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/MarcoEidinger/OSInfo.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/MarcoEidinger/OSInfo.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-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/5] Compiling OSInfo OperatingSystemVersion+Extensions.swift
/host/spi-builder-workspace/Sources/OSInfo/OperatingSystemVersion+Extensions.swift:3:1: warning: extension declares a conformance of imported type 'OperatingSystemVersion' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
1 | import Foundation
2 |
3 | extension OperatingSystemVersion: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'OperatingSystemVersion' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
4 | /// SemVer string (format of "*major*.*minor*.*patch*")
5 | ///
[4/5] Emitting module OSInfo
/host/spi-builder-workspace/Sources/OSInfo/OS.swift:16:23: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'OS' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// A unified, cross-platform API to determine OS name and version on which the app is running
12 | public struct OS {
| `- note: consider making struct 'OS' conform to the 'Sendable' protocol
13 | // MARK: public variables
14 |
15 | /// Singleton that will return the underlying macOS version / name for a running Mac Catalyst / Mac Designed for iPad application
16 | public static let current = OS(underlyingMacOS: true)
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'OS' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' 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
17 |
18 | public private(set) var underlyingMacOS: Bool = false
/host/spi-builder-workspace/Sources/OSInfo/OperatingSystemVersion+Extensions.swift:3:1: warning: extension declares a conformance of imported type 'OperatingSystemVersion' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
1 | import Foundation
2 |
3 | extension OperatingSystemVersion: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'OperatingSystemVersion' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
4 | /// SemVer string (format of "*major*.*minor*.*patch*")
5 | ///
[5/5] Compiling OSInfo OS.swift
/host/spi-builder-workspace/Sources/OSInfo/OS.swift:16:23: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'OS' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// A unified, cross-platform API to determine OS name and version on which the app is running
12 | public struct OS {
| `- note: consider making struct 'OS' conform to the 'Sendable' protocol
13 | // MARK: public variables
14 |
15 | /// Singleton that will return the underlying macOS version / name for a running Mac Catalyst / Mac Designed for iPad application
16 | public static let current = OS(underlyingMacOS: true)
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'OS' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' 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
17 |
18 | public private(set) var underlyingMacOS: Bool = false
/host/spi-builder-workspace/Sources/OSInfo/OS.swift:112:18: warning: 'init(contentsOfFile:)' is deprecated
110 | /// useful as `ProcessInfo` will return iOS support version for "Mac Designed for iPad" destination which might not be desired
111 | private func operationSystemVersionFromPlist() -> String? {
112 | let sv = NSDictionary(contentsOfFile: "/System/Library/CoreServices/.SystemVersionPlatform.plist")
| `- warning: 'init(contentsOfFile:)' is deprecated
113 | let versionString = sv?.object(forKey: "ProductVersion") as? String
114 | return versionString
Build complete! (10.54s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "OSInfo",
"name" : "OSInfo",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "OSInfo",
"targets" : [
"OSInfo"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OSInfoTests",
"module_type" : "SwiftTarget",
"name" : "OSInfoTests",
"path" : "Tests/OSInfoTests",
"sources" : [
"OSTests.swift"
],
"target_dependencies" : [
"OSInfo"
],
"type" : "test"
},
{
"c99name" : "OSInfo",
"module_type" : "SwiftTarget",
"name" : "OSInfo",
"path" : "Sources/OSInfo",
"product_memberships" : [
"OSInfo"
],
"sources" : [
"OS.swift",
"OperatingSystemVersion+Extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.