Build Information
Successful build of WeatherGround, reference 0.0.3 (d3acf5), with Swift 6.1 for Android on 27 May 2025 11:51:46 UTC.
Swift 6 data race errors: 1
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/mbarnach/WeatherGround.git
Reference: 0.0.3
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/mbarnach/WeatherGround
* tag 0.0.3 -> FETCH_HEAD
HEAD is now at d3acf5a Fix typos.
Cloned https://github.com/mbarnach/WeatherGround.git
Revision (git rev-parse @):
d3acf5aca9ff56cf6aec500e78eb3932642f9398
SUCCESS checkout https://github.com/mbarnach/WeatherGround.git at 0.0.3
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/mbarnach/WeatherGround.git
https://github.com/mbarnach/WeatherGround.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "WeatherGround",
"name" : "WeatherGround",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "WeatherGround",
"targets" : [
"WeatherGround"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "WeatherGroundTests",
"module_type" : "SwiftTarget",
"name" : "WeatherGroundTests",
"path" : "Tests/WeatherGroundTests",
"sources" : [
"WeatherGroundTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"WeatherGround"
],
"type" : "test"
},
{
"c99name" : "WeatherGround",
"module_type" : "SwiftTarget",
"name" : "WeatherGround",
"path" : "Sources/WeatherGround",
"product_memberships" : [
"WeatherGround"
],
"sources" : [
"Errors.swift",
"Model.swift",
"Utils.swift",
"WeatherGround.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
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/7] Compiling WeatherGround Model.swift
[4/7] Compiling WeatherGround Utils.swift
[5/7] Compiling WeatherGround Errors.swift
[6/7] Emitting module WeatherGround
/host/spi-builder-workspace/Sources/WeatherGround/WeatherGround.swift:16:23: warning: static property 'measure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Singleton to retrieve the measures.
16 | public static var measure: WeatherGround = WeatherGround()
| |- warning: static property 'measure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'measure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'measure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Retrieve the current value of the PWS.
[7/7] Compiling WeatherGround WeatherGround.swift
/host/spi-builder-workspace/Sources/WeatherGround/WeatherGround.swift:16:23: warning: static property 'measure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Singleton to retrieve the measures.
16 | public static var measure: WeatherGround = WeatherGround()
| |- warning: static property 'measure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'measure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'measure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Retrieve the current value of the PWS.
/host/spi-builder-workspace/Sources/WeatherGround/WeatherGround.swift:28:24: warning: capture of 'history' with non-sendable type '(Result<InstantObservation, WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
26 | let task = URLSession.shared.dataTask(with: url){ (data, response, error) in
27 | guard let jsonData = data else {
28 | return history(.failure(.noData))
| |- warning: capture of 'history' with non-sendable type '(Result<InstantObservation, WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
29 | }
30 | let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/WeatherGround/WeatherGround.swift:55:24: warning: capture of 'history' with non-sendable type '(Result<[Observation], WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
53 | let task = URLSession.shared.dataTask(with: url){ (data, response, error) in
54 | guard let jsonData = data else {
55 | return history(.failure(.noData))
| |- warning: capture of 'history' with non-sendable type '(Result<[Observation], WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | }
57 | let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/WeatherGround/WeatherGround.swift:79:24: warning: capture of 'history' with non-sendable type '(Result<Observation, WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
77 | let task = URLSession.shared.dataTask(with: url){ (data, response, error) in
78 | guard let jsonData = data else {
79 | return history(.failure(.noData))
| |- warning: capture of 'history' with non-sendable type '(Result<Observation, WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
80 | }
81 | let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/WeatherGround/WeatherGround.swift:106:24: warning: capture of 'history' with non-sendable type '(Result<[Observation], WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
104 | let task = URLSession.shared.dataTask(with: url){ (data, response, error) in
105 | guard let jsonData = data else {
106 | return history(.failure(.noData))
| |- warning: capture of 'history' with non-sendable type '(Result<[Observation], WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
107 | }
108 | let decoder = JSONDecoder()
/host/spi-builder-workspace/Sources/WeatherGround/WeatherGround.swift:129:24: warning: capture of 'fiveDay' with non-sendable type '(Result<Forecast, WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
127 | let task = URLSession.shared.dataTask(with: url){ data, response, error in
128 | guard let jsonData = data else {
129 | return fiveDay(.failure(.noData))
| |- warning: capture of 'fiveDay' with non-sendable type '(Result<Forecast, WeatherError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
130 | }
131 | let decoder = JSONDecoder()
Build complete! (9.48s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "WeatherGround",
"name" : "WeatherGround",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "WeatherGround",
"targets" : [
"WeatherGround"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "WeatherGroundTests",
"module_type" : "SwiftTarget",
"name" : "WeatherGroundTests",
"path" : "Tests/WeatherGroundTests",
"sources" : [
"WeatherGroundTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"WeatherGround"
],
"type" : "test"
},
{
"c99name" : "WeatherGround",
"module_type" : "SwiftTarget",
"name" : "WeatherGround",
"path" : "Sources/WeatherGround",
"product_memberships" : [
"WeatherGround"
],
"sources" : [
"Errors.swift",
"Model.swift",
"Utils.swift",
"WeatherGround.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.