This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for Linux.

Swift 6 data race errors: 4

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/juri/dotenvy.git
Reference: main
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
 * 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: $workDir/.spi.yml
SUCCESS checkout https://github.com/juri/dotenvy.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/juri/dotenvy.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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
Fetching https://github.com/apple/swift-argument-parser.git
[1/11679] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.68s)
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.44s)
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] Emitting module DotEnvy
/host/spi-builder-workspace/Sources/DotEnvy/Load.swift:136:10: warning: associated value 'dataDecodingError' of 'Sendable'-conforming enum 'LoadError' has non-sendable type 'URL'; this is an error in the Swift 6 language mode
134 | public enum LoadError: Error, Equatable {
135 |     /// The data at URL could not be decoded as UTF-8.
136 |     case dataDecodingError(URL)
    |          `- warning: associated value 'dataDecodingError' of 'Sendable'-conforming enum 'LoadError' has non-sendable type 'URL'; this is an error in the Swift 6 language mode
137 |
138 |     /// A parsing error occurred parsing the String.
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/DotEnvy/Load.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 |
  3 | /// `DotEnvironment` encapsulates a dictionary and possible overrides.
[10/19] Wrapping AST for ArgumentParserToolInfo for debugging
[12/56] Compiling ArgumentParser Option.swift
[13/56] Compiling ArgumentParser OptionGroup.swift
[14/56] Compiling ArgumentParser AsyncParsableCommand.swift
[15/56] Compiling ArgumentParser CommandConfiguration.swift
[16/56] Compiling ArgumentParser EnumerableFlag.swift
[17/61] Emitting module ArgumentParser
[18/61] Compiling ArgumentParser ArgumentVisibility.swift
[19/61] Compiling ArgumentParser CompletionKind.swift
[20/61] Compiling ArgumentParser Errors.swift
[21/61] Compiling ArgumentParser Flag.swift
[22/61] Compiling ArgumentParser NameSpecification.swift
[23/61] Compiling ArgumentParser BashCompletionsGenerator.swift
[24/61] Compiling ArgumentParser CompletionsGenerator.swift
[25/61] Compiling ArgumentParser FishCompletionsGenerator.swift
[26/61] Compiling ArgumentParser ZshCompletionsGenerator.swift
[27/61] Compiling ArgumentParser Argument.swift
[28/61] Compiling ArgumentParser ArgumentHelp.swift
[29/61] Compiling ArgumentParser ExpressibleByArgument.swift
[30/61] Compiling ArgumentParser ParsableArguments.swift
[31/61] Compiling ArgumentParser ParsableArgumentsValidation.swift
[32/61] Compiling ArgumentParser ParsableCommand.swift
[33/61] Compiling ArgumentParser ArgumentDecoder.swift
[34/61] Compiling DotEnvy Load.swift
/host/spi-builder-workspace/Sources/DotEnvy/Load.swift:136:10: warning: associated value 'dataDecodingError' of 'Sendable'-conforming enum 'LoadError' has non-sendable type 'URL'; this is an error in the Swift 6 language mode
134 | public enum LoadError: Error, Equatable {
135 |     /// The data at URL could not be decoded as UTF-8.
136 |     case dataDecodingError(URL)
    |          `- warning: associated value 'dataDecodingError' of 'Sendable'-conforming enum 'LoadError' has non-sendable type 'URL'; this is an error in the Swift 6 language mode
137 |
138 |     /// A parsing error occurred parsing the String.
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
 1 | public struct URL : ReferenceConvertible, Equatable {
   |               `- note: struct 'URL' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSURL
 3 |     public init?(string: String)
/host/spi-builder-workspace/Sources/DotEnvy/Load.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 |
  3 | /// `DotEnvironment` encapsulates a dictionary and possible overrides.
[35/61] Compiling DotEnvy Parse.swift
[36/61] Compiling DotEnvy FormatError.swift
[37/62] Compiling ArgumentParser CollectionExtensions.swift
[38/62] Compiling ArgumentParser Platform.swift
[39/62] Compiling ArgumentParser SequenceExtensions.swift
[40/62] Compiling ArgumentParser StringExtensions.swift
[41/62] Compiling ArgumentParser Tree.swift
[42/62] Wrapping AST for DotEnvy for debugging
[44/62] Compiling ArgumentParser ArgumentDefinition.swift
[45/62] Compiling ArgumentParser ArgumentSet.swift
[46/62] Compiling ArgumentParser CommandParser.swift
[47/62] Compiling ArgumentParser InputKey.swift
[48/62] Compiling ArgumentParser InputOrigin.swift
[49/62] Compiling ArgumentParser DumpHelpGenerator.swift
[50/62] Compiling ArgumentParser HelpCommand.swift
[51/62] Compiling ArgumentParser HelpGenerator.swift
[52/62] Compiling ArgumentParser MessageInfo.swift
[53/62] Compiling ArgumentParser UsageGenerator.swift
[54/62] Compiling ArgumentParser Name.swift
[55/62] Compiling ArgumentParser Parsed.swift
[56/62] Compiling ArgumentParser ParsedValues.swift
[57/62] Compiling ArgumentParser ParserError.swift
[58/62] Compiling ArgumentParser SplitArguments.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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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! (17.57s)
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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.