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 0.3.0 (448b45), with Swift 6.0 for Linux on 16 Sep 2024 00:45:37 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/juri/dotenvy.git
Reference: 0.3.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/juri/dotenvy
 * tag               0.3.0      -> FETCH_HEAD
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 0.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/juri/dotenvy.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/apple/swift-argument-parser.git
[1/12169] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.91s)
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.47s)
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/12] Write sources
[5/12] Write swift-version-24593BA9C3E375BF.txt
[7/18] Compiling ArgumentParserToolInfo ToolInfo.swift
[8/18] Emitting module ArgumentParserToolInfo
[9/19] Wrapping AST for ArgumentParserToolInfo for debugging
[11/56] Emitting module ArgumentParser
[12/61] Compiling ArgumentParser Option.swift
[13/61] Compiling ArgumentParser OptionGroup.swift
[14/61] Compiling ArgumentParser AsyncParsableCommand.swift
[15/61] Compiling ArgumentParser CommandConfiguration.swift
[16/61] Compiling ArgumentParser EnumerableFlag.swift
[17/61] Compiling ArgumentParser ArgumentVisibility.swift
[18/61] Compiling ArgumentParser CompletionKind.swift
[19/61] Compiling ArgumentParser Errors.swift
[20/61] Compiling ArgumentParser Flag.swift
[21/61] Compiling ArgumentParser NameSpecification.swift
[22/61] Compiling ArgumentParser ExpressibleByArgument.swift
[23/61] Compiling ArgumentParser ParsableArguments.swift
[24/61] Compiling ArgumentParser ParsableArgumentsValidation.swift
[25/61] Compiling ArgumentParser ParsableCommand.swift
[26/61] Compiling ArgumentParser ArgumentDecoder.swift
[27/61] Compiling ArgumentParser BashCompletionsGenerator.swift
[28/61] Compiling ArgumentParser CompletionsGenerator.swift
[29/61] Compiling ArgumentParser FishCompletionsGenerator.swift
[30/61] Compiling ArgumentParser ZshCompletionsGenerator.swift
[31/61] Compiling ArgumentParser Argument.swift
[32/61] Compiling ArgumentParser ArgumentHelp.swift
[33/61] Compiling ArgumentParser ArgumentDefinition.swift
[34/61] Compiling ArgumentParser ArgumentSet.swift
[35/61] Compiling ArgumentParser CommandParser.swift
[36/61] Compiling ArgumentParser InputKey.swift
[37/61] Compiling ArgumentParser InputOrigin.swift
[38/61] Compiling DotEnvy Load.swift
[39/61] Compiling DotEnvy FormatError.swift
[40/61] Compiling DotEnvy Parse.swift
[41/61] Emitting module DotEnvy
[42/62] Compiling ArgumentParser CollectionExtensions.swift
[43/62] Compiling ArgumentParser Platform.swift
[44/62] Compiling ArgumentParser SequenceExtensions.swift
[45/62] Compiling ArgumentParser StringExtensions.swift
[46/62] Compiling ArgumentParser Tree.swift
[47/62] Wrapping AST for DotEnvy for debugging
[49/62] Compiling ArgumentParser Name.swift
[50/62] Compiling ArgumentParser Parsed.swift
[51/62] Compiling ArgumentParser ParsedValues.swift
[52/62] Compiling ArgumentParser ParserError.swift
[53/62] Compiling ArgumentParser SplitArguments.swift
[54/62] Compiling ArgumentParser DumpHelpGenerator.swift
[55/62] Compiling ArgumentParser HelpCommand.swift
[56/62] Compiling ArgumentParser HelpGenerator.swift
[57/62] Compiling ArgumentParser MessageInfo.swift
[58/62] Compiling ArgumentParser UsageGenerator.swift
[59/63] Wrapping AST for ArgumentParser for debugging
[61/65] Emitting module CLI
/host/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",
/host/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.",
/host/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.",
[62/65] Compiling CLI CLI.swift
/host/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",
/host/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.",
/host/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.",
[63/66] Wrapping AST for CLI for debugging
[64/66] Write Objects.LinkFileList
[65/66] Linking dotenv-tool
Build complete! (22.26s)
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" : "/host/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"
}
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.