The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of swift-gen, reference 0.5.0 (f2e186), with Swift 6.1 for Wasm on 4 Aug 2025 17:59:36 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pointfreeco/swift-gen.git
Reference: 0.5.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/pointfreeco/swift-gen
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at f2e186a Sendable support (#30)
Cloned https://github.com/pointfreeco/swift-gen.git
Revision (git rev-parse @):
f2e186a188cb7a4dfb0e122ede34b147e6c0ce17
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/pointfreeco/swift-gen.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/pointfreeco/swift-gen.git
https://github.com/pointfreeco/swift-gen.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-gen",
  "name" : "swift-gen",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Gen",
      "targets" : [
        "Gen"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GenTests",
      "module_type" : "SwiftTarget",
      "name" : "GenTests",
      "path" : "Tests/GenTests",
      "sources" : [
        "GenTests.swift"
      ],
      "target_dependencies" : [
        "Gen"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Gen",
      "module_type" : "SwiftTarget",
      "name" : "Gen",
      "path" : "Sources/Gen",
      "product_memberships" : [
        "Gen"
      ],
      "sources" : [
        "AnyRandomNumberGenerator.swift",
        "Gen.swift",
        "LCRNG.swift",
        "UIKit.swift",
        "Xoshiro.swift",
        "Zip.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Gen Zip.swift
[4/9] Compiling Gen Xoshiro.swift
[5/9] Compiling Gen UIKit.swift
[6/9] Compiling Gen Gen.swift
/host/spi-builder-workspace/Sources/Gen/Gen.swift:124:42: warning: capture of 'range' with non-sendable type 'ClosedRange<Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
122 |   @inlinable
123 |   public static func int(in range: ClosedRange<Value>) -> Gen {
124 |     return Gen { rng in Value.random(in: range, using: &rng) }
    |                                          `- warning: capture of 'range' with non-sendable type 'ClosedRange<Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
125 |   }
126 | }
/host/spi-builder-workspace/Sources/Gen/Gen.swift:135:42: warning: capture of 'range' with non-sendable type 'ClosedRange<Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
133 |   @inlinable
134 |   public static func float(in range: ClosedRange<Value>) -> Gen {
135 |     return Gen { rng in Value.random(in: range, using: &rng) }
    |                                          `- warning: capture of 'range' with non-sendable type 'ClosedRange<Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 |   }
137 | }
/host/spi-builder-workspace/Sources/Gen/Gen.swift:328:40: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
326 |   @inlinable
327 |   public var element: Gen<Value.Element?> {
328 |     self.flatMap { Gen<Value.Element?>.element(of: $0) }
    |                                        `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
329 |   }
330 |
/host/spi-builder-workspace/Sources/Gen/Gen.swift:334:41: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
332 |   @inlinable
333 |   public var shuffled: Gen<[Value.Element]> {
334 |     self.flatMap { Gen<[Value.Element]>.shuffled($0) }
    |                                         `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
335 |   }
336 | }
/host/spi-builder-workspace/Sources/Gen/Gen.swift:342:55: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
340 |   @inlinable
341 |   public static var allCases: Gen<Value> {
342 |     return Gen<Value.AllCases>.always(Value.allCases).element.map { $0! }
    |                                                       `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
343 |   }
344 | }
[7/9] Compiling Gen AnyRandomNumberGenerator.swift
[8/9] Emitting module Gen
/host/spi-builder-workspace/Sources/Gen/Gen.swift:124:42: warning: capture of 'range' with non-sendable type 'ClosedRange<Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
122 |   @inlinable
123 |   public static func int(in range: ClosedRange<Value>) -> Gen {
124 |     return Gen { rng in Value.random(in: range, using: &rng) }
    |                                          `- warning: capture of 'range' with non-sendable type 'ClosedRange<Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
125 |   }
126 | }
/host/spi-builder-workspace/Sources/Gen/Gen.swift:135:42: warning: capture of 'range' with non-sendable type 'ClosedRange<Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
133 |   @inlinable
134 |   public static func float(in range: ClosedRange<Value>) -> Gen {
135 |     return Gen { rng in Value.random(in: range, using: &rng) }
    |                                          `- warning: capture of 'range' with non-sendable type 'ClosedRange<Value>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 |   }
137 | }
/host/spi-builder-workspace/Sources/Gen/Gen.swift:328:40: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
326 |   @inlinable
327 |   public var element: Gen<Value.Element?> {
328 |     self.flatMap { Gen<Value.Element?>.element(of: $0) }
    |                                        `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
329 |   }
330 |
/host/spi-builder-workspace/Sources/Gen/Gen.swift:334:41: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
332 |   @inlinable
333 |   public var shuffled: Gen<[Value.Element]> {
334 |     self.flatMap { Gen<[Value.Element]>.shuffled($0) }
    |                                         `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
335 |   }
336 | }
/host/spi-builder-workspace/Sources/Gen/Gen.swift:342:55: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value>: Sendable {
    |                   `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: @Sendable (inout AnyRandomNumberGenerator) -> Value
    :
340 |   @inlinable
341 |   public static var allCases: Gen<Value> {
342 |     return Gen<Value.AllCases>.always(Value.allCases).element.map { $0! }
    |                                                       `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
343 |   }
344 | }
[9/9] Compiling Gen LCRNG.swift
Build complete! (6.22s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-gen",
  "name" : "swift-gen",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Gen",
      "targets" : [
        "Gen"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GenTests",
      "module_type" : "SwiftTarget",
      "name" : "GenTests",
      "path" : "Tests/GenTests",
      "sources" : [
        "GenTests.swift"
      ],
      "target_dependencies" : [
        "Gen"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Gen",
      "module_type" : "SwiftTarget",
      "name" : "Gen",
      "path" : "Sources/Gen",
      "product_memberships" : [
        "Gen"
      ],
      "sources" : [
        "AnyRandomNumberGenerator.swift",
        "Gen.swift",
        "LCRNG.swift",
        "UIKit.swift",
        "Xoshiro.swift",
        "Zip.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.