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-export, reference main (e4e893), with Swift 6.0 for macOS (SPM) on 17 Sep 2024 07:17:09 UTC.

Swift 6 data race errors: 0

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/franklefebvre/swift-export.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/franklefebvre/swift-export
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e4e8938 Fix download link
Cloned https://github.com/franklefebvre/swift-export.git
Revision (git rev-parse @):
e4e89380b885ae47b96e09744a2b6dd99de33cf0
SUCCESS checkout https://github.com/franklefebvre/swift-export.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/franklefebvre/swift-export.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/16] Write sources
[4/16] Write swift-export-entitlement.plist
[5/16] Write sources
[6/16] Write swift-version-117DEE11B69C53C9.txt
[7/18] Compiling reader.c
[8/18] Compiling api.c
[9/18] Compiling emitter.c
[10/18] Compiling scanner.c
[11/18] Compiling writer.c
[12/18] Compiling parser.c
[14/33] Emitting module ArgumentParserToolInfo
[15/33] Compiling ArgumentParserToolInfo ToolInfo.swift
[16/72] Emitting module Yams
[17/73] Compiling ArgumentParser ArgumentHelp.swift
[18/73] Compiling ArgumentParser ArgumentVisibility.swift
[19/73] Compiling ArgumentParser CompletionKind.swift
[20/73] Compiling ArgumentParser Errors.swift
[21/73] Compiling ArgumentParser Flag.swift
[22/77] Compiling ArgumentParser NameSpecification.swift
[23/77] Compiling ArgumentParser Option.swift
[24/77] Compiling ArgumentParser OptionGroup.swift
[25/77] Compiling ArgumentParser AsyncParsableCommand.swift
[26/77] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/77] Compiling ArgumentParser CompletionsGenerator.swift
[28/77] Compiling ArgumentParser FishCompletionsGenerator.swift
[29/77] Compiling ArgumentParser ZshCompletionsGenerator.swift
[30/77] Compiling ArgumentParser Argument.swift
[31/77] Emitting module ArgumentParser
[32/77] Compiling ArgumentParser InputOrigin.swift
[33/77] Compiling ArgumentParser Name.swift
[34/77] Compiling ArgumentParser Parsed.swift
[35/77] Compiling ArgumentParser ParsedValues.swift
[36/77] Compiling ArgumentParser ParsableArguments.swift
[37/77] Compiling ArgumentParser ParsableArgumentsValidation.swift
[38/77] Compiling ArgumentParser ParsableCommand.swift
[39/77] Compiling ArgumentParser ArgumentDecoder.swift
[40/77] Compiling ArgumentParser ArgumentDefinition.swift
[41/77] Compiling ArgumentParser ArgumentSet.swift
[42/77] Compiling ArgumentParser CommandParser.swift
[43/77] Compiling ArgumentParser InputKey.swift
[44/77] Compiling ArgumentParser Platform.swift
[45/77] Compiling ArgumentParser SequenceExtensions.swift
[46/77] Compiling ArgumentParser StringExtensions.swift
[47/77] Compiling ArgumentParser Tree.swift
[48/77] Compiling Yams YamlError.swift
[49/77] Compiling Yams Tag.swift
[50/77] Compiling Yams Resolver.swift
[57/77] Compiling Yams String+Yams.swift
[58/77] Compiling Yams Representer.swift
[63/77] Compiling ArgumentParser CommandConfiguration.swift
[64/77] Compiling ArgumentParser CommandGroup.swift
[65/77] Compiling ArgumentParser EnumerableFlag.swift
[66/77] Compiling ArgumentParser ExpressibleByArgument.swift
[67/77] Compiling ArgumentParser ParserError.swift
[68/77] Compiling ArgumentParser SplitArguments.swift
[69/77] Compiling ArgumentParser DumpHelpGenerator.swift
[70/77] Compiling ArgumentParser HelpCommand.swift
[71/77] Compiling ArgumentParser HelpGenerator.swift
[72/77] Compiling ArgumentParser MessageInfo.swift
[73/77] Compiling ArgumentParser UsageGenerator.swift
[74/77] Compiling ArgumentParser CollectionExtensions.swift
[75/85] Compiling swift_export URL+filePath.swift
[76/85] Compiling swift_export String+terminal.swift
[77/85] Compiling swift_export Logger.swift
[78/85] Compiling swift_export ExportError.swift
[79/85] Emitting module swift_export
/Users/admin/builder/spi-builder-workspace/Sources/SwiftExport.swift:6: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
  4 | @main
  5 | struct SwiftExport: AsyncParsableCommand {
  6 |     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
  7 |         commandName: "swift export",
  8 |         abstract: "A utility to create macOS installer packages for command-line tools."
[80/85] Compiling swift_export CommandRunner.swift
[81/85] Compiling swift_export Config.swift
[82/85] Compiling swift_export SwiftExport.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftExport.swift:6: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
  4 | @main
  5 | struct SwiftExport: AsyncParsableCommand {
  6 |     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
  7 |         commandName: "swift export",
  8 |         abstract: "A utility to create macOS installer packages for command-line tools."
/Users/admin/builder/spi-builder-workspace/Sources/SwiftExport.swift:179:26: warning: sending value of non-Sendable type '() -> String' with later accesses from nonisolated context to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
177 |
178 |         if !dryRun {
179 |             await logger.info("Creating output directory: \(config.outputDirectory.filePath)")
    |                          `- warning: sending value of non-Sendable type '() -> String' with later accesses from nonisolated context to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
180 |             try FileManager.default.createDirectory(at: config.outputDirectory, withIntermediateDirectories: true)
181 |         }
    :
185 |         await logger.info("Creating signed installer package at \(pkgFile.filePath)")
186 |         let pkgIdentifier = config.exportConfig.package.identifier ?? codesignIdentifier
187 |         try await shell(.pkgbuild, "--identifier", pkgIdentifier, "--version", config.pkgVersion, "--root", pkgRoot.filePath, "--sign", config.exportConfig.package.certificate, pkgFile.filePath)
    |                        `- note: access can happen concurrently
188 |
189 |         await logger.info("Submitting installer package for notarization")
[82/85] Write Objects.LinkFileList
[83/85] Linking swift-export
[84/85] Applying swift-export
Build complete! (24.76s)
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser
[1/9796] Fetching yams
[2/21976] Fetching yams, swift-argument-parser
Fetched https://github.com/jpsim/Yams.git from cache (1.88s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.88s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.1.3 (3.25s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.53s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.1.3
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.1.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    }
  ],
  "manifest_display_name" : "swift-export",
  "name" : "swift-export",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "swift-export",
      "targets" : [
        "swift-export"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swift_export",
      "module_type" : "SwiftTarget",
      "name" : "swift-export",
      "path" : "Sources",
      "product_dependencies" : [
        "ArgumentParser",
        "Yams"
      ],
      "product_memberships" : [
        "swift-export"
      ],
      "sources" : [
        "CommandRunner.swift",
        "Config.swift",
        "ExportError.swift",
        "Logger.swift",
        "String+terminal.swift",
        "SwiftExport.swift",
        "URL+filePath.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Done.