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 swift-gen, reference 0.4.0 (5bd20f), with Swift 6.0 for Linux on 29 Nov 2024 22:47:41 UTC.

Swift 6 data race errors: 8

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pointfreeco/swift-gen.git
Reference: 0.4.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.4.0      -> FETCH_HEAD
HEAD is now at 5bd20fb Update README.md (#25)
Cloned https://github.com/pointfreeco/swift-gen.git
Revision (git rev-parse @):
5bd20fb662e1ead7ee47df6bb0a15398295f2e06
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/pointfreeco/swift-gen.git at 0.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/pointfreeco/swift-gen.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
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/9] Compiling Gen UIKit.swift
[4/9] Compiling Gen Zip.swift
[5/9] Compiling Gen Gen.swift
/host/spi-builder-workspace/Sources/Gen/Gen.swift:308:21: warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Gen<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
306 | extension Gen where Value == Bool {
307 |   /// A generator of random boolean values.
308 |   public static let bool = Gen { rng in Bool.random(using: &rng) }
    |                     |- warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Gen<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'bool' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
309 | }
310 |
/host/spi-builder-workspace/Sources/Gen/Gen.swift:502:21: warning: static property 'number' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
500 |
501 |   /// A generator of random numeric digits.
502 |   public static let number = Gen.character(in: "0"..."9")
    |                     |- warning: static property 'number' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'number' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
503 |
504 |   /// A generator of uppercase letters.
/host/spi-builder-workspace/Sources/Gen/Gen.swift:505:21: warning: static property 'uppercaseLetter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
503 |
504 |   /// A generator of uppercase letters.
505 |   public static let uppercaseLetter = Gen.character(in: "A"..."Z")
    |                     |- warning: static property 'uppercaseLetter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'uppercaseLetter' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
506 |
507 |   /// A generator of lowercase letters.
/host/spi-builder-workspace/Sources/Gen/Gen.swift:508:21: warning: static property 'lowercaseLetter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
506 |
507 |   /// A generator of lowercase letters.
508 |   public static let lowercaseLetter = Gen.character(in: "a"..."z")
    |                     |- warning: static property 'lowercaseLetter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'lowercaseLetter' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
509 |
510 |   /// A generator of uppercase and lowercase letters.
/host/spi-builder-workspace/Sources/Gen/Gen.swift:511:21: warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
509 |
510 |   /// A generator of uppercase and lowercase letters.
511 |   public static let letter = Gen<Character?>
    |                     |- warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'letter' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
512 |     .element(of: Array("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") as [Character])
513 |     .map { $0! }
/host/spi-builder-workspace/Sources/Gen/Gen.swift:516:21: warning: static property 'letterOrNumber' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
514 |
515 |   /// A generator of letters and numbers.
516 |   public static let letterOrNumber = Gen<Character?>
    |                     |- warning: static property 'letterOrNumber' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'letterOrNumber' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
517 |     .element(
518 |       of: Array("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") as [Character]
/host/spi-builder-workspace/Sources/Gen/Gen.swift:523:21: warning: static property 'ascii' is not concurrency-safe because non-'Sendable' type 'Gen<UnicodeScalar>' (aka 'Gen<Unicode.Scalar>') may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
521 |
522 |   /// A generator of ASCII characters.
523 |   public static let ascii = Gen<UInt32>.int(in: 0...127)
    |                     |- warning: static property 'ascii' is not concurrency-safe because non-'Sendable' type 'Gen<UnicodeScalar>' (aka 'Gen<Unicode.Scalar>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'ascii' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
524 |     .map { UnicodeScalar($0)! }
525 |
/host/spi-builder-workspace/Sources/Gen/Gen.swift:527:21: warning: static property 'latin1' is not concurrency-safe because non-'Sendable' type 'Gen<UnicodeScalar>' (aka 'Gen<Unicode.Scalar>') may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
525 |
526 |   /// A generator of Latin-1 characters.
527 |   public static let latin1 = Gen<UInt32>.int(in: 0...255)
    |                     |- warning: static property 'latin1' is not concurrency-safe because non-'Sendable' type 'Gen<UnicodeScalar>' (aka 'Gen<Unicode.Scalar>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'latin1' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
528 |     .map { UnicodeScalar($0)! }
529 |
[6/9] Compiling Gen AnyRandomNumberGenerator.swift
[7/9] Compiling Gen LCRNG.swift
[8/9] Emitting module Gen
/host/spi-builder-workspace/Sources/Gen/Gen.swift:308:21: warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Gen<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
306 | extension Gen where Value == Bool {
307 |   /// A generator of random boolean values.
308 |   public static let bool = Gen { rng in Bool.random(using: &rng) }
    |                     |- warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Gen<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'bool' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
309 | }
310 |
/host/spi-builder-workspace/Sources/Gen/Gen.swift:502:21: warning: static property 'number' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
500 |
501 |   /// A generator of random numeric digits.
502 |   public static let number = Gen.character(in: "0"..."9")
    |                     |- warning: static property 'number' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'number' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
503 |
504 |   /// A generator of uppercase letters.
/host/spi-builder-workspace/Sources/Gen/Gen.swift:505:21: warning: static property 'uppercaseLetter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
503 |
504 |   /// A generator of uppercase letters.
505 |   public static let uppercaseLetter = Gen.character(in: "A"..."Z")
    |                     |- warning: static property 'uppercaseLetter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'uppercaseLetter' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
506 |
507 |   /// A generator of lowercase letters.
/host/spi-builder-workspace/Sources/Gen/Gen.swift:508:21: warning: static property 'lowercaseLetter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
506 |
507 |   /// A generator of lowercase letters.
508 |   public static let lowercaseLetter = Gen.character(in: "a"..."z")
    |                     |- warning: static property 'lowercaseLetter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'lowercaseLetter' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
509 |
510 |   /// A generator of uppercase and lowercase letters.
/host/spi-builder-workspace/Sources/Gen/Gen.swift:511:21: warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
509 |
510 |   /// A generator of uppercase and lowercase letters.
511 |   public static let letter = Gen<Character?>
    |                     |- warning: static property 'letter' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'letter' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
512 |     .element(of: Array("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") as [Character])
513 |     .map { $0! }
/host/spi-builder-workspace/Sources/Gen/Gen.swift:516:21: warning: static property 'letterOrNumber' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
514 |
515 |   /// A generator of letters and numbers.
516 |   public static let letterOrNumber = Gen<Character?>
    |                     |- warning: static property 'letterOrNumber' is not concurrency-safe because non-'Sendable' type 'Gen<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'letterOrNumber' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
517 |     .element(
518 |       of: Array("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") as [Character]
/host/spi-builder-workspace/Sources/Gen/Gen.swift:523:21: warning: static property 'ascii' is not concurrency-safe because non-'Sendable' type 'Gen<UnicodeScalar>' (aka 'Gen<Unicode.Scalar>') may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
521 |
522 |   /// A generator of ASCII characters.
523 |   public static let ascii = Gen<UInt32>.int(in: 0...127)
    |                     |- warning: static property 'ascii' is not concurrency-safe because non-'Sendable' type 'Gen<UnicodeScalar>' (aka 'Gen<Unicode.Scalar>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'ascii' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
524 |     .map { UnicodeScalar($0)! }
525 |
/host/spi-builder-workspace/Sources/Gen/Gen.swift:527:21: warning: static property 'latin1' is not concurrency-safe because non-'Sendable' type 'Gen<UnicodeScalar>' (aka 'Gen<Unicode.Scalar>') may have shared mutable state; this is an error in the Swift 6 language mode
  1 | /// A composable, transformable context for generating random values.
  2 | public struct Gen<Value> {
    |               `- note: consider making generic struct 'Gen' conform to the 'Sendable' protocol
  3 |   @usableFromInline
  4 |   internal var _run: (inout AnyRandomNumberGenerator) -> Value
    :
525 |
526 |   /// A generator of Latin-1 characters.
527 |   public static let latin1 = Gen<UInt32>.int(in: 0...255)
    |                     |- warning: static property 'latin1' is not concurrency-safe because non-'Sendable' type 'Gen<UnicodeScalar>' (aka 'Gen<Unicode.Scalar>') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'latin1' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
528 |     .map { UnicodeScalar($0)! }
529 |
[9/9] Compiling Gen Xoshiro.swift
Build complete! (9.36s)
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.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.