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 SwiftEliza, reference 1.0.1 (f3f7be), with Swift 6.1 for Linux on 25 Apr 2025 15:25:46 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AlwaysRightInstitute/SwiftEliza.git
Reference: 1.0.1
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/AlwaysRightInstitute/SwiftEliza
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at f3f7be7 Swift 4.2: Port UIKit code
Cloned https://github.com/AlwaysRightInstitute/SwiftEliza.git
Revision (git rev-parse @):
f3f7be7eccae0e709acec2351c8c2b79e9e2bd61
SUCCESS checkout https://github.com/AlwaysRightInstitute/SwiftEliza.git at 1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/AlwaysRightInstitute/SwiftEliza.git
https://github.com/AlwaysRightInstitute/SwiftEliza.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftEliza",
  "name" : "SwiftEliza",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Eliza",
      "targets" : [
        "Eliza"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "therapist",
      "targets" : [
        "therapist"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "therapist",
      "module_type" : "SwiftTarget",
      "name" : "therapist",
      "path" : "Sources/therapist",
      "product_memberships" : [
        "therapist"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Eliza"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Eliza",
      "module_type" : "SwiftTarget",
      "name" : "Eliza",
      "path" : "Sources/Eliza",
      "product_memberships" : [
        "Eliza",
        "therapist"
      ],
      "sources" : [
        "Eliza.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/9] Emitting module Eliza
[5/9] Compiling Eliza Eliza.swift
[6/10] Wrapping AST for Eliza for debugging
[8/12] Emitting module therapist
/host/spi-builder-workspace/Sources/therapist/main.swift:37:31: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | repeat {
37 |   let cstr = fgets(&buf, 500, stdin)!
   |                               `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 |   let s = String(cString: cstr)
39 |
/usr/include/stdio.h:143:14: note: var declared here
141 |
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
    |              `- note: var declared here
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
[9/12] Compiling therapist main.swift
/host/spi-builder-workspace/Sources/therapist/main.swift:37:31: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | repeat {
37 |   let cstr = fgets(&buf, 500, stdin)!
   |                               `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 |   let s = String(cString: cstr)
39 |
/usr/include/stdio.h:143:14: note: var declared here
141 |
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
    |              `- note: var declared here
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
/host/spi-builder-workspace/Sources/therapist/main.swift:26:7: warning: capture of 'self' with non-sendable type 'Therapist' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | var buf = [ Int8 ](repeating: 0, count: 500)
13 |
14 | class Therapist {
   |       `- note: class 'Therapist' does not conform to the 'Sendable' protocol
15 |
16 |   let Q            : DispatchQueue = DispatchQueue(label: "eliza")
   :
24 |     isThinking = true
25 |     Q.asyncAfter(deadline: .now() + thinkingTime) {
26 |       self.isThinking = false
   |       `- warning: capture of 'self' with non-sendable type 'Therapist' in a '@Sendable' closure; this is an error in the Swift 6 language mode
27 |       let answer = self.eliza.replyTo(question)
28 |       cb(answer)
/host/spi-builder-workspace/Sources/therapist/main.swift:28:7: warning: capture of 'cb' with non-sendable type '(String?) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
26 |       self.isThinking = false
27 |       let answer = self.eliza.replyTo(question)
28 |       cb(answer)
   |       |- warning: capture of 'cb' with non-sendable type '(String?) -> ()' 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'
29 |     }
30 |   }
[10/13] Wrapping AST for therapist for debugging
[11/13] Write Objects.LinkFileList
[12/13] Linking therapist
Build complete! (9.70s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftEliza",
  "name" : "SwiftEliza",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Eliza",
      "targets" : [
        "Eliza"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "therapist",
      "targets" : [
        "therapist"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "therapist",
      "module_type" : "SwiftTarget",
      "name" : "therapist",
      "path" : "Sources/therapist",
      "product_memberships" : [
        "therapist"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Eliza"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Eliza",
      "module_type" : "SwiftTarget",
      "name" : "Eliza",
      "path" : "Sources/Eliza",
      "product_memberships" : [
        "Eliza",
        "therapist"
      ],
      "sources" : [
        "Eliza.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.