The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OpenTracing, reference 0.1.0 (e2b055), with Swift 6.1 for Android on 27 May 2025 18:09:34 UTC.

Swift 6 data race errors: 4

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/opentracing/opentracing-swift.git
Reference: 0.1.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/opentracing/opentracing-swift
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at e2b0551 Increment version to 0.1.0
Cloned https://github.com/opentracing/opentracing-swift.git
Revision (git rev-parse @):
e2b0551de2fd9a5cd9a3d8dff5390440f724283c
SUCCESS checkout https://github.com/opentracing/opentracing-swift.git at 0.1.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/opentracing/opentracing-swift.git
https://github.com/opentracing/opentracing-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenTracing",
  "name" : "OpenTracing",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "OpenTracing",
      "targets" : [
        "OpenTracing"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenTracing",
      "module_type" : "SwiftTarget",
      "name" : "OpenTracing",
      "path" : "Sources",
      "product_memberships" : [
        "OpenTracing"
      ],
      "sources" : [
        "OpenTracing/Format.swift",
        "OpenTracing/Global.swift",
        "OpenTracing/NoopTracer.swift",
        "OpenTracing/Reference.swift",
        "OpenTracing/Span.swift",
        "OpenTracing/SpanContext.swift",
        "OpenTracing/Tracer.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/10] Compiling OpenTracing Global.swift
/host/spi-builder-workspace/Sources/OpenTracing/Global.swift:6:23: warning: static property 'sharedTracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 |     /// Shared tracer instance used throughout the app
6 |     public static var sharedTracer: Tracer = NoopTracer()
  |                       |- warning: static property 'sharedTracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'sharedTracer' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: add '@MainActor' to make static property 'sharedTracer' part of global actor 'MainActor'
  |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
[4/10] Emitting module OpenTracing
/host/spi-builder-workspace/Sources/OpenTracing/Global.swift:6:23: warning: static property 'sharedTracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 |     /// Shared tracer instance used throughout the app
6 |     public static var sharedTracer: Tracer = NoopTracer()
  |                       |- warning: static property 'sharedTracer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'sharedTracer' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: add '@MainActor' to make static property 'sharedTracer' 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/OpenTracing/NoopTracer.swift:4:16: warning: static property 'tracer' is not concurrency-safe because non-'Sendable' type 'NoopTracer' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | private struct NoopGlobals {
 4 |     static let tracer = NoopTracer()
   |                |- warning: static property 'tracer' is not concurrency-safe because non-'Sendable' type 'NoopTracer' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |     static let span = NoopSpan()
 6 |     static let context = NoopSpanContext()
   :
 9 | /// A tracer implementation that does nothing.
10 | /// This is useful for guaranteeing that a tracer reference is non-nil.
11 | public struct NoopTracer: Tracer {
   |               `- note: consider making struct 'NoopTracer' conform to the 'Sendable' protocol
12 |
13 |     public func extract(reader: FormatReader) -> SpanContext? {
/host/spi-builder-workspace/Sources/OpenTracing/NoopTracer.swift:5:16: warning: static property 'span' is not concurrency-safe because non-'Sendable' type 'NoopSpan' may have shared mutable state; this is an error in the Swift 6 language mode
 3 | private struct NoopGlobals {
 4 |     static let tracer = NoopTracer()
 5 |     static let span = NoopSpan()
   |                |- warning: static property 'span' is not concurrency-safe because non-'Sendable' type 'NoopSpan' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'span' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     static let context = NoopSpanContext()
 7 | }
   :
24 | }
25 |
26 | public struct NoopSpan: Span {
   |               `- note: consider making struct 'NoopSpan' conform to the 'Sendable' protocol
27 |
28 |     public var context: SpanContext {
/host/spi-builder-workspace/Sources/OpenTracing/NoopTracer.swift:6:16: warning: static property 'context' is not concurrency-safe because non-'Sendable' type 'NoopSpanContext' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |     static let tracer = NoopTracer()
 5 |     static let span = NoopSpan()
 6 |     static let context = NoopSpanContext()
   |                |- warning: static property 'context' is not concurrency-safe because non-'Sendable' type 'NoopSpanContext' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'context' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 | }
 8 |
   :
49 | }
50 |
51 | public struct NoopSpanContext: SpanContext {
   |               `- note: consider making struct 'NoopSpanContext' conform to the 'Sendable' protocol
52 |     public func forEachBaggageItem(callback: (String, String) -> Bool) {}
53 | }
[5/10] Compiling OpenTracing Format.swift
[6/10] Compiling OpenTracing SpanContext.swift
[7/10] Compiling OpenTracing Tracer.swift
[8/10] Compiling OpenTracing Reference.swift
[9/10] Compiling OpenTracing NoopTracer.swift
/host/spi-builder-workspace/Sources/OpenTracing/NoopTracer.swift:4:16: warning: static property 'tracer' is not concurrency-safe because non-'Sendable' type 'NoopTracer' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | private struct NoopGlobals {
 4 |     static let tracer = NoopTracer()
   |                |- warning: static property 'tracer' is not concurrency-safe because non-'Sendable' type 'NoopTracer' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'tracer' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |     static let span = NoopSpan()
 6 |     static let context = NoopSpanContext()
   :
 9 | /// A tracer implementation that does nothing.
10 | /// This is useful for guaranteeing that a tracer reference is non-nil.
11 | public struct NoopTracer: Tracer {
   |               `- note: consider making struct 'NoopTracer' conform to the 'Sendable' protocol
12 |
13 |     public func extract(reader: FormatReader) -> SpanContext? {
/host/spi-builder-workspace/Sources/OpenTracing/NoopTracer.swift:5:16: warning: static property 'span' is not concurrency-safe because non-'Sendable' type 'NoopSpan' may have shared mutable state; this is an error in the Swift 6 language mode
 3 | private struct NoopGlobals {
 4 |     static let tracer = NoopTracer()
 5 |     static let span = NoopSpan()
   |                |- warning: static property 'span' is not concurrency-safe because non-'Sendable' type 'NoopSpan' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'span' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     static let context = NoopSpanContext()
 7 | }
   :
24 | }
25 |
26 | public struct NoopSpan: Span {
   |               `- note: consider making struct 'NoopSpan' conform to the 'Sendable' protocol
27 |
28 |     public var context: SpanContext {
/host/spi-builder-workspace/Sources/OpenTracing/NoopTracer.swift:6:16: warning: static property 'context' is not concurrency-safe because non-'Sendable' type 'NoopSpanContext' may have shared mutable state; this is an error in the Swift 6 language mode
 4 |     static let tracer = NoopTracer()
 5 |     static let span = NoopSpan()
 6 |     static let context = NoopSpanContext()
   |                |- warning: static property 'context' is not concurrency-safe because non-'Sendable' type 'NoopSpanContext' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'context' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 | }
 8 |
   :
49 | }
50 |
51 | public struct NoopSpanContext: SpanContext {
   |               `- note: consider making struct 'NoopSpanContext' conform to the 'Sendable' protocol
52 |     public func forEachBaggageItem(callback: (String, String) -> Bool) {}
53 | }
[10/10] Compiling OpenTracing Span.swift
Build complete! (9.77s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenTracing",
  "name" : "OpenTracing",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "OpenTracing",
      "targets" : [
        "OpenTracing"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenTracing",
      "module_type" : "SwiftTarget",
      "name" : "OpenTracing",
      "path" : "Sources",
      "product_memberships" : [
        "OpenTracing"
      ],
      "sources" : [
        "OpenTracing/Format.swift",
        "OpenTracing/Global.swift",
        "OpenTracing/NoopTracer.swift",
        "OpenTracing/Reference.swift",
        "OpenTracing/Span.swift",
        "OpenTracing/SpanContext.swift",
        "OpenTracing/Tracer.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.