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 fetch_cli, reference master (39369c), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 12:15:41 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/c2p-cmd/fetch_cli_mac.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/c2p-cmd/fetch_cli_mac
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 39369c1 Update README.md
Cloned https://github.com/c2p-cmd/fetch_cli_mac.git
Revision (git rev-parse @):
39369c133dde1394bda361c3c6817729b700f78a
SUCCESS checkout https://github.com/c2p-cmd/fetch_cli_mac.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/c2p-cmd/fetch_cli_mac.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/11] Write sources
[3/11] Copying standard.flf
[3/11] Write sources
[6/11] Write fetch_cli-entitlement.plist
[7/11] Write swift-version-117DEE11B69C53C9.txt
[9/18] Emitting module ArgumentParserToolInfo
[10/18] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/57] Compiling ArgumentParser InputOrigin.swift
[12/57] Compiling ArgumentParser Name.swift
[13/57] Compiling ArgumentParser Parsed.swift
[14/57] Compiling ArgumentParser ParsedValues.swift
[15/61] Emitting module ArgumentParser
[16/61] Compiling ArgumentParser CommandConfiguration.swift
[17/61] Compiling ArgumentParser CommandGroup.swift
[18/61] Compiling ArgumentParser EnumerableFlag.swift
[19/61] Compiling ArgumentParser ExpressibleByArgument.swift
[20/61] Compiling ArgumentParser NameSpecification.swift
[21/61] Compiling ArgumentParser Option.swift
[22/61] Compiling ArgumentParser OptionGroup.swift
[23/61] Compiling ArgumentParser AsyncParsableCommand.swift
[24/61] Compiling ArgumentParser ArgumentDefinition.swift
[25/61] Compiling ArgumentParser ArgumentSet.swift
[26/61] Compiling ArgumentParser CommandParser.swift
[27/61] Compiling ArgumentParser InputKey.swift
[28/61] Compiling ArgumentParser Platform.swift
[29/61] Compiling ArgumentParser SequenceExtensions.swift
[30/61] Compiling ArgumentParser StringExtensions.swift
[31/61] Compiling ArgumentParser Tree.swift
[32/61] Compiling Figlet resource_bundle_accessor.swift
[33/61] Compiling Figlet Figlet.swift
[34/61] Compiling Figlet FigletFile.swift
[35/61] Compiling Figlet Font.swift
[36/61] Emitting module Figlet
[37/61] Compiling ArgumentParser ParsableArguments.swift
[38/61] Compiling ArgumentParser ParsableArgumentsValidation.swift
[39/61] Compiling ArgumentParser ParsableCommand.swift
[40/61] Compiling ArgumentParser ArgumentDecoder.swift
[41/61] Compiling ArgumentParser ParserError.swift
[42/61] Compiling ArgumentParser SplitArguments.swift
[43/61] Compiling ArgumentParser DumpHelpGenerator.swift
[44/61] Compiling ArgumentParser HelpCommand.swift
[45/61] Compiling ArgumentParser BashCompletionsGenerator.swift
[46/61] Compiling ArgumentParser CompletionsGenerator.swift
[47/61] Compiling ArgumentParser FishCompletionsGenerator.swift
[48/61] Compiling ArgumentParser ZshCompletionsGenerator.swift
[49/61] Compiling ArgumentParser Argument.swift
[50/61] Compiling ArgumentParser ArgumentHelp.swift
[51/61] Compiling ArgumentParser ArgumentVisibility.swift
[52/61] Compiling ArgumentParser CompletionKind.swift
[53/61] Compiling ArgumentParser Errors.swift
[54/61] Compiling ArgumentParser Flag.swift
[55/61] Compiling ArgumentParser HelpGenerator.swift
[56/61] Compiling ArgumentParser MessageInfo.swift
[57/61] Compiling ArgumentParser UsageGenerator.swift
[58/61] Compiling ArgumentParser CollectionExtensions.swift
[59/63] Compiling fetch_cli fetch_cli.swift
/Users/admin/builder/spi-builder-workspace/Sources/fetch_cli.swift:11:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | @main
10 | struct fetch_cli: AsyncParsableCommand {
11 |     static var configuration = CommandConfiguration(
   |                |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'configuration' 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
12 |         abstract: "Fetch string from a file and copy to clipboard!"
13 |     )
[60/63] Emitting module fetch_cli
/Users/admin/builder/spi-builder-workspace/Sources/fetch_cli.swift:11:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 | @main
10 | struct fetch_cli: AsyncParsableCommand {
11 |     static var configuration = CommandConfiguration(
   |                |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'configuration' 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
12 |         abstract: "Fetch string from a file and copy to clipboard!"
13 |     )
[60/63] Write Objects.LinkFileList
[61/63] Linking fetch_cli
[62/63] Applying fetch_cli
Build complete! (25.09s)
Fetching https://github.com/apple/example-package-figlet
[3/26] Fetching example-package-figlet
Fetched https://github.com/apple/example-package-figlet from cache (0.68s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/12169] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.51s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (0.50s)
Creating working copy for https://github.com/apple/example-package-figlet
Working copy of https://github.com/apple/example-package-figlet resolved at main (166eef4)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "example-package-figlet",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/example-package-figlet"
    }
  ],
  "manifest_display_name" : "fetch_cli",
  "name" : "fetch_cli",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "fetch_cli",
      "targets" : [
        "fetch_cli"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "fetch_cli",
      "module_type" : "SwiftTarget",
      "name" : "fetch_cli",
      "path" : "Sources",
      "product_dependencies" : [
        "ArgumentParser",
        "Figlet"
      ],
      "product_memberships" : [
        "fetch_cli"
      ],
      "sources" : [
        "fetch_cli.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Done.