Build Information
Failed to build SwiftPM, reference main (1335dd
), with Swift 6.1 for Android on 16 Jun 2025 19:47:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | /// A simple representation of a path in the file system.
/host/spi-builder-workspace/Sources/PackagePlugin/PackageModel.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | /// Represents a single package in the graph (either the root or a dependency).
/host/spi-builder-workspace/Sources/PackagePlugin/Path.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | /// A simple representation of a path in the file system.
/host/spi-builder-workspace/Sources/PackagePlugin/Context.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | /// Provides information about the package for which the plugin is invoked,
/host/spi-builder-workspace/Sources/PackagePlugin/Context.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | /// Provides information about the package for which the plugin is invoked,
/host/spi-builder-workspace/Sources/PackagePlugin/PackageManagerProxy.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | /// Provides specialized information and services from the Swift Package Manager
/host/spi-builder-workspace/Sources/PackagePlugin/PackageManagerProxy.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | /// Provides specialized information and services from the Swift Package Manager
[106/295] Emitting module SwiftSyntax600
[107/295] Compiling SwiftSyntax600 Empty.swift
/host/spi-builder-workspace/Sources/PackageDescription/Target.swift:13:22: warning: '@_implementationOnly' is deprecated, use 'internal import' instead
11 | //===----------------------------------------------------------------------===//
12 |
13 | @_implementationOnly import Foundation
| `- warning: '@_implementationOnly' is deprecated, use 'internal import' instead
14 |
15 | /// The basic building block of a Swift package.
/host/spi-builder-workspace/Sources/PackageDescription/Target.swift:13:22: warning: '@_implementationOnly' is deprecated, use 'internal import' instead
11 | //===----------------------------------------------------------------------===//
12 |
13 | @_implementationOnly import Foundation
| `- warning: '@_implementationOnly' is deprecated, use 'internal import' instead
14 |
15 | /// The basic building block of a Swift package.
[120/297] Emitting module SystemPackage
[125/297] Compiling SystemPackage Util+StringArray.swift
[126/297] Compiling SystemPackage Util.swift
[127/297] Compiling SystemPackage UtilConsumers.swift
[138/296] Compiling TSCBasic Process.swift
[139/296] Compiling TSCBasic ProcessEnv.swift
[140/296] Compiling TSCBasic ProcessSet.swift
[141/296] Compiling TSCBasic RegEx.swift
[142/296] Emitting module SwiftSyntax510
[143/296] Compiling SwiftSyntax510 Empty.swift
[157/301] Compiling TSCBasic TerminalController.swift
[158/301] Compiling TSCBasic Thread.swift
[159/301] Compiling TSCBasic Tuple.swift
[160/301] Compiling TSCBasic WritableByteStream.swift
[161/301] Compiling TSCBasic misc.swift
[162/363] Compiling SwiftSyntax509 Empty.swift
[163/363] Emitting module SwiftSyntax509
[166/374] Emitting module SWBLibc
[167/374] Compiling SWBLibc libc.swift
[169/459] Compiling _AsyncFileSystem OpenReadableFile.swift
[170/460] Compiling SwiftSyntax MissingNodeInitializers.swift
[171/460] Compiling SwiftSyntax RawSyntax.swift
[172/460] Compiling SwiftSyntax RawSyntaxArena.swift
[173/460] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[174/460] Compiling SwiftSyntax Assert.swift
[175/460] Compiling SwiftSyntax BumpPtrAllocator.swift
[176/462] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[177/462] Compiling SwiftSyntax SyntaxBaseNodes.swift
[178/462] Compiling SwiftSyntax SyntaxCollections.swift
[179/462] Compiling SwiftSyntax SyntaxEnum.swift
[180/462] Compiling SwiftSyntax SyntaxKind.swift
[181/462] Compiling SwiftSyntax SyntaxRewriter.swift
[182/462] Compiling SwiftSyntax SyntaxTraits.swift
[183/462] Compiling SwiftSyntax SyntaxVisitor.swift
[184/462] Compiling SwiftSyntax TokenKind.swift
[185/462] Compiling SwiftSyntax Tokens.swift
[186/462] Compiling SwiftSyntax TriviaPieces.swift
[187/462] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[188/462] Compiling SwiftSyntax RawSyntaxNodesC.swift
[189/462] Compiling SwiftSyntax RawSyntaxNodesD.swift
[190/485] Compiling _AsyncFileSystem AsyncFileSystem.swift
[191/504] Compiling TSCUtility ArgumentParser.swift
[192/504] Compiling TSCUtility ArgumentParserShellCompletion.swift
[193/504] Compiling _AsyncFileSystem ConcurrencySupport.swift
[194/504] Emitting module _AsyncFileSystem
[195/504] Compiling _AsyncFileSystem MockFileSystem.swift
[196/504] Compiling _AsyncFileSystem OSFileSystem.swift
[197/504] Compiling TSCUtility IndexStore.swift
[198/504] Compiling TSCUtility InterruptHandler.swift
[199/504] Compiling TSCUtility JSONMessageStreamingParser.swift
[200/504] Compiling TSCUtility Netrc.swift
[201/504] Compiling TSCUtility OSLog.swift
[202/504] Compiling TSCUtility OrderedZip.swift
[203/504] Compiling TSCUtility PkgConfig.swift
[204/504] Compiling TSCUtility Platform.swift
[205/504] Compiling _AsyncFileSystem OpenWritableFile.swift
[206/504] Compiling _AsyncFileSystem ReadableFileStream.swift
[207/504] Compiling _AsyncFileSystem WritableStream.swift
[208/505] Compiling TSCUtility PolymorphicCodable.swift
[209/505] Compiling TSCUtility ProgressAnimation.swift
[210/505] Compiling TSCUtility SerializedDiagnostics.swift
[211/505] Compiling TSCUtility SimplePersistence.swift
[212/505] Compiling TSCUtility StringExtensions.swift
[213/505] Compiling TSCUtility StringMangling.swift
[214/505] Compiling TSCUtility Tracing.swift
[215/505] Compiling TSCUtility Triple.swift
[216/505] Compiling TSCUtility URL.swift
[217/505] Compiling TSCUtility Verbosity.swift
[218/505] Compiling SwiftSyntax Trivia.swift
[219/505] Compiling SwiftSyntax Utils.swift
[220/505] Compiling SwiftSyntax ChildNameForKeyPath.swift
[221/505] Compiling SwiftSyntax Keyword.swift
[222/505] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[223/505] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[224/505] Compiling TSCUtility Array+Extensions.swift
[225/505] Compiling TSCUtility Bits.swift
[226/505] Compiling TSCUtility Context.swift
[227/505] Compiling TSCUtility Diagnostics.swift
[228/505] Compiling TSCUtility FSWatch.swift
[229/505] Compiling TSCUtility FloatingPointExtensions.swift
[230/505] Compiling TSCUtility Git.swift
[231/505] Compiling TSCUtility Hex.swift
[239/506] Compiling TSCUtility BuildFlags.swift
[240/506] Compiling TSCUtility CollectionExtensions.swift
[241/506] Compiling TSCUtility Archiver.swift
[248/506] Compiling TSCUtility Bitstream.swift
[249/506] Compiling TSCUtility BitstreamReader.swift
[250/506] Compiling TSCUtility BitstreamWriter.swift
[265/509] Compiling CryptoBoringWrapper CryptoKitErrors_boring.swift
[266/509] Emitting module DequeModule
[268/510] Compiling OrderedCollections OrderedSet+Sendable.swift
[269/510] Compiling OrderedCollections OrderedSet+SubSequence.swift
[270/510] Compiling OrderedCollections OrderedSet+Testing.swift
[271/510] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[272/510] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[273/510] Compiling OrderedCollections OrderedSet.swift
[274/510] Compiling OrderedCollections _UnsafeBitset.swift
[280/514] Compiling CryptoBoringWrapper BoringSSLAEAD.swift
[281/514] Emitting module CryptoBoringWrapper
[286/515] Compiling SwiftASN1 DER.swift
[287/515] Compiling SwiftASN1 Errors.swift
/host/spi-builder-workspace/Sources/PackageDescription/PackageDescription.swift:17:22: warning: '@_implementationOnly' is deprecated, use 'internal import' instead
15 | @_implementationOnly import struct WinSDK.HANDLE
16 | #endif
17 | @_implementationOnly import Foundation
| `- warning: '@_implementationOnly' is deprecated, use 'internal import' instead
18 |
19 | /// The configuration of a Swift package.
/host/spi-builder-workspace/Sources/PackageDescription/PackageDescription.swift:17:22: warning: '@_implementationOnly' is deprecated, use 'internal import' instead
15 | @_implementationOnly import struct WinSDK.HANDLE
16 | #endif
17 | @_implementationOnly import Foundation
| `- warning: '@_implementationOnly' is deprecated, use 'internal import' instead
18 |
19 | /// The configuration of a Swift package.
/host/spi-builder-workspace/Sources/PackageDescription/PackageDescriptionSerialization.swift:14:22: warning: '@_implementationOnly' is deprecated, use 'internal import' instead
12 |
13 | #if USE_IMPL_ONLY_IMPORTS
14 | @_implementationOnly import Foundation
| `- warning: '@_implementationOnly' is deprecated, use 'internal import' instead
15 | #else
16 | import Foundation
/host/spi-builder-workspace/Sources/PackageDescription/PackageDescriptionSerialization.swift:14:22: warning: '@_implementationOnly' is deprecated, use 'internal import' instead
12 |
13 | #if USE_IMPL_ONLY_IMPORTS
14 | @_implementationOnly import Foundation
| `- warning: '@_implementationOnly' is deprecated, use 'internal import' instead
15 | #else
16 | import Foundation
/host/spi-builder-workspace/Sources/PackageDescription/PackageDependency.swift:14:22: warning: '@_implementationOnly' is deprecated, use 'internal import' instead
12 |
13 | #if USE_IMPL_ONLY_IMPORTS
14 | @_implementationOnly import Foundation
| `- warning: '@_implementationOnly' is deprecated, use 'internal import' instead
15 | #else
16 | import Foundation
/host/spi-builder-workspace/Sources/PackageDescription/PackageDependency.swift:14:22: warning: '@_implementationOnly' is deprecated, use 'internal import' instead
12 |
13 | #if USE_IMPL_ONLY_IMPORTS
14 | @_implementationOnly import Foundation
| `- warning: '@_implementationOnly' is deprecated, use 'internal import' instead
15 | #else
16 | import Foundation
[295/518] Emitting module TSCUtility
[295/518] Wrapping AST for TSCBasic for debugging
[302/518] Emitting module OrderedCollections
[303/519] Emitting module SwiftASN1
/host/spi-builder-workspace/Sources/PackagePlugin/Plugin.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 | #if os(Windows)
15 | @_implementationOnly import ucrt
/host/spi-builder-workspace/Sources/PackagePlugin/PluginContextDeserializer.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | typealias WireInput = HostToPluginMessage.InputContext
/host/spi-builder-workspace/Sources/PackagePlugin/Plugin.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 | #if os(Windows)
15 | @_implementationOnly import ucrt
/host/spi-builder-workspace/Sources/PackagePlugin/PluginContextDeserializer.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | typealias WireInput = HostToPluginMessage.InputContext
[306/520] Compiling PackagePlugin PluginMessages.swift
/host/spi-builder-workspace/Sources/PackagePlugin/PluginMessages.swift:13:8: warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Foundation
| `- warning: module 'Foundation' was not compiled with library evolution support; using it means binary compatibility for 'PackagePlugin' can't be guaranteed
14 |
15 | /// A message that the host can send to the plugin, including definitions of the corresponding serializable data structures.
[311/522] Emitting module ArgumentParserToolInfo
[334/581] Wrapping AST for SystemPackage for debugging
[335/604] Wrapping AST for InternalCollectionsUtilities for debugging
[338/604] Wrapping AST for OrderedCollections for debugging
[340/604] Compiling Crypto HPKE-Utils.swift
[341/604] Compiling Crypto DHKEM.swift
[342/604] Compiling Crypto HPKE-KEM-Curve25519.swift
[343/604] Compiling Crypto HPKE-NIST-EC-KEMs.swift
[343/605] Wrapping AST for SwiftASN1 for debugging
[343/605] Write Objects.LinkFileList
[346/607] Compiling Crypto ECDSASignature.swift
[347/607] Compiling Crypto PEMDocument.swift
[348/607] Compiling Crypto PKCS8PrivateKey.swift
[349/607] Compiling Crypto SEC1PrivateKey.swift
[350/607] Compiling Crypto SubjectPublicKeyInfo.swift
[351/607] Compiling Crypto CryptoKitErrors.swift
[352/607] Compiling Crypto Digest_boring.swift
[353/607] Compiling Crypto Digest.swift
[354/607] Compiling Crypto Digests.swift
[354/607] Wrapping AST for PackageDescription for debugging
[356/607] Compiling ArgumentParserToolInfo ToolInfo.swift
[357/608] Emitting module CompilerPluginSupport
[358/608] Compiling CompilerPluginSupport TargetExtensions.swift
[359/608] Emitting module AppleProductTypes
[360/608] Compiling AppleProductTypes Product.swift
[363/611] Compiling Crypto HashFunctions.swift
[364/611] Compiling Crypto HashFunctions_SHA2.swift
[365/611] Compiling Crypto HPKE-AEAD.swift
[365/611] Wrapping AST for DequeModule for debugging
[367/611] Compiling Crypto Nonces.swift
[368/611] Compiling Crypto ASN1.swift
[369/611] Compiling Crypto ASN1Any.swift
[370/611] Compiling Crypto ASN1BitString.swift
[371/611] Compiling Crypto ASN1Boolean.swift
[372/611] Compiling Crypto AES-GCM.swift
[373/611] Compiling Crypto AES-GCM_boring.swift
[374/611] Compiling Crypto ChaChaPoly_boring.swift
[375/611] Compiling Crypto ChaChaPoly.swift
[376/611] Compiling Crypto Cipher.swift
[380/611] Write Objects.LinkFileList
[383/609] Linking libPackagePlugin.so
[384/664] Linking libPackageDescription.so
[385/664] Linking libAppleProductTypes.so
[386/664] Wrapping AST for TSCUtility for debugging
[388/664] Compiling TSCTestSupport XCTestCasePerf.swift
[389/665] Compiling TSCTestSupport FileSystemExtensions.swift
[390/665] Compiling TSCTestSupport Product.swift
[391/665] Compiling TSCTestSupport JSONExtensions.swift
[392/665] Compiling Crypto HPKE-Modes.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[393/665] Compiling Crypto Insecure.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[394/665] Compiling Crypto Insecure_HashFunctions.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[395/665] Compiling Crypto KEM.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[396/665] Compiling Crypto ECDH_boring.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[397/665] Compiling Crypto DH.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[398/665] Compiling Crypto ECDH.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[399/665] Compiling Crypto HKDF.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[400/665] Compiling Crypto AESWrap.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[401/665] Compiling Crypto AESWrap_boring.swift
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/Crypto/Key Derivation/HKDF.swift:145:68: error: cannot convert value of type 'Float' to expected argument type 'Double'
143 | /// - Returns: The derived symmetric key.
144 | public static func expand<PRK: ContiguousBytes, Info: DataProtocol>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Int) -> SymmetricKey {
145 | let iterations: UInt8 = UInt8(ceil((Float(outputByteCount) / Float(H.Digest.byteCount))))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
146 | var output = SecureBytes()
147 | let key = SymmetricKey(data: prk)
[402/665] Compiling Crypto Ed25519_boring.swift
[403/665] Compiling Crypto EllipticCurvePoint_boring.swift
[404/665] Compiling Crypto EllipticCurve_boring.swift
[405/665] Compiling Crypto NISTCurvesKeys_boring.swift
[406/665] Compiling Crypto X25519Keys_boring.swift
[407/665] Compiling Crypto Curve25519.swift
[408/665] Compiling Crypto Ed25519Keys.swift
[409/665] Compiling Crypto NISTCurvesKeys.swift
[410/665] Compiling Crypto X25519Keys.swift
[411/665] Compiling Crypto SymmetricKeys.swift
[412/682] Compiling TSCTestSupport PseudoTerminal.swift
[413/682] Compiling TSCTestSupport XCTAssertHelpers.swift
[414/740] Compiling Basics AdjacencyMatrix.swift
[415/740] Compiling Basics DirectedGraph.swift
[416/740] Compiling Basics GraphAlgorithms.swift
[417/740] Compiling Basics UndirectedGraph.swift
[418/740] Compiling Basics HTTPClient.swift
[419/740] Compiling Basics HTTPClientConfiguration.swift
[420/740] Compiling Basics HTTPClientError.swift
[421/740] Compiling Basics HTTPClientHeaders.swift
[422/740] Compiling Basics HTTPClientRequest.swift
[423/740] Compiling Basics HTTPClientResponse.swift
[424/740] Compiling Basics Archiver.swift
[425/740] Compiling Basics TarArchiver.swift
[426/740] Emitting module TSCTestSupport
[427/740] Compiling Basics SerializedJSON.swift
[428/740] Compiling Crypto MACFunctions.swift
[429/740] Compiling Crypto MessageAuthenticationCode.swift
[430/740] Compiling Crypto AES.swift
[431/740] Compiling Crypto ECDSASignature_boring.swift
[432/740] Compiling Crypto ECDSA_boring.swift
[433/740] Compiling Crypto EdDSA_boring.swift
[434/740] Compiling Crypto ECDSA.swift
[435/740] Compiling Crypto Ed25519.swift
[436/740] Compiling Crypto Signature.swift
[437/740] Compiling Basics EnvironmentShims.swift
[438/740] Compiling Basics Errors.swift
[439/740] Compiling Basics AbsolutePath.swift
[440/740] Compiling Basics FileSystem+Extensions.swift
[441/740] Compiling Basics InMemoryFileSystem.swift
[442/740] Compiling Basics NativePathExtensions.swift
[443/740] Compiling Basics RelativePath.swift
[444/740] Compiling Basics TSCAdapters.swift
[445/740] Compiling Basics TemporaryFile.swift
[446/740] Compiling Basics VFSOverlay.swift
[447/740] Compiling Basics VirtualFileSystem.swift
[448/740] Compiling SwiftOptions ParsedOptions.swift
[449/740] Compiling TSCTestSupport misc.swift
[450/741] Compiling SwiftOptions Option.swift
[451/741] Compiling SwiftOptions DriverKind.swift
[452/741] Compiling SwiftOptions OptionParsing.swift
[453/741] Compiling SwiftOptions PrefixTrie.swift
[455/741] Emitting module ArgumentParser
[456/746] Emitting module Crypto
[457/746] Compiling Basics ByteString+Extensions.swift
[458/746] Compiling Basics Dictionary+Extensions.swift
[459/746] Compiling Basics IdentifiableSet.swift
[460/746] Compiling Basics String+Extensions.swift
[461/746] Compiling Basics AsyncProcess.swift
[464/746] Compiling Basics UniversalArchiver.swift
[465/746] Compiling Basics ZipArchiver.swift
[466/746] Compiling Basics AuthorizationProvider.swift
[467/746] Compiling Basics Cancellator.swift
[468/746] Compiling Basics ThrowingDefer.swift
[469/746] Compiling Basics TokenBucket.swift
[470/746] Compiling Basics DispatchTimeInterval+Extensions.swift
[471/746] Compiling Basics Environment.swift
[472/746] Compiling Basics EnvironmentKey.swift
[493/755] Compiling Basics ConcurrencyHelpers.swift
[494/755] Compiling Basics NSLock+Extensions.swift
[495/755] Compiling Basics SendableBox.swift
[496/755] Compiling Basics ThreadSafeArrayStore.swift
[497/755] Compiling Basics ThreadSafeBox.swift
[498/755] Compiling Basics ThreadSafeKeyValueStore.swift
[510/755] Emitting module Basics
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
[511/755] Compiling Basics PercentProgressAnimation.swift
[512/755] Compiling Basics ProgressAnimationProtocol.swift
[513/755] Compiling Basics SingleLinePercentProgressAnimation.swift
[514/755] Compiling Basics ThrottledProgressAnimation.swift
[515/755] Compiling Basics SQLite.swift
[516/755] Compiling Basics SQLiteBackedCache.swift
[517/755] Compiling Basics Sandbox.swift
[518/755] Compiling Basics SendableTimeInterval.swift
[520/755] Compiling ArgumentParser CollectionExtensions.swift
[521/755] Compiling ArgumentParser Platform.swift
[522/755] Compiling ArgumentParser SequenceExtensions.swift
[523/755] Compiling ArgumentParser StringExtensions.swift
[524/755] Compiling ArgumentParser Tree.swift
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/FileSystem/FileSystem+Extensions.swift:75:9: warning: will never be executed
72 | /// Returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute.
73 | /// Returns `false` if such attribute is not applied or it isn't supported.
74 | public func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
75 | self.hasAttribute(name, path.underlying)
| `- warning: will never be executed
76 | }
77 |
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
[550/755] Compiling Basics HTTPMethod.swift
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
[551/755] Compiling Basics LegacyHTTPClient.swift
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
[552/755] Compiling Basics LegacyHTTPClientRequest.swift
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:53:24: warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | // static to share across instances of the http client
52 | private static let hostsErrorsLock = NSLock()
53 | private static var hostsErrors = [String: [Date]]()
| |- warning: static property 'hostsErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hostsErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'hostsErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | public init(configuration: LegacyHTTPClientConfiguration = .init(), handler: Handler? = nil) {
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:174:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
172 | let completion: CompletionHandler = { result in
173 | // free concurrency control semaphore
174 | self.concurrencySemaphore.signal()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
175 | // cancellation support
176 | // if the callback is no longer on the pending lists it has been canceled already
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:187:13: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
185 | self.requestsQueue.addOperation {
186 | // park the request thread based on the max concurrency allowed
187 | self.concurrencySemaphore.wait()
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
188 |
189 | // apply circuit breaker if necessary
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:215:25: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
213 | case .success(let response):
214 | // record host errors for circuit breaker
215 | self.recordErrorIfNecessary(response: response, request: request)
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
216 | // handle retry strategy
217 | if let retryDelay = self.shouldRetry(
/host/spi-builder-workspace/Sources/Basics/HTTPClient/LegacyHTTPClient.swift:230:33: warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
23 | // MARK: - LegacyHTTPClient
24 |
25 | public final class LegacyHTTPClient: Cancellable {
| `- note: class 'LegacyHTTPClient' does not conform to the 'Sendable' protocol
26 | public typealias Configuration = LegacyHTTPClientConfiguration
27 | public typealias Request = LegacyHTTPClientRequest
:
228 | // TODO: dedicated retry queue?
229 | return self.configuration.callbackQueue.asyncAfter(deadline: .now() + retryDelay) {
230 | self._execute(
| `- warning: capture of 'self' with non-sendable type 'LegacyHTTPClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | request: request,
232 | requestNumber: requestNumber + 1,
[553/755] Compiling Basics URLSessionHTTPClient.swift
[554/755] Compiling Basics ImportScanning.swift
[555/755] Compiling Basics JSON+Extensions.swift
[556/755] Compiling Basics JSONDecoder+Extensions.swift
[557/755] Compiling Basics Netrc.swift
[558/755] Compiling Basics OSSignpost.swift
[559/755] Compiling Basics Observability.swift
[560/755] Compiling Basics Process.swift
[561/755] Compiling Basics NinjaProgressAnimation.swift
[567/756] Emitting module SwiftOptions
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:32:24: warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private static let signalHandlerLock = NSLock()
32 | private static var isSignalHandlerInstalled = false
| |- warning: static property 'isSignalHandlerInstalled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isSignalHandlerInstalled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'isSignalHandlerInstalled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | public init(observabilityScope: ObservabilityScope?) {
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:114:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
112 | @discardableResult
113 | public func register(name: String, handler: Cancellable) -> RegistrationKey? {
114 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
115 | }
116 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:119:52: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
117 | @discardableResult
118 | public func register(name: String, handler: AsyncCancellable) -> RegistrationKey? {
119 | self.register(name: name, handler: handler.cancel(deadline:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
120 | }
121 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:128:93: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
126 |
127 | package func register(_ process: AsyncProcess) -> RegistrationKey? {
128 | self.register(name: "\(process.arguments.joined(separator: " "))", handler: process.terminate)
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
129 | }
130 |
/host/spi-builder-workspace/Sources/Basics/Cancellator.swift:133:72: warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
131 | #if !canImport(Darwin) || os(macOS)
132 | public func register(_ process: Foundation.Process) -> RegistrationKey? {
133 | self.register(name: "\(process.description)", handler: process.terminate(timeout:))
| `- warning: converting non-sendable function value to '@Sendable (DispatchTime) async throws -> Void' may introduce data races
134 | }
135 | #endif
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:190:14: warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
188 | /// Stream `stdout` and `stderr` via the corresponding closures. If `redirectStderr` is `true`, `stderr` will
189 | /// be redirected to `stdout`.
190 | case stream(stdout: OutputClosure, stderr: OutputClosure, redirectStderr: Bool)
| |- warning: associated value 'stream(stdout:stderr:redirectStderr:)' of 'Sendable'-conforming enum 'OutputRedirection' has non-sendable type 'AsyncProcess.OutputClosure' (aka '(Array<UInt8>) -> ()'); this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 |
192 | /// Stream stdout and stderr as `AsyncSequence` provided as an argument to closures passed to
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:265:24: warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | package typealias LoggingHandler = (String) -> Void
264 |
265 | private static var _loggingHandler: LoggingHandler?
| |- warning: static property '_loggingHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_loggingHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
266 | private static let loggingHandlerLock = NSLock()
267 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:333:24: warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | /// Key: Executable name or path.
332 | /// Value: Path to the executable, if found.
333 | private static var validatedExecutablesMap = [String: AbsolutePath?]()
| |- warning: static property 'validatedExecutablesMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'validatedExecutablesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'validatedExecutablesMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | private static let validatedExecutablesMapLock = NSLock()
335 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:361:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
359 | self.outputRedirection = outputRedirection
360 | self.startNewProcessGroup = startNewProcessGroup
361 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
362 | }
363 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:387:62: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? AsyncProcess.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally.
388 | }
389 |
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:866:36: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
864 | self.state = .complete(executionResult)
865 | self.completionQueue.async {
866 | self.waitUntilExit(completion)
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
867 | }
868 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/AsyncProcess.swift:1110:17: warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1108 | } catch {
1109 | completionQueue.async {
1110 | completion(.failure(error))
| |- warning: capture of 'completion' with non-sendable type '(Result<AsyncProcessResult, any Error>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1111 | }
1112 | }
/host/spi-builder-workspace/Sources/Basics/Concurrency/ConcurrencyHelpers.swift:33:5: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | let box = ThreadSafeBox<T>()
33 | Task {
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
34 | let localValue: T = await body()
35 | box.mutate { _ in localValue }
:
37 | }
38 | semaphore.wait()
39 | return box.get()!
| `- note: access can happen concurrently
40 | }
41 |
[588/756] Compiling Crypto ArbitraryPrecisionInteger_boring.swift
[589/756] Compiling Crypto CryptoKitErrors_boring.swift
[590/756] Compiling Crypto FiniteFieldArithmeticContext_boring.swift
[591/756] Compiling Crypto RNG_boring.swift
[592/756] Compiling Crypto SafeCompare_boring.swift
[593/756] Compiling Crypto Zeroization_boring.swift
[594/756] Compiling Crypto PrettyBytes.swift
[595/756] Compiling Crypto SafeCompare.swift
[596/756] Compiling Crypto SecureBytes.swift
[597/756] Compiling Crypto Zeroization.swift
[598/756] Compiling SwiftOptions OptionTable.swift
[598/756] Wrapping AST for ArgumentParser for debugging
BUILD FAILURE 6.1 android