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 TerraformKit, reference master (18f683), with Swift 6.1 for Linux on 26 Apr 2025 04:19:58 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fourplusone/TerraformKit.git
Reference: master
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/fourplusone/TerraformKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 18f6837 [FIX] wait until stdout/stderr of invoked processes are closed
Cloned https://github.com/fourplusone/TerraformKit.git
Revision (git rev-parse @):
18f68372fd28ffca8324f434e45a3a4b40c42026
SUCCESS checkout https://github.com/fourplusone/TerraformKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fourplusone/TerraformKit.git
https://github.com/fourplusone/TerraformKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "zipfoundation",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.9.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/weichsel/ZIPFoundation/"
    }
  ],
  "manifest_display_name" : "TerraformKit",
  "name" : "TerraformKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "TerraformKit",
      "targets" : [
        "TerraformKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "TerraformKitTests",
      "module_type" : "SwiftTarget",
      "name" : "TerraformKitTests",
      "path" : "Tests/TerraformKitTests",
      "sources" : [
        "DeserializationTests.swift",
        "TerraformKitTests.swift",
        "Test Data/data.swift"
      ],
      "target_dependencies" : [
        "TerraformKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerraformKit",
      "module_type" : "SwiftTarget",
      "name" : "TerraformKit",
      "path" : "Sources/TerraformKit",
      "product_dependencies" : [
        "ZIPFoundation"
      ],
      "product_memberships" : [
        "TerraformKit"
      ],
      "sources" : [
        "Models/Plan.swift",
        "Models/Schema.swift",
        "Models/State.swift",
        "Models/Values.swift",
        "Terraform.swift",
        "Utilities/AnyDecodable.swift",
        "Utilities/AnyEncodable.swift",
        "Utilities/Decoder.swift",
        "Utilities/EmptyCollection.swift",
        "Utilities/Invoke.swift",
        "Utilities/TemporaryFile.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/weichsel/ZIPFoundation/
[1/5562] Fetching zipfoundation
Fetched https://github.com/weichsel/ZIPFoundation/ from cache (0.47s)
Computing version for https://github.com/weichsel/ZIPFoundation/
Computed https://github.com/weichsel/ZIPFoundation/ at 0.9.19 (1.05s)
Creating working copy for https://github.com/weichsel/ZIPFoundation/
Working copy of https://github.com/weichsel/ZIPFoundation/ resolved at 0.9.19
warning: 'zipfoundation': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/23] Emitting module ZIPFoundation
[5/25] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[6/25] Compiling ZIPFoundation URL+ZIP.swift
[7/25] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
[8/25] Compiling ZIPFoundation Archive+Writing.swift
[9/25] Compiling ZIPFoundation Archive+WritingDeprecated.swift
[10/25] Compiling ZIPFoundation Archive+MemoryFile.swift
[11/25] Compiling ZIPFoundation Archive+Progress.swift
[12/25] Compiling ZIPFoundation Archive+Reading.swift
[13/25] Compiling ZIPFoundation Entry+Serialization.swift
[14/25] Compiling ZIPFoundation Entry+ZIP64.swift
[15/25] Compiling ZIPFoundation Archive+ZIP64.swift
[16/25] Compiling ZIPFoundation Archive.swift
[17/25] Compiling ZIPFoundation Data+Compression.swift
[18/25] Compiling ZIPFoundation Archive+BackingConfiguration.swift
[19/25] Compiling ZIPFoundation Archive+Deprecated.swift
[20/25] Compiling ZIPFoundation Archive+Helpers.swift
[21/25] Compiling ZIPFoundation Data+CompressionDeprecated.swift
[22/25] Compiling ZIPFoundation Data+Serialization.swift
[23/25] Compiling ZIPFoundation Date+ZIP.swift
[24/25] Compiling ZIPFoundation Entry.swift
[25/25] Compiling ZIPFoundation FileManager+ZIP.swift
[27/37] Compiling TerraformKit Invoke.swift
/host/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:585:29: warning: capture of 'self' with non-sendable type 'OutputHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
549 |         p.standardInput = FileHandle.standardInput
550 |
551 |         class OutputHandler {
    |               `- note: class 'OutputHandler' does not conform to the 'Sendable' protocol
552 |
553 |             let fileHandle: Any?
    :
583 |                         let availableData = handle.availableData
584 |                         if availableData.count == 0 {
585 |                             self.sema?.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'OutputHandler' in a '@Sendable' closure; this is an error in the Swift 6 language mode
586 |                         } else {
587 |                             self.buffer?.append(availableData)
[28/38] Compiling TerraformKit Decoder.swift
/host/spi-builder-workspace/Sources/TerraformKit/Utilities/Decoder.swift:10:7: warning: class 'TerraformDecoder' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | class TerraformDecoder : JSONDecoder {
   |       `- warning: class 'TerraformDecoder' must restate inherited '@unchecked Sendable' conformance
11 |     override init() {
12 |         super.init()
[29/38] Compiling TerraformKit EmptyCollection.swift
[30/38] Compiling TerraformKit AnyEncodable.swift
[31/38] Compiling TerraformKit TemporaryFile.swift
[32/38] Compiling TerraformKit Terraform.swift
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:25:22: warning: using '@_implementationOnly' without enabling library evolution for 'TerraformKit' may lead to instability during execution
 23 |
 24 |
 25 | @_implementationOnly import ZIPFoundation
    |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'TerraformKit' may lead to instability during execution
 26 |
 27 | public enum ColorMode {
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:65:16: warning: static property 'defaultInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
 57 |     let terraformExecutable: URL
 58 |
 59 |     public struct InvocationSettings {
    |                   `- note: consider making struct 'InvocationSettings' conform to the 'Sendable' protocol
 60 |         let stderr: Output
 61 |         let stdout: Output
    :
 63 |     }
 64 |
 65 |     static let defaultInvocationSettings = InvocationSettings(
    |                |- warning: static property 'defaultInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'defaultInvocationSettings' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |         stderr: .passthroughOnFailure,
 67 |         stdout: .passthroughOnFailure,
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:70:16: warning: static property 'internalInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
 57 |     let terraformExecutable: URL
 58 |
 59 |     public struct InvocationSettings {
    |                   `- note: consider making struct 'InvocationSettings' conform to the 'Sendable' protocol
 60 |         let stderr: Output
 61 |         let stdout: Output
    :
 68 |         colorMode: .none)
 69 |
 70 |     static let internalInvocationSettings = InvocationSettings(
    |                |- warning: static property 'internalInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'internalInvocationSettings' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |         stderr: .discard,
 72 |         stdout: .discard,
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:90:13: warning: mutation of captured var 'downloadedURL' in concurrently-executing code; this is an error in the Swift 6 language mode
 88 |
 89 |         URLSession.shared.downloadTask(with: downloadURL) { (url, response, error) in
 90 |             downloadedURL = url
    |             `- warning: mutation of captured var 'downloadedURL' in concurrently-executing code; this is an error in the Swift 6 language mode
 91 |             semaphore.signal()
 92 |         }.resume()
[33/38] Compiling TerraformKit AnyDecodable.swift
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:25:22: warning: using '@_implementationOnly' without enabling library evolution for 'TerraformKit' may lead to instability during execution
 23 |
 24 |
 25 | @_implementationOnly import ZIPFoundation
    |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'TerraformKit' may lead to instability during execution
 26 |
 27 | public enum ColorMode {
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:65:16: warning: static property 'defaultInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
 57 |     let terraformExecutable: URL
 58 |
 59 |     public struct InvocationSettings {
    |                   `- note: consider making struct 'InvocationSettings' conform to the 'Sendable' protocol
 60 |         let stderr: Output
 61 |         let stdout: Output
    :
 63 |     }
 64 |
 65 |     static let defaultInvocationSettings = InvocationSettings(
    |                |- warning: static property 'defaultInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'defaultInvocationSettings' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |         stderr: .passthroughOnFailure,
 67 |         stdout: .passthroughOnFailure,
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:70:16: warning: static property 'internalInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
 57 |     let terraformExecutable: URL
 58 |
 59 |     public struct InvocationSettings {
    |                   `- note: consider making struct 'InvocationSettings' conform to the 'Sendable' protocol
 60 |         let stderr: Output
 61 |         let stdout: Output
    :
 68 |         colorMode: .none)
 69 |
 70 |     static let internalInvocationSettings = InvocationSettings(
    |                |- warning: static property 'internalInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'internalInvocationSettings' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |         stderr: .discard,
 72 |         stdout: .discard,
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:90:13: warning: mutation of captured var 'downloadedURL' in concurrently-executing code; this is an error in the Swift 6 language mode
 88 |
 89 |         URLSession.shared.downloadTask(with: downloadURL) { (url, response, error) in
 90 |             downloadedURL = url
    |             `- warning: mutation of captured var 'downloadedURL' in concurrently-executing code; this is an error in the Swift 6 language mode
 91 |             semaphore.signal()
 92 |         }.resume()
[34/38] Compiling TerraformKit State.swift
[35/38] Compiling TerraformKit Values.swift
[36/38] Emitting module TerraformKit
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:25:22: warning: using '@_implementationOnly' without enabling library evolution for 'TerraformKit' may lead to instability during execution
 23 |
 24 |
 25 | @_implementationOnly import ZIPFoundation
    |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'TerraformKit' may lead to instability during execution
 26 |
 27 | public enum ColorMode {
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:65:16: warning: static property 'defaultInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
 57 |     let terraformExecutable: URL
 58 |
 59 |     public struct InvocationSettings {
    |                   `- note: consider making struct 'InvocationSettings' conform to the 'Sendable' protocol
 60 |         let stderr: Output
 61 |         let stdout: Output
    :
 63 |     }
 64 |
 65 |     static let defaultInvocationSettings = InvocationSettings(
    |                |- warning: static property 'defaultInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'defaultInvocationSettings' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 66 |         stderr: .passthroughOnFailure,
 67 |         stdout: .passthroughOnFailure,
/host/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:70:16: warning: static property 'internalInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
 57 |     let terraformExecutable: URL
 58 |
 59 |     public struct InvocationSettings {
    |                   `- note: consider making struct 'InvocationSettings' conform to the 'Sendable' protocol
 60 |         let stderr: Output
 61 |         let stdout: Output
    :
 68 |         colorMode: .none)
 69 |
 70 |     static let internalInvocationSettings = InvocationSettings(
    |                |- warning: static property 'internalInvocationSettings' is not concurrency-safe because non-'Sendable' type 'Terraform.InvocationSettings' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'internalInvocationSettings' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 71 |         stderr: .discard,
 72 |         stdout: .discard,
/host/spi-builder-workspace/Sources/TerraformKit/Utilities/Decoder.swift:10:7: warning: class 'TerraformDecoder' must restate inherited '@unchecked Sendable' conformance
 8 | import Foundation
 9 |
10 | class TerraformDecoder : JSONDecoder {
   |       `- warning: class 'TerraformDecoder' must restate inherited '@unchecked Sendable' conformance
11 |     override init() {
12 |         super.init()
[37/38] Compiling TerraformKit Plan.swift
[38/38] Compiling TerraformKit Schema.swift
Build complete! (13.78s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "zipfoundation",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.9.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/weichsel/ZIPFoundation/"
    }
  ],
  "manifest_display_name" : "TerraformKit",
  "name" : "TerraformKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "TerraformKit",
      "targets" : [
        "TerraformKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "TerraformKitTests",
      "module_type" : "SwiftTarget",
      "name" : "TerraformKitTests",
      "path" : "Tests/TerraformKitTests",
      "sources" : [
        "DeserializationTests.swift",
        "TerraformKitTests.swift",
        "Test Data/data.swift"
      ],
      "target_dependencies" : [
        "TerraformKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TerraformKit",
      "module_type" : "SwiftTarget",
      "name" : "TerraformKit",
      "path" : "Sources/TerraformKit",
      "product_dependencies" : [
        "ZIPFoundation"
      ],
      "product_memberships" : [
        "TerraformKit"
      ],
      "sources" : [
        "Models/Plan.swift",
        "Models/Schema.swift",
        "Models/State.swift",
        "Models/Values.swift",
        "Terraform.swift",
        "Utilities/AnyDecodable.swift",
        "Utilities/AnyEncodable.swift",
        "Utilities/Decoder.swift",
        "Utilities/EmptyCollection.swift",
        "Utilities/Invoke.swift",
        "Utilities/TemporaryFile.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.