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 5 Nov 2024 01:21:04 UTC.

Swift 6 data race errors: 3

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.56.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-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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
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/12353] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.71s)
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.45s)
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/12] Write sources
[5/12] Write swift-version-24593BA9C3E375BF.txt
[7/18] Emitting module ArgumentParserToolInfo
[8/18] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/19] Wrapping AST for ArgumentParserToolInfo for debugging
[11/57] Compiling ArgumentParser OptionGroup.swift
[12/57] Compiling ArgumentParser AsyncParsableCommand.swift
[13/57] Compiling ArgumentParser CommandConfiguration.swift
[14/57] Compiling ArgumentParser CommandGroup.swift
[15/57] Compiling ArgumentParser EnumerableFlag.swift
[16/62] Emitting module ArgumentParser
[17/62] Compiling ArgumentParser Name.swift
[18/62] Compiling ArgumentParser Parsed.swift
[19/62] Compiling ArgumentParser ParsedValues.swift
[20/62] Compiling ArgumentParser ParserError.swift
[21/62] Compiling ArgumentParser SplitArguments.swift
[22/62] Compiling ArgumentParser BashCompletionsGenerator.swift
[23/62] Compiling ArgumentParser CompletionsGenerator.swift
[24/62] Compiling ArgumentParser FishCompletionsGenerator.swift
[25/62] Compiling ArgumentParser ZshCompletionsGenerator.swift
[26/62] Compiling ArgumentParser Argument.swift
[27/62] Compiling ArgumentParser ArgumentHelp.swift
[28/62] Compiling ArgumentParser ArgumentDefinition.swift
[29/62] Compiling ArgumentParser ArgumentSet.swift
[30/62] Compiling ArgumentParser CommandParser.swift
[31/62] Compiling ArgumentParser InputKey.swift
[32/62] Compiling ArgumentParser InputOrigin.swift
[33/62] Compiling ArgumentParser CollectionExtensions.swift
[34/62] Compiling ArgumentParser Platform.swift
[35/62] Compiling ArgumentParser SequenceExtensions.swift
[36/62] Compiling ArgumentParser StringExtensions.swift
[37/62] Compiling ArgumentParser Tree.swift
[38/62] Compiling DotEnvy Load.swift
[39/62] Compiling DotEnvy FormatError.swift
[40/62] Emitting module DotEnvy
[41/62] Compiling DotEnvy Parse.swift
[42/63] Wrapping AST for DotEnvy for debugging
[44/63] Compiling ArgumentParser ExpressibleByArgument.swift
[45/63] Compiling ArgumentParser ParsableArguments.swift
[46/63] Compiling ArgumentParser ParsableArgumentsValidation.swift
[47/63] Compiling ArgumentParser ParsableCommand.swift
[48/63] Compiling ArgumentParser ArgumentDecoder.swift
[49/63] Compiling ArgumentParser DumpHelpGenerator.swift
[50/63] Compiling ArgumentParser HelpCommand.swift
[51/63] Compiling ArgumentParser HelpGenerator.swift
[52/63] Compiling ArgumentParser MessageInfo.swift
[53/63] Compiling ArgumentParser UsageGenerator.swift
[54/63] Compiling ArgumentParser ArgumentVisibility.swift
[55/63] Compiling ArgumentParser CompletionKind.swift
[56/63] Compiling ArgumentParser Errors.swift
[57/63] Compiling ArgumentParser Flag.swift
[58/63] Compiling ArgumentParser NameSpecification.swift
[59/63] Compiling ArgumentParser Option.swift
[60/64] Wrapping AST for ArgumentParser for debugging
[62/66] 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.",
[63/66] 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.",
[64/67] Wrapping AST for CLI for debugging
[65/67] Write Objects.LinkFileList
[66/67] Linking dotenv-tool
Build complete! (16.00s)
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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.