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 DotEnvy, reference main (448b45), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 00:52:27 UTC.

Swift 6 data race errors: 3

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/juri/dotenvy.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/juri/dotenvy
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 448b452 Merge pull request #2 from juri/export
Cloned https://github.com/juri/dotenvy.git
Revision (git rev-parse @):
448b452aeb12f8a49264b912f76f40d76093af3a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/juri/dotenvy.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/juri/dotenvy.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/10] Write sources
[5/10] Write dotenv-tool-entitlement.plist
[6/10] Write swift-version-117DEE11B69C53C9.txt
[8/16] Emitting module ArgumentParserToolInfo
[9/16] Compiling ArgumentParserToolInfo ToolInfo.swift
[10/54] Compiling ArgumentParser ArgumentHelp.swift
[11/54] Compiling ArgumentParser ArgumentVisibility.swift
[12/54] Compiling ArgumentParser CompletionKind.swift
[13/54] Compiling ArgumentParser Errors.swift
[14/58] Compiling ArgumentParser Flag.swift
[15/58] Compiling ArgumentParser NameSpecification.swift
[16/58] Compiling ArgumentParser Option.swift
[17/58] Compiling ArgumentParser OptionGroup.swift
[18/58] Compiling ArgumentParser Platform.swift
[19/58] Compiling ArgumentParser SequenceExtensions.swift
[20/58] Compiling ArgumentParser StringExtensions.swift
[21/58] Compiling ArgumentParser Tree.swift
[22/58] Compiling ArgumentParser ParsableArguments.swift
[23/58] Compiling ArgumentParser ParsableArgumentsValidation.swift
[24/58] Compiling ArgumentParser ParsableCommand.swift
[25/58] Compiling ArgumentParser ArgumentDecoder.swift
[26/58] Compiling ArgumentParser InputOrigin.swift
[27/58] Compiling ArgumentParser Name.swift
[28/58] Compiling ArgumentParser Parsed.swift
[29/58] Compiling ArgumentParser ParsedValues.swift
[30/58] Compiling ArgumentParser AsyncParsableCommand.swift
[31/58] Compiling ArgumentParser CommandConfiguration.swift
[32/58] Compiling ArgumentParser EnumerableFlag.swift
[33/58] Compiling ArgumentParser ExpressibleByArgument.swift
[34/58] Compiling ArgumentParser ArgumentDefinition.swift
[35/58] Compiling ArgumentParser ArgumentSet.swift
[36/58] Compiling ArgumentParser CommandParser.swift
[37/58] Compiling ArgumentParser InputKey.swift
[38/58] Emitting module ArgumentParser
[39/58] Compiling DotEnvy FormatError.swift
[40/58] Compiling DotEnvy Load.swift
[41/58] Compiling DotEnvy Parse.swift
[42/58] Emitting module DotEnvy
[43/58] Compiling ArgumentParser ParserError.swift
[44/58] Compiling ArgumentParser SplitArguments.swift
[45/58] Compiling ArgumentParser DumpHelpGenerator.swift
[46/58] Compiling ArgumentParser HelpCommand.swift
[47/58] Compiling ArgumentParser BashCompletionsGenerator.swift
[48/58] Compiling ArgumentParser CompletionsGenerator.swift
[49/58] Compiling ArgumentParser FishCompletionsGenerator.swift
[50/58] Compiling ArgumentParser ZshCompletionsGenerator.swift
[51/58] Compiling ArgumentParser Argument.swift
[52/58] Compiling ArgumentParser HelpGenerator.swift
[53/58] Compiling ArgumentParser MessageInfo.swift
[54/58] Compiling ArgumentParser UsageGenerator.swift
[55/58] Compiling ArgumentParser CollectionExtensions.swift
[56/60] Compiling CLI CLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/CLI/CLI.swift:7: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
  5 | @main
  6 | struct Tool: ParsableCommand {
  7 |     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
  8 |         commandName: "dotenvy-tool",
  9 |         abstract: "Tool for working with dotenv files",
/Users/admin/builder/spi-builder-workspace/Sources/CLI/CLI.swift:15: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
 13 |
 14 | struct Check: ParsableCommand {
 15 |     static var configuration
    |                |- 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
 16 |         = CommandConfiguration(
 17 |             abstract: "Check syntax of input.",
/Users/admin/builder/spi-builder-workspace/Sources/CLI/CLI.swift:39: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
 37 |
 38 | struct JSON: ParsableCommand {
 39 |     static var configuration
    |                |- 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
 40 |         = CommandConfiguration(
 41 |             abstract: "Convert input to JSON.",
[57/60] Emitting module CLI
/Users/admin/builder/spi-builder-workspace/Sources/CLI/CLI.swift:7: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
  5 | @main
  6 | struct Tool: ParsableCommand {
  7 |     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
  8 |         commandName: "dotenvy-tool",
  9 |         abstract: "Tool for working with dotenv files",
/Users/admin/builder/spi-builder-workspace/Sources/CLI/CLI.swift:15: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
 13 |
 14 | struct Check: ParsableCommand {
 15 |     static var configuration
    |                |- 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
 16 |         = CommandConfiguration(
 17 |             abstract: "Check syntax of input.",
/Users/admin/builder/spi-builder-workspace/Sources/CLI/CLI.swift:39: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
 37 |
 38 | struct JSON: ParsableCommand {
 39 |     static var configuration
    |                |- 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
 40 |         = CommandConfiguration(
 41 |             abstract: "Convert input to JSON.",
[57/60] Write Objects.LinkFileList
[58/60] Linking dotenv-tool
[59/60] Applying dotenv-tool
Build complete! (16.38s)
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.59s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.1 (0.56s)
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.3.1
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    }
  ],
  "manifest_display_name" : "DotEnvy",
  "name" : "DotEnvy",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "dotenv-tool",
      "targets" : [
        "CLI"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "DotEnvy",
      "targets" : [
        "DotEnvy"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DotEnvyTests",
      "module_type" : "SwiftTarget",
      "name" : "DotEnvyTests",
      "path" : "Tests/DotEnvyTests",
      "sources" : [
        "ErrorFormatTests.swift",
        "ExportTests.swift",
        "LoadTests.swift",
        "ParseTests.swift"
      ],
      "target_dependencies" : [
        "DotEnvy"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DotEnvy",
      "module_type" : "SwiftTarget",
      "name" : "DotEnvy",
      "path" : "Sources/DotEnvy",
      "product_memberships" : [
        "dotenv-tool",
        "DotEnvy"
      ],
      "sources" : [
        "FormatError.swift",
        "Load.swift",
        "Parse.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CLI",
      "module_type" : "SwiftTarget",
      "name" : "CLI",
      "path" : "Sources/CLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "dotenv-tool"
      ],
      "sources" : [
        "CLI.swift"
      ],
      "target_dependencies" : [
        "DotEnvy"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.10"
}
Done.