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 Prompt, reference 0.1.1 (265f92), with Swift 6.0 for Linux on 27 Nov 2024 00:02:41 UTC.

Swift 6 data race errors: 2

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/getGuaka/Prompt.git
Reference: 0.1.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/getGuaka/Prompt
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at 265f929 Make PromptPrinter and PromptReader public
Cloned https://github.com/getGuaka/Prompt.git
Revision (git rev-parse @):
265f929fda31c59d7dc5f1c674fd435e41dd9881
SUCCESS checkout https://github.com/getGuaka/Prompt.git at 0.1.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/getGuaka/Prompt.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
Fetching https://github.com/getGuaka/Args.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/Quick/Quick.git
[1/14740] Fetching quick
[14741/14774] Fetching quick, args
Fetched https://github.com/getGuaka/Args.git from cache (0.96s)
Fetched https://github.com/Quick/Quick.git from cache (0.96s)
[1/19275] Fetching nimble
Fetched https://github.com/Quick/Nimble.git from cache (2.44s)
Computing version for https://github.com/getGuaka/Args.git
Computed https://github.com/getGuaka/Args.git at 0.1.1 (0.47s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 1.3.4 (0.50s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 7.3.4 (0.47s)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 7.3.4
Creating working copy for https://github.com/getGuaka/Args.git
Working copy of https://github.com/getGuaka/Args.git resolved at 0.1.1
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 1.3.4
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling Args ArgConvertible.swift
[5/9] Emitting module Args
[6/9] Compiling Args Args.swift
[7/9] Compiling Args ArgsParser.swift
[8/9] Compiling Args ProcessInfo.swift
[9/9] Compiling Args Argument.swift
[11/20] Compiling Prompt AskerValidator.swift
[12/21] Emitting module Prompt
/host/spi-builder-workspace/Sources/Prompt/PromptSettings.swift:12:23: warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public class PromptSettings {
11 |
12 |     public static var reader: PromptReader = ConsolePromptReader()
   |                       |- warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'reader' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'reader' 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
13 |     public static var printer: PromptPrinter = ConsolePromptPrinter()
14 |
/host/spi-builder-workspace/Sources/Prompt/PromptSettings.swift:13:23: warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 |     public static var reader: PromptReader = ConsolePromptReader()
13 |     public static var printer: PromptPrinter = ConsolePromptPrinter()
   |                       |- warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'printer' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'printer' 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
14 |
15 |     public class func read() -> String? {
[13/21] Compiling Prompt PromptReader.swift
[14/21] Compiling Prompt PromptPrinter.swift
[15/21] Compiling Prompt Ask.swift
[16/21] Compiling Prompt AskSettings.swift
[17/21] Compiling Prompt Agree.swift
[18/21] Compiling Prompt AgreeSettings.swift
[19/21] Compiling Prompt PromptSettings.swift
/host/spi-builder-workspace/Sources/Prompt/PromptSettings.swift:12:23: warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public class PromptSettings {
11 |
12 |     public static var reader: PromptReader = ConsolePromptReader()
   |                       |- warning: static property 'reader' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'reader' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'reader' 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
13 |     public static var printer: PromptPrinter = ConsolePromptPrinter()
14 |
/host/spi-builder-workspace/Sources/Prompt/PromptSettings.swift:13:23: warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 |     public static var reader: PromptReader = ConsolePromptReader()
13 |     public static var printer: PromptPrinter = ConsolePromptPrinter()
   |                       |- warning: static property 'printer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'printer' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'printer' 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
14 |
15 |     public class func read() -> String? {
[20/21] Compiling Prompt Choose.swift
[21/21] Compiling Prompt ChooseSettings.swift
Build complete! (26.49s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "args",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/getGuaka/Args.git"
    },
    {
      "identity" : "quick",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Quick.git"
    },
    {
      "identity" : "nimble",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "7.3.0",
            "upper_bound" : "8.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Nimble.git"
    }
  ],
  "manifest_display_name" : "Prompt",
  "name" : "Prompt",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Prompt",
      "targets" : [
        "Prompt"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PromptTests",
      "module_type" : "SwiftTarget",
      "name" : "PromptTests",
      "path" : "Tests/PromptTests",
      "product_dependencies" : [
        "Nimble",
        "Quick"
      ],
      "sources" : [
        "AgreeSettingsTest.swift",
        "AgreeTests.swift",
        "AskSettingsTests.swift",
        "AskTests.swift",
        "ChooseSettingsTests.swift",
        "ChooseTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Prompt"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Prompt",
      "module_type" : "SwiftTarget",
      "name" : "Prompt",
      "path" : "Sources/Prompt",
      "product_dependencies" : [
        "Args"
      ],
      "product_memberships" : [
        "Prompt"
      ],
      "sources" : [
        "Agree.swift",
        "AgreeSettings.swift",
        "Ask.swift",
        "AskSettings.swift",
        "AskerValidator.swift",
        "Choose.swift",
        "ChooseSettings.swift",
        "PromptPrinter.swift",
        "PromptReader.swift",
        "PromptSettings.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.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.