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 1.0.0 (e4e893), with Swift 6.0 for Linux on 17 Sep 2024 07:09:31 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/franklefebvre/swift-export.git
Reference: 1.0.0
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/franklefebvre/swift-export
 * tag               1.0.0      -> FETCH_HEAD
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 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/franklefebvre/swift-export.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser
[1/9796] Fetching yams
[2450/21976] Fetching yams, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.19s)
[7935/9796] Fetching yams
Fetched https://github.com/jpsim/Yams.git from cache (1.89s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.1.3 (4.66s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.91s)
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/18] Write sources
[5/18] Compiling reader.c
[6/18] Compiling api.c
[7/18] Compiling parser.c
[8/18] Compiling writer.c
[9/18] Compiling emitter.c
[10/18] Write swift-version-24593BA9C3E375BF.txt
[11/18] Compiling scanner.c
[13/35] Emitting module ArgumentParserToolInfo
[14/35] Compiling ArgumentParserToolInfo ToolInfo.swift
[15/36] Wrapping AST for ArgumentParserToolInfo for debugging
[17/74] Compiling ArgumentParser ArgumentSet.swift
[18/74] Compiling ArgumentParser CommandParser.swift
[19/75] Compiling ArgumentParser EnumerableFlag.swift
[20/75] Compiling ArgumentParser ArgumentDefinition.swift
[21/75] Compiling ArgumentParser Argument.swift
[22/75] Compiling ArgumentParser ArgumentHelp.swift
[23/75] Compiling ArgumentParser OptionGroup.swift
[24/75] Compiling ArgumentParser AsyncParsableCommand.swift
[25/75] Compiling ArgumentParser CommandConfiguration.swift
[26/75] Compiling ArgumentParser CommandGroup.swift
[27/75] Emitting module Yams
[28/75] Compiling ArgumentParser BashCompletionsGenerator.swift
[29/75] Compiling ArgumentParser CompletionsGenerator.swift
[30/75] Compiling ArgumentParser FishCompletionsGenerator.swift
[31/75] Compiling ArgumentParser ZshCompletionsGenerator.swift
[32/75] Compiling Yams YamlError.swift
[33/76] Wrapping AST for Yams for debugging
[35/76] Compiling ArgumentParser Name.swift
[36/76] Compiling ArgumentParser Parsed.swift
[37/76] Compiling ArgumentParser ParsedValues.swift
[38/76] Compiling ArgumentParser ParserError.swift
[39/76] Compiling ArgumentParser SplitArguments.swift
[40/76] Compiling ArgumentParser ArgumentVisibility.swift
[41/76] Compiling ArgumentParser CompletionKind.swift
[42/76] Compiling ArgumentParser Errors.swift
[43/76] Compiling ArgumentParser Flag.swift
[44/76] Compiling ArgumentParser NameSpecification.swift
[45/76] Compiling ArgumentParser Option.swift
[46/81] Emitting module ArgumentParser
[53/81] Compiling ArgumentParser ExpressibleByArgument.swift
[54/81] Compiling ArgumentParser ParsableArguments.swift
[55/81] Compiling ArgumentParser ParsableArgumentsValidation.swift
[56/81] Compiling ArgumentParser ParsableCommand.swift
[57/81] Compiling ArgumentParser ArgumentDecoder.swift
[58/81] Compiling ArgumentParser CollectionExtensions.swift
[59/81] Compiling ArgumentParser Platform.swift
[60/81] Compiling ArgumentParser SequenceExtensions.swift
[61/81] Compiling ArgumentParser StringExtensions.swift
[62/81] Compiling ArgumentParser Tree.swift
[63/81] Compiling ArgumentParser DumpHelpGenerator.swift
[64/81] Compiling ArgumentParser HelpCommand.swift
[65/81] Compiling ArgumentParser HelpGenerator.swift
[66/81] Compiling ArgumentParser MessageInfo.swift
[67/81] Compiling ArgumentParser UsageGenerator.swift
[76/81] Compiling ArgumentParser InputKey.swift
[77/81] Compiling ArgumentParser InputOrigin.swift
[78/82] Wrapping AST for ArgumentParser for debugging
[80/90] Compiling swift_export ExportError.swift
[81/90] Emitting module swift_export
/host/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."
[82/90] Compiling swift_export CommandRunner.swift
[83/90] Compiling swift_export Config.swift
[84/90] Compiling swift_export String+terminal.swift
[85/90] Compiling swift_export URL+filePath.swift
[86/90] Compiling swift_export Logger.swift
[87/90] Compiling swift_export SwiftExport.swift
/host/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."
/host/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")
[88/91] Wrapping AST for swift-export for debugging
[89/91] Write Objects.LinkFileList
[90/91] Linking swift-export
Build complete! (37.05s)
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" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.