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 5 Nov 2024 01:29:41 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.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.56.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
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 (1.55s)
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.54s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "dotenvy",
      "name": "DotEnvy",
      "url": "https://github.com/juri/dotenvy.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/dotenvy",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser.git",
          "version": "1.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/juri/dotenvy.git
[1/398] Fetching dotenvy
Fetched https://github.com/juri/dotenvy.git from cache (0.76s)
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.55s)
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.03s)
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
Creating working copy for https://github.com/juri/dotenvy.git
Working copy of https://github.com/juri/dotenvy.git resolved at main (448b452)
Found 1 product dependencies
  - swift-argument-parser
========================================
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.1.0.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--7754E27361AE5C74.txt
[8/16] Emitting module ArgumentParserToolInfo
[9/16] Compiling ArgumentParserToolInfo ToolInfo.swift
[10/54] Compiling ArgumentParser AsyncParsableCommand.swift
[11/54] Compiling ArgumentParser CommandConfiguration.swift
[12/54] Compiling ArgumentParser EnumerableFlag.swift
[13/54] Compiling ArgumentParser ExpressibleByArgument.swift
[14/58] Compiling ArgumentParser InputOrigin.swift
[15/58] Compiling ArgumentParser Name.swift
[16/58] Compiling ArgumentParser Parsed.swift
[17/58] Compiling ArgumentParser ParsedValues.swift
[18/58] Compiling ArgumentParser ArgumentHelp.swift
[19/58] Compiling ArgumentParser ArgumentVisibility.swift
[20/58] Compiling ArgumentParser CompletionKind.swift
[21/58] Compiling ArgumentParser Errors.swift
[22/58] Compiling ArgumentParser Platform.swift
[23/58] Compiling ArgumentParser SequenceExtensions.swift
[24/58] Compiling ArgumentParser StringExtensions.swift
[25/58] Compiling ArgumentParser Tree.swift
[26/58] Compiling ArgumentParser ParsableArguments.swift
[27/58] Compiling ArgumentParser ParsableArgumentsValidation.swift
[28/58] Compiling ArgumentParser ParsableCommand.swift
[29/58] Compiling ArgumentParser ArgumentDecoder.swift
[30/58] Compiling ArgumentParser Flag.swift
[31/58] Compiling ArgumentParser NameSpecification.swift
[32/58] Compiling ArgumentParser Option.swift
[33/58] Compiling ArgumentParser OptionGroup.swift
[34/58] Emitting module ArgumentParser
[35/58] Compiling ArgumentParser BashCompletionsGenerator.swift
[36/58] Compiling ArgumentParser CompletionsGenerator.swift
[37/58] Compiling ArgumentParser FishCompletionsGenerator.swift
[38/58] Compiling ArgumentParser ZshCompletionsGenerator.swift
[39/58] Compiling ArgumentParser Argument.swift
[40/58] Compiling ArgumentParser ArgumentDefinition.swift
[41/58] Compiling ArgumentParser ArgumentSet.swift
[42/58] Compiling ArgumentParser CommandParser.swift
[43/58] Compiling ArgumentParser InputKey.swift
[44/58] Compiling DotEnvy Load.swift
[45/58] Emitting module DotEnvy
[46/58] Compiling DotEnvy Parse.swift
[47/58] Compiling DotEnvy FormatError.swift
[48/58] Compiling ArgumentParser ParserError.swift
[49/58] Compiling ArgumentParser SplitArguments.swift
[50/58] Compiling ArgumentParser DumpHelpGenerator.swift
[51/58] Compiling ArgumentParser HelpCommand.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] 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] 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] Write Objects.LinkFileList
[58/60] Linking dotenv-tool
[59/60] Applying dotenv-tool
Build complete! (14.67s)
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"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/juri/dotenvy/main
Repository:               juri/dotenvy
Swift version used:       6.0
Target:                   DotEnvy
Extracting symbol information for 'DotEnvy'...
Finished extracting symbol information for 'DotEnvy'. (2.81s)
Building documentation for 'DotEnvy'...
warning: Parameter 'overrides' is missing documentation
  --> ../Load.swift:92:55-92:55
90 |     /// Create a `DotEnvironment` from `source` and `overrides`.
91 |     ///
92 +     /// - Parameter source: A string in dotenv format.
   |                                                       ╰─suggestion: Document 'overrides' parameter
93 |     public static func make(
94 |         source: String,Finished building documentation for 'DotEnvy' (0.14s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/juri/dotenvy/main
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Updating https://github.com/apple/swift-argument-parser.git
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.27s)
Updated https://github.com/apple/swift-argument-parser.git (0.57s)
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.52s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.67s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.24s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.67s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit Names.swift
[8/57] Compiling SymbolKit SPI.swift
[9/57] Compiling SymbolKit Snippet.swift
[10/57] Compiling SymbolKit Extension.swift
[11/57] Compiling SymbolKit Mixin+Equals.swift
[12/57] Compiling SymbolKit Mixin+Hash.swift
[13/57] Compiling SymbolKit Mixin.swift
[14/57] Compiling SymbolKit LineList.swift
[15/57] Compiling SymbolKit Position.swift
[16/57] Compiling SymbolKit Identifier.swift
[17/57] Compiling SymbolKit KindIdentifier.swift
[18/57] Compiling SymbolKit Location.swift
[19/57] Compiling SymbolKit Mutability.swift
[20/57] Compiling SymbolKit SemanticVersion.swift
[21/57] Compiling SymbolKit AccessControl.swift
[22/57] Compiling SymbolKit Availability.swift
[23/57] Compiling SymbolKit AvailabilityItem.swift
[24/57] Compiling SymbolKit Domain.swift
[25/57] Compiling SymbolKit SourceRange.swift
[26/57] Compiling SymbolKit Metadata.swift
[27/57] Compiling SymbolKit Module.swift
[28/57] Compiling SymbolKit OperatingSystem.swift
[29/57] Compiling SymbolKit Platform.swift
[30/57] Compiling SymbolKit GenericConstraint.swift
[31/57] Compiling SymbolKit GenericParameter.swift
[32/57] Compiling SymbolKit Generics.swift
[33/57] Compiling SymbolKit Namespace.swift
[34/57] Compiling SymbolKit Relationship.swift
[35/57] Compiling SymbolKit RelationshipKind.swift
[36/57] Compiling SymbolKit SourceOrigin.swift
[37/57] Compiling SymbolKit GenericConstraints.swift
[38/57] Compiling SymbolKit Swift.swift
[39/57] Compiling SymbolKit DeclarationFragments.swift
[40/57] Compiling SymbolKit Fragment.swift
[41/57] Compiling SymbolKit FragmentKind.swift
[42/57] Compiling SymbolKit FunctionParameter.swift
[43/57] Compiling SymbolKit FunctionSignature.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets SnippetParser.swift
[53/57] Compiling Snippets Snippet.swift
[54/57] Emitting module Snippets
[55/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[56/61] Compiling snippet_extract URL+Status.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.67s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/5] Compiling DotEnvy Parse.swift
[3/5] Compiling DotEnvy FormatError.swift
[4/5] Emitting module DotEnvy
[5/5] Compiling DotEnvy Load.swift
Build of target: 'DotEnvy' complete! (0.63s)
     152
2	/Users/admin/builder/spi-builder-workspace/.docs/juri/dotenvy/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/juri/dotenvy/main
File count: 152
Doc size:   2.0MB
Preparing doc bundle ...
Uploading prod-juri-dotenvy-main-65d09f7e.zip to s3://spi-docs-inbox/prod-juri-dotenvy-main-65d09f7e.zip
Copying... [15%]
Copying... [30%]
Copying... [45%]
Copying... [61%]
Copying... [76%]
Copying... [91%]
Copying... [100%]
Done.