The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Observable, reference master (60aad1), with Swift 6.0 for Linux on 12 Jan 2025 19:47:30 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/roberthein/Observable.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/roberthein/Observable
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 60aad1e Update min target
Cloned https://github.com/roberthein/Observable.git
Revision (git rev-parse @):
60aad1ecc56ae0b54e68bfb48aa89cb026488fc5
SUCCESS checkout https://github.com/roberthein/Observable.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/roberthein/Observable.git
https://github.com/roberthein/Observable.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Observable",
  "name" : "Observable",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Observable",
      "targets" : [
        "Observable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObservableTests",
      "module_type" : "SwiftTarget",
      "name" : "ObservableTests",
      "path" : "Observable/Tests",
      "sources" : [
        "Disposable_Tests.swift",
        "Observable_Tests.swift"
      ],
      "target_dependencies" : [
        "Observable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Observable",
      "module_type" : "SwiftTarget",
      "name" : "Observable",
      "path" : "Observable/Classes",
      "product_memberships" : [
        "Observable"
      ],
      "sources" : [
        "Disposable.swift",
        "Observable+Binding.swift",
        "Observable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Observable Observable.swift
/host/spi-builder-workspace/Observable/Classes/Observable.swift:86:17: warning: capture of 'observer' with non-sendable type 'Observable<T>.Observer' (aka '(T, Optional<T>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |         if let queue = queue {
 85 |             queue.async {
 86 |                 observer(value, oldValue)
    |                 |- warning: capture of 'observer' with non-sendable type 'Observable<T>.Observer' (aka '(T, Optional<T>) -> ()') 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'
 87 |             }
 88 |         } else {
/host/spi-builder-workspace/Observable/Classes/Observable.swift:86:26: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  4 | public typealias ImmutableObservable = Observable
  5 |
  6 | open class Observable<T> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  7 |
  8 |     public typealias Observer = (T, T?) -> Void
    :
 84 |         if let queue = queue {
 85 |             queue.async {
 86 |                 observer(value, oldValue)
    |                          `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 87 |             }
 88 |         } else {
/host/spi-builder-workspace/Observable/Classes/Observable.swift:86:33: warning: capture of 'oldValue' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  4 | public typealias ImmutableObservable = Observable
  5 |
  6 | open class Observable<T> {
    |                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  7 |
  8 |     public typealias Observer = (T, T?) -> Void
    :
 84 |         if let queue = queue {
 85 |             queue.async {
 86 |                 observer(value, oldValue)
    |                                 `- warning: capture of 'oldValue' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 87 |             }
 88 |         } else {
[4/6] Compiling Observable Disposable.swift
[5/6] Emitting module Observable
[6/6] Compiling Observable Observable+Binding.swift
Build complete! (9.09s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Observable",
  "name" : "Observable",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Observable",
      "targets" : [
        "Observable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ObservableTests",
      "module_type" : "SwiftTarget",
      "name" : "ObservableTests",
      "path" : "Observable/Tests",
      "sources" : [
        "Disposable_Tests.swift",
        "Observable_Tests.swift"
      ],
      "target_dependencies" : [
        "Observable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Observable",
      "module_type" : "SwiftTarget",
      "name" : "Observable",
      "path" : "Observable/Classes",
      "product_memberships" : [
        "Observable"
      ],
      "sources" : [
        "Disposable.swift",
        "Observable+Binding.swift",
        "Observable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.