The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Injector, reference 2.0.1 (22dccc), with Swift 6.1 for Android on 28 May 2025 23:19:29 UTC.

Swift 6 data race errors: 1

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/ptrkstr/Injector.git
Reference: 2.0.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/ptrkstr/Injector
 * tag               2.0.1      -> FETCH_HEAD
HEAD is now at 22dccc2 Update to Factory 1.3.7
Cloned https://github.com/ptrkstr/Injector.git
Revision (git rev-parse @):
22dccc25935bd12ba6301f012ed001cb314b9cda
SUCCESS checkout https://github.com/ptrkstr/Injector.git at 2.0.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ptrkstr/Injector.git
https://github.com/ptrkstr/Injector.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "factory",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/hmlongco/Factory.git"
    }
  ],
  "manifest_display_name" : "Injector",
  "name" : "Injector",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Injector",
      "targets" : [
        "Injector"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InjectorTests",
      "module_type" : "SwiftTarget",
      "name" : "InjectorTests",
      "path" : "Tests/InjectorTests",
      "sources" : [
        "InjectorTests.swift"
      ],
      "target_dependencies" : [
        "Injector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Injector",
      "module_type" : "SwiftTarget",
      "name" : "Injector",
      "path" : "Sources/Injector",
      "product_dependencies" : [
        "Factory"
      ],
      "product_memberships" : [
        "Injector"
      ],
      "sources" : [
        "Injector.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
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
Fetching https://github.com/hmlongco/Factory.git
[1/18195] Fetching factory
Fetched https://github.com/hmlongco/Factory.git from cache (1.02s)
Computing version for https://github.com/hmlongco/Factory.git
Computed https://github.com/hmlongco/Factory.git at 1.3.7 (2.86s)
Creating working copy for https://github.com/hmlongco/Factory.git
Working copy of https://github.com/hmlongco/Factory.git resolved at 1.3.7
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module Factory
[5/5] Compiling Factory Factory.swift
[7/8] Emitting module Injector
/host/spi-builder-workspace/Sources/Injector/Injector.swift:32:16: warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 | private extension Container.Scope {
 32 |     static let cache = Cached()
    |                `- warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | }
 34 |
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory.swift:241:24: note: class 'Cached' does not conform to the 'Sendable' protocol
239 |     /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
240 |     public static let cached = Cached()
241 |     public final class Cached: SharedContainer.Scope {
    |                        `- note: class 'Cached' does not conform to the 'Sendable' protocol
242 |         public override init() {
243 |             super.init()
/host/spi-builder-workspace/Sources/Injector/Injector.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
  1 | import Foundation
  2 | import Factory
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
  3 |
  4 | public enum InjectorEnvironment {
    :
 30 |
 31 | private extension Container.Scope {
 32 |     static let cache = Cached()
    |                |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 | }
 34 |
[8/8] Compiling Injector Injector.swift
/host/spi-builder-workspace/Sources/Injector/Injector.swift:32:16: warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 | private extension Container.Scope {
 32 |     static let cache = Cached()
    |                `- warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
 33 | }
 34 |
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory.swift:241:24: note: class 'Cached' does not conform to the 'Sendable' protocol
239 |     /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
240 |     public static let cached = Cached()
241 |     public final class Cached: SharedContainer.Scope {
    |                        `- note: class 'Cached' does not conform to the 'Sendable' protocol
242 |         public override init() {
243 |             super.init()
/host/spi-builder-workspace/Sources/Injector/Injector.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
  1 | import Foundation
  2 | import Factory
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
  3 |
  4 | public enum InjectorEnvironment {
    :
 30 |
 31 | private extension Container.Scope {
 32 |     static let cache = Cached()
    |                |- note: add '@MainActor' to make static property 'cache' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 | }
 34 |
Build complete! (14.21s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "factory",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/hmlongco/Factory.git"
    }
  ],
  "manifest_display_name" : "Injector",
  "name" : "Injector",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Injector",
      "targets" : [
        "Injector"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InjectorTests",
      "module_type" : "SwiftTarget",
      "name" : "InjectorTests",
      "path" : "Tests/InjectorTests",
      "sources" : [
        "InjectorTests.swift"
      ],
      "target_dependencies" : [
        "Injector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Injector",
      "module_type" : "SwiftTarget",
      "name" : "Injector",
      "path" : "Sources/Injector",
      "product_dependencies" : [
        "Factory"
      ],
      "product_memberships" : [
        "Injector"
      ],
      "sources" : [
        "Injector.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
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.