The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Focus, reference master (6a4633), with Swift 6.1 for Android on 27 May 2025 15:54:15 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/meech-ward/focus.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/meech-ward/focus
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6a46338 Update the changelog
Cloned https://github.com/meech-ward/focus.git
Revision (git rev-parse @):
6a46338fb6fdd23f860d901f0b899546100598ce
SUCCESS checkout https://github.com/meech-ward/focus.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/meech-ward/focus.git
https://github.com/meech-ward/focus.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Focus",
  "name" : "Focus",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Focus",
      "targets" : [
        "Focus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FocusTests",
      "module_type" : "SwiftTarget",
      "name" : "FocusTests",
      "path" : "Tests/FocusTests",
      "sources" : [
        "FocusTests.swift",
        "Reporter.swift",
        "WhenCreatingAnExpectObject.swift",
        "WhenInjectingToDependencies.swift",
        "WhenLoggingOutput.swift",
        "WhenTestingReports.swift",
        "WhenTestingSomethingToBeFalse.swift",
        "WhenTestingSomethingToBeTrue.swift",
        "WhenTestingSomethingToEqual.swift",
        "customTestBoolen.swift"
      ],
      "target_dependencies" : [
        "Focus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Focus",
      "module_type" : "SwiftTarget",
      "name" : "Focus",
      "path" : "Sources",
      "product_memberships" : [
        "Focus"
      ],
      "sources" : [
        "Be.swift",
        "BeFalse.swift",
        "BeTrue.swift",
        "Beable.swift",
        "DefaultReporter.swift",
        "Expect.swift",
        "Expectable.swift",
        "Focus.swift",
        "Reportable.swift",
        "TestItemContainer.swift",
        "TestItemContainerType.swift",
        "To.swift",
        "ToEqual.swift",
        "Toable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
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/16] Compiling Focus Expectable.swift
/host/spi-builder-workspace/Sources/Expectable.swift:18:5: warning: 'public' modifier is redundant for property declared in a public extension
16 |
17 |     /// to
18 |     public var to: To<ItemType> {
   |     `- warning: 'public' modifier is redundant for property declared in a public extension
19 |         return To(item: item)
20 |     }
/host/spi-builder-workspace/Sources/Focus.swift:6:16: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 |      Responsible for handling pass and fail.
 5 |      */
 6 |     static var reporter: Reportable? = defaultReporter()
   |                |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 | }
 8 |
[4/16] Compiling Focus Focus.swift
/host/spi-builder-workspace/Sources/Expectable.swift:18:5: warning: 'public' modifier is redundant for property declared in a public extension
16 |
17 |     /// to
18 |     public var to: To<ItemType> {
   |     `- warning: 'public' modifier is redundant for property declared in a public extension
19 |         return To(item: item)
20 |     }
/host/spi-builder-workspace/Sources/Focus.swift:6:16: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 |      Responsible for handling pass and fail.
 5 |      */
 6 |     static var reporter: Reportable? = defaultReporter()
   |                |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 | }
 8 |
[5/17] Compiling Focus Reportable.swift
[6/17] Compiling Focus TestItemContainer.swift
[7/17] Compiling Focus ToEqual.swift
/host/spi-builder-workspace/Sources/ToEqual.swift:21:3: warning: 'public' modifier is redundant for instance method declared in a public extension
19 |    - parameter line: The line number that this method was called from.
20 |    */
21 |   public func equal(_ item2: ItemType, _ message: String = "Expected equal", file: StaticString = #file, line: UInt = #line, method: String = #function) {
   |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 |
23 |     guard item == item2 else {
[8/17] Compiling Focus TestItemContainerType.swift
[9/17] Compiling Focus To.swift
[10/17] Compiling Focus DefaultReporter.swift
/host/spi-builder-workspace/Sources/DefaultReporter.swift:52:23: warning: static property 'sharedReporter' is not concurrency-safe because non-'Sendable' type 'DefaultReporter' may have shared mutable state; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public class DefaultReporter: Reportable {
    |              `- note: class 'DefaultReporter' does not conform to the 'Sendable' protocol
 48 |
 49 |     private init() {
 50 |     }
 51 |
 52 |     public static let sharedReporter = DefaultReporter()
    |                       |- warning: static property 'sharedReporter' is not concurrency-safe because non-'Sendable' type 'DefaultReporter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sharedReporter' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |     public var failBlock: ((_ message: String, _ file: StaticString, _ line: UInt) -> Void)?
[11/17] Compiling Focus Expect.swift
/host/spi-builder-workspace/Sources/DefaultReporter.swift:52:23: warning: static property 'sharedReporter' is not concurrency-safe because non-'Sendable' type 'DefaultReporter' may have shared mutable state; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public class DefaultReporter: Reportable {
    |              `- note: class 'DefaultReporter' does not conform to the 'Sendable' protocol
 48 |
 49 |     private init() {
 50 |     }
 51 |
 52 |     public static let sharedReporter = DefaultReporter()
    |                       |- warning: static property 'sharedReporter' is not concurrency-safe because non-'Sendable' type 'DefaultReporter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sharedReporter' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |     public var failBlock: ((_ message: String, _ file: StaticString, _ line: UInt) -> Void)?
[12/17] Compiling Focus Be.swift
/host/spi-builder-workspace/Sources/BeFalse.swift:20:3: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |    - parameter line: The line number that this method was called from.
19 |    */
20 |   public func `false`(_ message: String = "Expected false", file: StaticString = #file, line: UInt = #line, method: String = #function) {
   |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 |     guard let item = item as? Bool else {
22 |       self.fail(message, file: file, line: line, method: method, evaluation: "Item \(self.item) is not a boolean value")
[13/17] Compiling Focus BeFalse.swift
/host/spi-builder-workspace/Sources/BeFalse.swift:20:3: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |    - parameter line: The line number that this method was called from.
19 |    */
20 |   public func `false`(_ message: String = "Expected false", file: StaticString = #file, line: UInt = #line, method: String = #function) {
   |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 |     guard let item = item as? Bool else {
22 |       self.fail(message, file: file, line: line, method: method, evaluation: "Item \(self.item) is not a boolean value")
[14/17] Emitting module Focus
/host/spi-builder-workspace/Sources/BeFalse.swift:20:3: warning: 'public' modifier is redundant for instance method declared in a public extension
18 |    - parameter line: The line number that this method was called from.
19 |    */
20 |   public func `false`(_ message: String = "Expected false", file: StaticString = #file, line: UInt = #line, method: String = #function) {
   |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 |     guard let item = item as? Bool else {
22 |       self.fail(message, file: file, line: line, method: method, evaluation: "Item \(self.item) is not a boolean value")
/host/spi-builder-workspace/Sources/BeTrue.swift:21:5: warning: 'public' modifier is redundant for instance method declared in a public extension
19 |      - parameter line: The line number that this method was called from.
20 |     */
21 |     public func `true`(_ message: String = "Expected true", file: StaticString = #file, line: UInt = #line, method: String = #function) {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 |         guard let item = item as? Bool else {
23 |             self.fail(message, file: file, line: line, method: method, evaluation: "Item \(self.item) is not a boolean value")
/host/spi-builder-workspace/Sources/DefaultReporter.swift:52:23: warning: static property 'sharedReporter' is not concurrency-safe because non-'Sendable' type 'DefaultReporter' may have shared mutable state; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public class DefaultReporter: Reportable {
    |              `- note: class 'DefaultReporter' does not conform to the 'Sendable' protocol
 48 |
 49 |     private init() {
 50 |     }
 51 |
 52 |     public static let sharedReporter = DefaultReporter()
    |                       |- warning: static property 'sharedReporter' is not concurrency-safe because non-'Sendable' type 'DefaultReporter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sharedReporter' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |     public var failBlock: ((_ message: String, _ file: StaticString, _ line: UInt) -> Void)?
/host/spi-builder-workspace/Sources/Expectable.swift:18:5: warning: 'public' modifier is redundant for property declared in a public extension
16 |
17 |     /// to
18 |     public var to: To<ItemType> {
   |     `- warning: 'public' modifier is redundant for property declared in a public extension
19 |         return To(item: item)
20 |     }
/host/spi-builder-workspace/Sources/Focus.swift:6:16: warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 |      Responsible for handling pass and fail.
 5 |      */
 6 |     static var reporter: Reportable? = defaultReporter()
   |                |- warning: static property 'reporter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'reporter' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'reporter' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 | }
 8 |
/host/spi-builder-workspace/Sources/ToEqual.swift:21:3: warning: 'public' modifier is redundant for instance method declared in a public extension
19 |    - parameter line: The line number that this method was called from.
20 |    */
21 |   public func equal(_ item2: ItemType, _ message: String = "Expected equal", file: StaticString = #file, line: UInt = #line, method: String = #function) {
   |   `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 |
23 |     guard item == item2 else {
/host/spi-builder-workspace/Sources/Toable.swift:18:3: warning: 'public' modifier is redundant for property declared in a public extension
16 |
17 |   /// The type that can have any `be` chains chained to it.
18 |   public var be: Be<ItemType> {
   |   `- warning: 'public' modifier is redundant for property declared in a public extension
19 |     return Be(item: item)
20 |   }
[15/17] Compiling Focus BeTrue.swift
/host/spi-builder-workspace/Sources/BeTrue.swift:21:5: warning: 'public' modifier is redundant for instance method declared in a public extension
19 |      - parameter line: The line number that this method was called from.
20 |     */
21 |     public func `true`(_ message: String = "Expected true", file: StaticString = #file, line: UInt = #line, method: String = #function) {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 |         guard let item = item as? Bool else {
23 |             self.fail(message, file: file, line: line, method: method, evaluation: "Item \(self.item) is not a boolean value")
[16/17] Compiling Focus Beable.swift
/host/spi-builder-workspace/Sources/BeTrue.swift:21:5: warning: 'public' modifier is redundant for instance method declared in a public extension
19 |      - parameter line: The line number that this method was called from.
20 |     */
21 |     public func `true`(_ message: String = "Expected true", file: StaticString = #file, line: UInt = #line, method: String = #function) {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 |         guard let item = item as? Bool else {
23 |             self.fail(message, file: file, line: line, method: method, evaluation: "Item \(self.item) is not a boolean value")
[17/17] Compiling Focus Toable.swift
/host/spi-builder-workspace/Sources/Toable.swift:18:3: warning: 'public' modifier is redundant for property declared in a public extension
16 |
17 |   /// The type that can have any `be` chains chained to it.
18 |   public var be: Be<ItemType> {
   |   `- warning: 'public' modifier is redundant for property declared in a public extension
19 |     return Be(item: item)
20 |   }
Build complete! (11.10s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Focus",
  "name" : "Focus",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Focus",
      "targets" : [
        "Focus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FocusTests",
      "module_type" : "SwiftTarget",
      "name" : "FocusTests",
      "path" : "Tests/FocusTests",
      "sources" : [
        "FocusTests.swift",
        "Reporter.swift",
        "WhenCreatingAnExpectObject.swift",
        "WhenInjectingToDependencies.swift",
        "WhenLoggingOutput.swift",
        "WhenTestingReports.swift",
        "WhenTestingSomethingToBeFalse.swift",
        "WhenTestingSomethingToBeTrue.swift",
        "WhenTestingSomethingToEqual.swift",
        "customTestBoolen.swift"
      ],
      "target_dependencies" : [
        "Focus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Focus",
      "module_type" : "SwiftTarget",
      "name" : "Focus",
      "path" : "Sources",
      "product_memberships" : [
        "Focus"
      ],
      "sources" : [
        "Be.swift",
        "BeFalse.swift",
        "BeTrue.swift",
        "Beable.swift",
        "DefaultReporter.swift",
        "Expect.swift",
        "Expectable.swift",
        "Focus.swift",
        "Reportable.swift",
        "TestItemContainer.swift",
        "TestItemContainerType.swift",
        "To.swift",
        "ToEqual.swift",
        "Toable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.