The Swift Package Index logo.Swift Package Index

Build Information

Successful build of swift-scru64, reference v1.0.0 (6db8ca), with Swift 6.1 for Android on 28 May 2025 21:15:24 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/scru64/swift-scru64.git
Reference: v1.0.0
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/scru64/swift-scru64
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at 6db8ca0 v1.0.0 Released
Cloned https://github.com/scru64/swift-scru64.git
Revision (git rev-parse @):
6db8ca088779423bb59989c3765926e127487c87
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/scru64/swift-scru64.git at v1.0.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/scru64/swift-scru64.git
https://github.com/scru64/swift-scru64.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-scru64",
  "name" : "swift-scru64",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Scru64",
      "targets" : [
        "Scru64"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Scru64Tests",
      "module_type" : "SwiftTarget",
      "name" : "Scru64Tests",
      "path" : "Tests/Scru64Tests",
      "sources" : [
        "Scru64CounterModeTests.swift",
        "Scru64GeneratorTests.swift",
        "Scru64GlobalGeneratorTests.swift",
        "Scru64IdTests.swift",
        "Scru64NodeSpecTests.swift",
        "Scru64Tests.swift"
      ],
      "target_dependencies" : [
        "Scru64"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Scru64",
      "module_type" : "SwiftTarget",
      "name" : "Scru64",
      "path" : "Sources/Scru64",
      "product_memberships" : [
        "Scru64"
      ],
      "sources" : [
        "Scru64.swift",
        "Scru64CounterMode.swift",
        "Scru64Generator.swift",
        "Scru64GlobalGenerator.swift",
        "Scru64Id.swift",
        "Scru64NodeSpec.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/9] Emitting module Scru64
/host/spi-builder-workspace/Sources/Scru64/Scru64GlobalGenerator.swift:14:22: warning: static property 'instanceRaw' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Scru64GlobalGenerator {
13 |   private static let lock = NSLock()
14 |   private static var instanceRaw: Scru64Generator<Scru64CounterModeDefault>? = nil
   |                      |- warning: static property 'instanceRaw' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: convert 'instanceRaw' to a 'let' constant to make 'Sendable' shared state immutable
   |                      |- note: add '@MainActor' to make static property 'instanceRaw' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |   static var instance: Scru64Generator<Scru64CounterModeDefault> {
/host/spi-builder-workspace/Sources/Scru64/Scru64Id.swift:85:9: warning: stored property 'value' of 'Sendable'-conforming generic struct 'RangeError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
 82 |
 83 |   /// An error converting an integer into a SCRU64 ID.
 84 |   struct RangeError<T>: Error, CustomStringConvertible {
    |                     `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 85 |     let value: T
    |         `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'RangeError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
 86 |     var description: String {
 87 |       "could not convert integer to SCRU64 ID: `\(T.self)` out of range: \(value)"
[4/9] Compiling Scru64 Scru64Id.swift
/host/spi-builder-workspace/Sources/Scru64/Scru64Id.swift:85:9: warning: stored property 'value' of 'Sendable'-conforming generic struct 'RangeError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
 82 |
 83 |   /// An error converting an integer into a SCRU64 ID.
 84 |   struct RangeError<T>: Error, CustomStringConvertible {
    |                     `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 85 |     let value: T
    |         `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'RangeError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
 86 |     var description: String {
 87 |       "could not convert integer to SCRU64 ID: `\(T.self)` out of range: \(value)"
[5/9] Compiling Scru64 Scru64NodeSpec.swift
[6/9] Compiling Scru64 Scru64CounterMode.swift
[7/9] Compiling Scru64 Scru64Generator.swift
[8/9] Compiling Scru64 Scru64.swift
[9/9] Compiling Scru64 Scru64GlobalGenerator.swift
/host/spi-builder-workspace/Sources/Scru64/Scru64GlobalGenerator.swift:14:22: warning: static property 'instanceRaw' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Scru64GlobalGenerator {
13 |   private static let lock = NSLock()
14 |   private static var instanceRaw: Scru64Generator<Scru64CounterModeDefault>? = nil
   |                      |- warning: static property 'instanceRaw' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: convert 'instanceRaw' to a 'let' constant to make 'Sendable' shared state immutable
   |                      |- note: add '@MainActor' to make static property 'instanceRaw' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |   static var instance: Scru64Generator<Scru64CounterModeDefault> {
Build complete! (12.79s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-scru64",
  "name" : "swift-scru64",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Scru64",
      "targets" : [
        "Scru64"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Scru64Tests",
      "module_type" : "SwiftTarget",
      "name" : "Scru64Tests",
      "path" : "Tests/Scru64Tests",
      "sources" : [
        "Scru64CounterModeTests.swift",
        "Scru64GeneratorTests.swift",
        "Scru64GlobalGeneratorTests.swift",
        "Scru64IdTests.swift",
        "Scru64NodeSpecTests.swift",
        "Scru64Tests.swift"
      ],
      "target_dependencies" : [
        "Scru64"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Scru64",
      "module_type" : "SwiftTarget",
      "name" : "Scru64",
      "path" : "Sources/Scru64",
      "product_memberships" : [
        "Scru64"
      ],
      "sources" : [
        "Scru64.swift",
        "Scru64CounterMode.swift",
        "Scru64Generator.swift",
        "Scru64GlobalGenerator.swift",
        "Scru64Id.swift",
        "Scru64NodeSpec.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.