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 master (b777d6), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 00:10:12 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/getGuaka/Prompt.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/getGuaka/Prompt
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b777d6b Turn off Travis email notifications
Cloned https://github.com/getGuaka/Prompt.git
Revision (git rev-parse @):
b777d6bb0974caa787ba73d650829d32378024fd
SUCCESS checkout https://github.com/getGuaka/Prompt.git at master
Fetching https://github.com/getGuaka/Args.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
[1/34] Fetching args
[35/14774] Fetching args, quick
[14775/34049] Fetching args, quick, nimble
Fetched https://github.com/Quick/Nimble.git from cache (2.48s)
Fetched https://github.com/Quick/Quick.git from cache (2.48s)
Fetched https://github.com/getGuaka/Args.git from cache (2.48s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 7.3.1 (0.57s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 1.3.2 (0.56s)
Computing version for https://github.com/getGuaka/Args.git
Computed https://github.com/getGuaka/Args.git at 0.1.0 (0.55s)
Creating working copy for https://github.com/getGuaka/Args.git
Working copy of https://github.com/getGuaka/Args.git resolved at 0.1.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 7.3.1
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 1.3.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "prompt",
      "name": "Prompt",
      "url": "https://github.com/getGuaka/Prompt.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Prompt",
      "dependencies": [
        {
          "identity": "args",
          "name": "Args",
          "url": "https://github.com/getGuaka/Args.git",
          "version": "0.1.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Args",
          "dependencies": [
            {
              "identity": "quick",
              "name": "Quick",
              "url": "https://github.com/Quick/Quick.git",
              "version": "1.3.4",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Quick",
              "dependencies": [
                {
                  "identity": "nimble",
                  "name": "Nimble",
                  "url": "https://github.com/Quick/Nimble.git",
                  "version": "7.3.4",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
                  "dependencies": [
                  ]
                }
              ]
            },
            {
              "identity": "nimble",
              "name": "Nimble",
              "url": "https://github.com/Quick/Nimble.git",
              "version": "7.3.4",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "quick",
          "name": "Quick",
          "url": "https://github.com/Quick/Quick.git",
          "version": "1.3.4",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Quick",
          "dependencies": [
            {
              "identity": "nimble",
              "name": "Nimble",
              "url": "https://github.com/Quick/Nimble.git",
              "version": "7.3.4",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "nimble",
          "name": "Nimble",
          "url": "https://github.com/Quick/Nimble.git",
          "version": "7.3.4",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/getGuaka/Prompt.git
[1/44] Fetching prompt
Fetched https://github.com/getGuaka/Prompt.git from cache (0.63s)
Fetching https://github.com/getGuaka/Args.git from cache
Fetching https://github.com/Quick/Quick.git from cache
Fetching https://github.com/Quick/Nimble.git from cache
Fetched https://github.com/getGuaka/Args.git from cache (0.55s)
Fetched https://github.com/Quick/Quick.git from cache (0.55s)
Fetched https://github.com/Quick/Nimble.git from cache (0.55s)
Computing version for https://github.com/getGuaka/Args.git
Computed https://github.com/getGuaka/Args.git at 0.1.1 (0.02s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 1.3.4 (0.55s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 7.3.4 (0.03s)
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/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 7.3.4
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 1.3.4
Creating working copy for https://github.com/getGuaka/Prompt.git
Working copy of https://github.com/getGuaka/Prompt.git resolved at master (b777d6b)
warning: '.resolve-product-dependencies': dependency 'prompt' is not used by any target
Found 3 product dependencies
  - Args
  - Quick
  - Nimble
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/getGuaka/Prompt.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/9] Compiling Args Argument.swift
[5/9] Compiling Args ArgsParser.swift
[6/9] Compiling Args Args.swift
[7/9] Compiling Args ProcessInfo.swift
[8/9] Compiling Args ArgConvertible.swift
[9/9] Emitting module Args
[10/19] Compiling Prompt PromptReader.swift
[11/19] Compiling Prompt PromptPrinter.swift
[12/19] Compiling Prompt AgreeSettings.swift
[13/19] Compiling Prompt Choose.swift
[14/19] Compiling Prompt AskerValidator.swift
[15/19] Compiling Prompt AskSettings.swift
[16/19] Compiling Prompt Agree.swift
[17/19] Compiling Prompt ChooseSettings.swift
[18/19] Compiling Prompt Ask.swift
[19/19] Emitting module Prompt
/Users/admin/builder/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 |
/Users/admin/builder/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/20] Compiling Prompt PromptSettings.swift
/Users/admin/builder/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 |
/Users/admin/builder/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? {
Build complete! (9.22s)
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" : "/Users/admin/builder/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"
}
Done.