Build Information
Failed to build TerraformKit, reference 0.3.1 (e0a3b2
), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 18:29:19 UTC.
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fourplusone/TerraformKit.git
Reference: 0.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fourplusone/TerraformKit
* tag 0.3.1 -> FETCH_HEAD
HEAD is now at e0a3b2a [FIX] Use correct output decoding key
Cloned https://github.com/fourplusone/TerraformKit.git
Revision (git rev-parse @):
e0a3b2a072730843b2f4337ee38a29183311d76c
SUCCESS checkout https://github.com/fourplusone/TerraformKit.git at 0.3.1
Fetching https://github.com/weichsel/ZIPFoundation/
[1/5466] Fetching zipfoundation
Fetched https://github.com/weichsel/ZIPFoundation/ from cache (1.26s)
Computing version for https://github.com/weichsel/ZIPFoundation/
Computed https://github.com/weichsel/ZIPFoundation/ at 0.9.11 (0.60s)
Creating working copy for https://github.com/weichsel/ZIPFoundation/
Working copy of https://github.com/weichsel/ZIPFoundation/ resolved at 0.9.11
========================================
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": "terraformkit",
"name": "TerraformKit",
"url": "https://github.com/fourplusone/TerraformKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TerraformKit",
"dependencies": [
{
"identity": "zipfoundation",
"name": "ZIPFoundation",
"url": "https://github.com/weichsel/ZIPFoundation/",
"version": "0.9.19",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ZIPFoundation",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/fourplusone/TerraformKit.git
[1/758] Fetching terraformkit
Fetched https://github.com/fourplusone/TerraformKit.git from cache (1.05s)
Fetching https://github.com/weichsel/ZIPFoundation/ from cache
Fetched https://github.com/weichsel/ZIPFoundation/ from cache (0.48s)
Computing version for https://github.com/weichsel/ZIPFoundation/
Computed https://github.com/weichsel/ZIPFoundation/ at 0.9.19 (0.46s)
Creating working copy for https://github.com/fourplusone/TerraformKit.git
Working copy of https://github.com/fourplusone/TerraformKit.git resolved at 0.3.1 (e0a3b2a)
Creating working copy for https://github.com/weichsel/ZIPFoundation/
Working copy of https://github.com/weichsel/ZIPFoundation/ resolved at 0.9.19
warning: '.resolve-product-dependencies': dependency 'terraformkit' is not used by any target
Found 1 product dependencies
- ZIPFoundation
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/fourplusone/TerraformKit.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/12] Compiling ZIPFoundation Entry.swift
[5/12] Compiling ZIPFoundation FileManager+ZIP.swift
[6/12] Compiling ZIPFoundation Data+Serialization.swift
[7/12] Compiling ZIPFoundation Data+Compression.swift
[8/12] Compiling ZIPFoundation Archive.swift
[9/12] Compiling ZIPFoundation Archive+Writing.swift
[10/12] Compiling ZIPFoundation Archive+MemoryFile.swift
[11/12] Emitting module ZIPFoundation
[12/12] Compiling ZIPFoundation Archive+Reading.swift
[13/23] Compiling TerraformKit AnyDecodable.swift
[14/23] Compiling TerraformKit Values.swift
[15/23] Compiling TerraformKit AnyEncodable.swift
[16/23] Compiling TerraformKit Terraform.swift
/Users/admin/builder/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 {
/Users/admin/builder/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: annotate 'defaultInvocationSettings' 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
66 | stderr: .passthroughOnFailure,
67 | stdout: .passthroughOnFailure,
/Users/admin/builder/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: annotate 'internalInvocationSettings' 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
71 | stderr: .discard,
72 | stdout: .discard,
/Users/admin/builder/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()
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:157:16: error: Architecture / OS is not supported
155 | #endif
156 | #else
157 | #error("Architecture / OS is not supported")
| `- error: Architecture / OS is not supported
158 | #endif
159 |
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:162:90: error: cannot find 'arch' in scope
160 |
161 |
162 | let terraformBinary = terraformBinaryURL(version: defaultTerraformVersion, arch: arch)
| `- error: cannot find 'arch' in scope
163 |
164 | let fm = FileManager.default
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Terraform.swift:167:54: error: cannot find 'arch' in scope
165 | if !fm.fileExists(atPath: terraformBinary.path) {
166 | do {
167 | try download(version: version, arch: arch)
| `- error: cannot find 'arch' in scope
168 | } catch _ {
169 | return nil
[17/24] Compiling TerraformKit TemporaryFile.swift
[18/24] Compiling TerraformKit EmptyCollection.swift
[19/24] Compiling TerraformKit Invoke.swift
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:117:13: warning: var 'managerThreadRunLoop' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | }
116 |
117 | private var managerThreadRunLoop : RunLoop? = nil
| |- warning: var 'managerThreadRunLoop' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managerThreadRunLoop' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'managerThreadRunLoop' 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
118 | private var managerThreadRunLoopIsRunning = false
119 | private var managerThreadRunLoopIsRunningCondition = NSCondition()
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:118:13: warning: var 'managerThreadRunLoopIsRunning' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 |
117 | private var managerThreadRunLoop : RunLoop? = nil
118 | private var managerThreadRunLoopIsRunning = false
| |- warning: var 'managerThreadRunLoopIsRunning' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managerThreadRunLoopIsRunning' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'managerThreadRunLoopIsRunning' 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
119 | private var managerThreadRunLoopIsRunningCondition = NSCondition()
120 |
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:119:13: warning: var 'managerThreadRunLoopIsRunningCondition' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 | private var managerThreadRunLoop : RunLoop? = nil
118 | private var managerThreadRunLoopIsRunning = false
119 | private var managerThreadRunLoopIsRunningCondition = NSCondition()
| |- warning: var 'managerThreadRunLoopIsRunningCondition' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managerThreadRunLoopIsRunningCondition' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'managerThreadRunLoopIsRunningCondition' 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
120 |
121 | class WrappedProcess {
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:143:25: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
141 |
142 |
143 | private static var setup : () = {
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
144 | let thread = Thread {
145 | managerThreadRunLoop = RunLoop.current
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:324:40: warning: capture of 'process' with non-sendable type 'WrappedProcess' in a `@Sendable` closure; this is an error in the Swift 6 language mode
119 | private var managerThreadRunLoopIsRunningCondition = NSCondition()
120 |
121 | class WrappedProcess {
| `- note: class 'WrappedProcess' does not conform to the 'Sendable' protocol
122 |
123 | let p: Process
:
322 | if let terminationHandler = process.p.terminationHandler {
323 | let thread = Thread {
324 | terminationHandler(process.p)
| `- warning: capture of 'process' with non-sendable type 'WrappedProcess' in a `@Sendable` closure; this is an error in the Swift 6 language mode
325 | }
326 | thread.start()
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:578:25: warning: capture of 'self' with non-sendable type 'OutputHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
548 | p.standardInput = FileHandle.standardInput
549 |
550 | class OutputHandler {
| `- note: class 'OutputHandler' does not conform to the 'Sendable' protocol
551 |
552 | let fileHandle: Any?
:
576 | fileHandle = outPipe as Any
577 | outPipe?.fileHandleForReading.readabilityHandler = { handle in
578 | self.buffer?.append(handle.availableData)
| `- warning: capture of 'self' with non-sendable type 'OutputHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
579 | }
580 | }
[20/24] Compiling TerraformKit Decoder.swift
/Users/admin/builder/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()
[21/24] Emitting module TerraformKit
/Users/admin/builder/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 {
/Users/admin/builder/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: annotate 'defaultInvocationSettings' 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
66 | stderr: .passthroughOnFailure,
67 | stdout: .passthroughOnFailure,
/Users/admin/builder/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: annotate 'internalInvocationSettings' 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
71 | stderr: .discard,
72 | stdout: .discard,
/Users/admin/builder/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()
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:117:13: warning: var 'managerThreadRunLoop' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
115 | }
116 |
117 | private var managerThreadRunLoop : RunLoop? = nil
| |- warning: var 'managerThreadRunLoop' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managerThreadRunLoop' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'managerThreadRunLoop' 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
118 | private var managerThreadRunLoopIsRunning = false
119 | private var managerThreadRunLoopIsRunningCondition = NSCondition()
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:118:13: warning: var 'managerThreadRunLoopIsRunning' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 |
117 | private var managerThreadRunLoop : RunLoop? = nil
118 | private var managerThreadRunLoopIsRunning = false
| |- warning: var 'managerThreadRunLoopIsRunning' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managerThreadRunLoopIsRunning' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'managerThreadRunLoopIsRunning' 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
119 | private var managerThreadRunLoopIsRunningCondition = NSCondition()
120 |
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:119:13: warning: var 'managerThreadRunLoopIsRunningCondition' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 | private var managerThreadRunLoop : RunLoop? = nil
118 | private var managerThreadRunLoopIsRunning = false
119 | private var managerThreadRunLoopIsRunningCondition = NSCondition()
| |- warning: var 'managerThreadRunLoopIsRunningCondition' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'managerThreadRunLoopIsRunningCondition' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'managerThreadRunLoopIsRunningCondition' 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
120 |
121 | class WrappedProcess {
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:143:25: warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
141 |
142 |
143 | private static var setup : () = {
| |- warning: static property 'setup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'setup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'setup' 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
144 | let thread = Thread {
145 | managerThreadRunLoop = RunLoop.current
/Users/admin/builder/spi-builder-workspace/Sources/TerraformKit/Utilities/Invoke.swift:324:40: warning: capture of 'process' with non-sendable type 'WrappedProcess' in a `@Sendable` closure; this is an error in the Swift 6 language mode
119 | private var managerThreadRunLoopIsRunningCondition = NSCondition()
120 |
121 | class WrappedProcess {
| `- note: class 'WrappedProcess' does not conform to the 'Sendable' protocol
122 |
123 | let p: Process
:
322 | if let terminationHandler = process.p.terminationHandler {
323 | let thread = Thread {
324 | terminationHandler(process.p)
| `- warning: capture of 'process' with non-sendable type 'WrappedProcess' in a `@Sendable` closure; this is an error in the Swift 6 language mode
325 | }
326 | thread.start()
[22/24] Compiling TerraformKit State.swift
[23/24] Compiling TerraformKit Plan.swift
[24/24] Compiling TerraformKit Schema.swift
BUILD FAILURE 6.0 macosSpm