Build Information
Successful build of SwiftZlib, reference main (4b5538), with Swift 6.1 for macOS (SPM) on 27 Nov 2025 18:22:01 UTC.
Swift 6 data race errors: 12
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kosikowski/swift-zlib.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kosikowski/swift-zlib
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4b5538d Bump actions/checkout from 5 to 6 (#24)
Cloned https://github.com/Kosikowski/swift-zlib.git
Revision (git rev-parse @):
4b5538df3f457c1180895f81ae180d4016ae1dcc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Kosikowski/swift-zlib.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Kosikowski/swift-zlib.git
https://github.com/Kosikowski/swift-zlib.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftZlib",
"name" : "SwiftZlib",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SwiftZlib",
"targets" : [
"SwiftZlib"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftZlibCLI",
"targets" : [
"SwiftZlibCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftZlibTests",
"module_type" : "SwiftTarget",
"name" : "SwiftZlibTests",
"path" : "Tests/SwiftZlibTests",
"sources" : [
"Advanced/AdvancedFeaturesTests.swift",
"Advanced/AdvancedUtilityTests.swift",
"Advanced/AsyncStreamTests.swift",
"Advanced/DictionaryTests.swift",
"Advanced/GzipHeaderTests.swift",
"Advanced/InflateBackTests.swift",
"Advanced/PrimeTests.swift",
"Advanced/WindowBitsTests.swift",
"Concurrency/CancellationTests.swift",
"Concurrency/ConcurrencyTests.swift",
"Core/CompressorCancellationTests.swift",
"Core/CompressorTests.swift",
"Core/DecompressorCancellationTests.swift",
"Core/DecompressorTests.swift",
"Core/MemoryLeakTests.swift",
"Core/StreamTests.swift",
"Core/ZLibTests.swift",
"EdgeCases/EdgeCaseErrorHandlingTests.swift",
"EdgeCases/UtilityTests.swift",
"ErrorHandling/ErrorHandlingTests.swift",
"Extensions/AdvancedExtensionsTests.swift",
"Extensions/DataExtensionsTests.swift",
"Extensions/StringExtensionsTests.swift",
"FileOperations/FileChunkedCompressorTests.swift",
"FileOperations/FileOperationsTests.swift",
"FileOperations/SimpleFileOperationsTests.swift",
"Performance/PerformanceTests.swift",
"Streaming/StreamingTests.swift"
],
"target_dependencies" : [
"SwiftZlib"
],
"type" : "test"
},
{
"c99name" : "SwiftZlibCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftZlibCLI",
"path" : "Sources/SwiftZlibCLI",
"product_memberships" : [
"SwiftZlibCLI"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"SwiftZlib"
],
"type" : "executable"
},
{
"c99name" : "SwiftZlib",
"module_type" : "SwiftTarget",
"name" : "SwiftZlib",
"path" : "Sources/SwiftZlib",
"product_memberships" : [
"SwiftZlib",
"SwiftZlibCLI"
],
"sources" : [
"API/Data+Extensions.swift",
"API/String+Extensions.swift",
"API/ZLib+Async.swift",
"API/ZLib+AsyncStream.swift",
"API/ZLib+Combine.swift",
"API/ZLib+File.swift",
"API/ZLib+FileChunked.swift",
"API/ZLib+Stream.swift",
"API/ZLib.swift",
"API/ZLibErrorCode.swift",
"Async/AsyncCompressor.swift",
"Async/AsyncDecompressor.swift",
"Async/AsyncZLibStream.swift",
"Async/AsyncZLibStreamBuilder.swift",
"Core/Compression/Compression.swift",
"Core/Compression/CompressionLevel.swift",
"Core/Compression/CompressionMethod.swift",
"Core/Compression/CompressionPhase.swift",
"Core/Compression/CompressionStrategy.swift",
"Core/Compression/Compressor.swift",
"Core/Compression/Decompressor.swift",
"Core/Compression/InflateBackDecompressors/BaseInflateBackDecompressor.swift",
"Core/Compression/InflateBackDecompressors/DecompressorType.swift",
"Core/Compression/InflateBackDecompressors/EnhancedInflateBackDecompressor.swift",
"Core/Compression/InflateBackDecompressors/InflateBackDecompressorCBridged.swift",
"Core/FlushMode.swift",
"Core/GzipHeader.swift",
"Core/Logging.swift",
"Core/MemoryLevel.swift",
"Core/Stream/StreamingConfig.swift",
"Core/Stream/StreamingDecompressor.swift",
"Core/Stream/ZLibStreamBuilder.swift",
"Core/Timer.swift",
"Core/WindowBits.swift",
"Core/ZLibError.swift",
"Core/ZLibStatus.swift",
"Core/ZLibStream.swift",
"FileOperations/ChunkedProcessor.swift",
"FileOperations/FileChunkedCompressor.swift",
"FileOperations/FileChunkedDecompressor.swift",
"FileOperations/FileCompressor.swift",
"FileOperations/FileDecompressor.swift",
"FileOperations/FileProcessor.swift",
"FileOperations/GzipFile.swift",
"FileOperations/GzipFileError.swift",
"FileOperations/SimpleFileCompressor.swift",
"FileOperations/SimpleFileDecompressor.swift"
],
"target_dependencies" : [
"CZLib"
],
"type" : "library"
},
{
"c99name" : "CZLib",
"module_type" : "ClangTarget",
"name" : "CZLib",
"path" : "Sources/CZLib",
"product_memberships" : [
"SwiftZlib",
"SwiftZlibCLI"
],
"sources" : [
"adler32.c",
"compress.c",
"crc32.c",
"deflate.c",
"gzclose.c",
"gzlib.c",
"gzread.c",
"gzwrite.c",
"infback.c",
"inffast.c",
"inflate.c",
"inftrees.c",
"trees.c",
"uncompr.c",
"zlib_shim.c",
"zutil.c"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/23] Write sources
[1/23] Write SwiftZlibCLI-entitlement.plist
[1/23] Write sources
[3/23] Write swift-version-2F0A5646E1D333AE.txt
[4/23] Compiling CZLib inftrees.c
[5/23] Compiling CZLib inffast.c
[5/23] Compiling CZLib uncompr.c
[7/23] Compiling CZLib infback.c
[8/23] Compiling CZLib trees.c
[9/23] Compiling CZLib deflate.c
[10/23] Compiling CZLib inflate.c
[11/23] Compiling CZLib zlib_shim.c
[12/23] Compiling CZLib compress.c
[13/23] Compiling CZLib adler32.c
[14/23] Compiling CZLib crc32.c
[15/23] Compiling CZLib gzclose.c
[16/23] Compiling CZLib gzwrite.c
[17/23] Compiling CZLib gzlib.c
[18/23] Compiling CZLib zutil.c
[19/23] Compiling CZLib gzread.c
[21/67] Emitting module SwiftZlib
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:42:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Enable verbose logging
42 | public static var enabled: Bool = false
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Enable detailed stream state logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:45:23: warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Enable detailed stream state logging
45 | public static var logStreamState: Bool = false
| |- warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logStreamState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logStreamState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// Enable compression/decompression progress logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:48:23: warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Enable compression/decompression progress logging
48 | public static var logProgress: Bool = false
| |- warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logProgress' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logProgress' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Enable memory allocation logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:51:23: warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Enable memory allocation logging
51 | public static var logMemory: Bool = false
| |- warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logMemory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logMemory' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Enable error detailed logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:54:23: warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | /// Enable error detailed logging
54 | public static var logErrors: Bool = false
| |- warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Enable performance timing
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:57:23: warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// Enable performance timing
57 | public static var logTiming: Bool = false
| |- warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logTiming' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logTiming' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Current minimum log level
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:60:23: warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// Current minimum log level
60 | public static var minLogLevel: LogLevel = .info
| |- warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'minLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'minLogLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Custom log handler
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:63:23: warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Custom log handler
63 | public static var logHandler: ((LogLevel, String) -> Void)?
| |- warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | // MARK: Static Functions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:318:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | -> AsyncThrowingStream<ProgressInfo, Error>
232 | {
233 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
234 | var task: Task<Void, Never>?
235 | }
:
316 |
317 | continuation.onTermination = { _ in
318 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
319 | }
320 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:249:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | -> AsyncThrowingStream<ProgressInfo, Error>
241 | {
242 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
243 | var task: Task<Void, Never>?
244 | }
:
247 | let stream = AsyncThrowingStream<ProgressInfo, Error> { continuation in
248 | continuation.onTermination = { @Sendable reason in
249 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:239:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
237 |
238 | return AsyncThrowingStream<ProgressInfo, Error> { continuation in
239 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
240 | do {
241 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
242 | defer { try? input.close() }
243 | try wrapFileError {
| `- note: closure captures 'self' which is accessible to code in the current task
244 | guard FileManager.default.createFile(atPath: destinationPath, contents: nil) else {
245 | throw NSError(domain: NSCocoaErrorDomain, code: NSFileWriteUnknownError, userInfo: [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:252:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 | }
251 |
252 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 | do {
254 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
:
263 |
264 | let decompressor = Decompressor()
265 | try decompressor.initializeAdvanced(windowBits: windowBits)
| `- note: closure captures 'self' which is accessible to code in the current task
266 |
267 | let totalBytes: Int
[22/71] Compiling SwiftZlib GzipFile.swift
[23/71] Compiling SwiftZlib GzipFileError.swift
[24/71] Compiling SwiftZlib SimpleFileCompressor.swift
[25/71] Compiling SwiftZlib SimpleFileDecompressor.swift
[26/71] Compiling SwiftZlib StreamingDecompressor.swift
[27/71] Compiling SwiftZlib ZLibStreamBuilder.swift
[28/71] Compiling SwiftZlib Timer.swift
[29/71] Compiling SwiftZlib WindowBits.swift
[30/71] Compiling SwiftZlib ZLibError.swift
[31/71] Compiling SwiftZlib ZLib+File.swift
[32/71] Compiling SwiftZlib ZLib+FileChunked.swift
[33/71] Compiling SwiftZlib ZLib+Stream.swift
[34/71] Compiling SwiftZlib ZLib.swift
[35/71] Compiling SwiftZlib ZLibErrorCode.swift
[36/71] Compiling SwiftZlib CompressionLevel.swift
[37/71] Compiling SwiftZlib CompressionMethod.swift
[38/71] Compiling SwiftZlib CompressionPhase.swift
[39/71] Compiling SwiftZlib CompressionStrategy.swift
[40/71] Compiling SwiftZlib Compressor.swift
[41/71] Compiling SwiftZlib ZLibStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:318:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | -> AsyncThrowingStream<ProgressInfo, Error>
232 | {
233 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
234 | var task: Task<Void, Never>?
235 | }
:
316 |
317 | continuation.onTermination = { _ in
318 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
319 | }
320 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:239:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
237 |
238 | return AsyncThrowingStream<ProgressInfo, Error> { continuation in
239 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
240 | do {
241 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
242 | defer { try? input.close() }
243 | try wrapFileError {
| `- note: closure captures 'self' which is accessible to code in the current task
244 | guard FileManager.default.createFile(atPath: destinationPath, contents: nil) else {
245 | throw NSError(domain: NSCocoaErrorDomain, code: NSFileWriteUnknownError, userInfo: [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:280:38: warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
278 | timestamp: now
279 | )
280 | continuation.yield(info)
| |- warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'info' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
281 | }
282 |
[42/71] Compiling SwiftZlib ZLibStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:318:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | -> AsyncThrowingStream<ProgressInfo, Error>
232 | {
233 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
234 | var task: Task<Void, Never>?
235 | }
:
316 |
317 | continuation.onTermination = { _ in
318 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
319 | }
320 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:239:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
237 |
238 | return AsyncThrowingStream<ProgressInfo, Error> { continuation in
239 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
240 | do {
241 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
242 | defer { try? input.close() }
243 | try wrapFileError {
| `- note: closure captures 'self' which is accessible to code in the current task
244 | guard FileManager.default.createFile(atPath: destinationPath, contents: nil) else {
245 | throw NSError(domain: NSCocoaErrorDomain, code: NSFileWriteUnknownError, userInfo: [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:280:38: warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
278 | timestamp: now
279 | )
280 | continuation.yield(info)
| |- warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'info' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
281 | }
282 |
[43/71] Compiling SwiftZlib ChunkedProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:318:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | -> AsyncThrowingStream<ProgressInfo, Error>
232 | {
233 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
234 | var task: Task<Void, Never>?
235 | }
:
316 |
317 | continuation.onTermination = { _ in
318 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
319 | }
320 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:239:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
237 |
238 | return AsyncThrowingStream<ProgressInfo, Error> { continuation in
239 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
240 | do {
241 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
242 | defer { try? input.close() }
243 | try wrapFileError {
| `- note: closure captures 'self' which is accessible to code in the current task
244 | guard FileManager.default.createFile(atPath: destinationPath, contents: nil) else {
245 | throw NSError(domain: NSCocoaErrorDomain, code: NSFileWriteUnknownError, userInfo: [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:280:38: warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
278 | timestamp: now
279 | )
280 | continuation.yield(info)
| |- warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'info' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
281 | }
282 |
[44/71] Compiling SwiftZlib FileChunkedCompressor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:318:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
231 | -> AsyncThrowingStream<ProgressInfo, Error>
232 | {
233 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
234 | var task: Task<Void, Never>?
235 | }
:
316 |
317 | continuation.onTermination = { _ in
318 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
319 | }
320 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:239:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
237 |
238 | return AsyncThrowingStream<ProgressInfo, Error> { continuation in
239 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
240 | do {
241 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
242 | defer { try? input.close() }
243 | try wrapFileError {
| `- note: closure captures 'self' which is accessible to code in the current task
244 | guard FileManager.default.createFile(atPath: destinationPath, contents: nil) else {
245 | throw NSError(domain: NSCocoaErrorDomain, code: NSFileWriteUnknownError, userInfo: [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedCompressor.swift:280:38: warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
278 | timestamp: now
279 | )
280 | continuation.yield(info)
| |- warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'info' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
281 | }
282 |
[45/71] Compiling SwiftZlib FlushMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:42:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Enable verbose logging
42 | public static var enabled: Bool = false
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Enable detailed stream state logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:45:23: warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Enable detailed stream state logging
45 | public static var logStreamState: Bool = false
| |- warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logStreamState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logStreamState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// Enable compression/decompression progress logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:48:23: warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Enable compression/decompression progress logging
48 | public static var logProgress: Bool = false
| |- warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logProgress' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logProgress' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Enable memory allocation logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:51:23: warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Enable memory allocation logging
51 | public static var logMemory: Bool = false
| |- warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logMemory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logMemory' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Enable error detailed logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:54:23: warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | /// Enable error detailed logging
54 | public static var logErrors: Bool = false
| |- warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Enable performance timing
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:57:23: warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// Enable performance timing
57 | public static var logTiming: Bool = false
| |- warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logTiming' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logTiming' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Current minimum log level
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:60:23: warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// Current minimum log level
60 | public static var minLogLevel: LogLevel = .info
| |- warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'minLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'minLogLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Custom log handler
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:63:23: warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Custom log handler
63 | public static var logHandler: ((LogLevel, String) -> Void)?
| |- warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | // MARK: Static Functions
[46/71] Compiling SwiftZlib GzipHeader.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:42:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Enable verbose logging
42 | public static var enabled: Bool = false
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Enable detailed stream state logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:45:23: warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Enable detailed stream state logging
45 | public static var logStreamState: Bool = false
| |- warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logStreamState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logStreamState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// Enable compression/decompression progress logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:48:23: warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Enable compression/decompression progress logging
48 | public static var logProgress: Bool = false
| |- warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logProgress' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logProgress' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Enable memory allocation logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:51:23: warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Enable memory allocation logging
51 | public static var logMemory: Bool = false
| |- warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logMemory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logMemory' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Enable error detailed logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:54:23: warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | /// Enable error detailed logging
54 | public static var logErrors: Bool = false
| |- warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Enable performance timing
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:57:23: warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// Enable performance timing
57 | public static var logTiming: Bool = false
| |- warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logTiming' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logTiming' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Current minimum log level
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:60:23: warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// Current minimum log level
60 | public static var minLogLevel: LogLevel = .info
| |- warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'minLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'minLogLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Custom log handler
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:63:23: warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Custom log handler
63 | public static var logHandler: ((LogLevel, String) -> Void)?
| |- warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | // MARK: Static Functions
[47/71] Compiling SwiftZlib Logging.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:42:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Enable verbose logging
42 | public static var enabled: Bool = false
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Enable detailed stream state logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:45:23: warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Enable detailed stream state logging
45 | public static var logStreamState: Bool = false
| |- warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logStreamState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logStreamState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// Enable compression/decompression progress logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:48:23: warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Enable compression/decompression progress logging
48 | public static var logProgress: Bool = false
| |- warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logProgress' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logProgress' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Enable memory allocation logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:51:23: warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Enable memory allocation logging
51 | public static var logMemory: Bool = false
| |- warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logMemory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logMemory' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Enable error detailed logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:54:23: warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | /// Enable error detailed logging
54 | public static var logErrors: Bool = false
| |- warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Enable performance timing
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:57:23: warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// Enable performance timing
57 | public static var logTiming: Bool = false
| |- warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logTiming' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logTiming' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Current minimum log level
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:60:23: warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// Current minimum log level
60 | public static var minLogLevel: LogLevel = .info
| |- warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'minLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'minLogLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Custom log handler
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:63:23: warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Custom log handler
63 | public static var logHandler: ((LogLevel, String) -> Void)?
| |- warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | // MARK: Static Functions
[48/71] Compiling SwiftZlib MemoryLevel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:42:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Enable verbose logging
42 | public static var enabled: Bool = false
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Enable detailed stream state logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:45:23: warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Enable detailed stream state logging
45 | public static var logStreamState: Bool = false
| |- warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logStreamState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logStreamState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// Enable compression/decompression progress logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:48:23: warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Enable compression/decompression progress logging
48 | public static var logProgress: Bool = false
| |- warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logProgress' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logProgress' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Enable memory allocation logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:51:23: warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Enable memory allocation logging
51 | public static var logMemory: Bool = false
| |- warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logMemory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logMemory' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Enable error detailed logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:54:23: warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | /// Enable error detailed logging
54 | public static var logErrors: Bool = false
| |- warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Enable performance timing
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:57:23: warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// Enable performance timing
57 | public static var logTiming: Bool = false
| |- warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logTiming' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logTiming' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Current minimum log level
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:60:23: warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// Current minimum log level
60 | public static var minLogLevel: LogLevel = .info
| |- warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'minLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'minLogLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Custom log handler
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:63:23: warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Custom log handler
63 | public static var logHandler: ((LogLevel, String) -> Void)?
| |- warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | // MARK: Static Functions
[49/71] Compiling SwiftZlib StreamingConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:42:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Enable verbose logging
42 | public static var enabled: Bool = false
| |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'enabled' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Enable detailed stream state logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:45:23: warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Enable detailed stream state logging
45 | public static var logStreamState: Bool = false
| |- warning: static property 'logStreamState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logStreamState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logStreamState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 |
47 | /// Enable compression/decompression progress logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:48:23: warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Enable compression/decompression progress logging
48 | public static var logProgress: Bool = false
| |- warning: static property 'logProgress' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logProgress' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logProgress' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Enable memory allocation logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:51:23: warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | /// Enable memory allocation logging
51 | public static var logMemory: Bool = false
| |- warning: static property 'logMemory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logMemory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logMemory' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | /// Enable error detailed logging
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:54:23: warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | /// Enable error detailed logging
54 | public static var logErrors: Bool = false
| |- warning: static property 'logErrors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logErrors' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logErrors' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | /// Enable performance timing
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:57:23: warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | /// Enable performance timing
57 | public static var logTiming: Bool = false
| |- warning: static property 'logTiming' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logTiming' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logTiming' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | /// Current minimum log level
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:60:23: warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// Current minimum log level
60 | public static var minLogLevel: LogLevel = .info
| |- warning: static property 'minLogLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'minLogLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'minLogLevel' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Custom log handler
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/Core/Logging.swift:63:23: warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | /// Custom log handler
63 | public static var logHandler: ((LogLevel, String) -> Void)?
| |- warning: static property 'logHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logHandler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logHandler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | // MARK: Static Functions
[50/71] Compiling SwiftZlib AsyncCompressor.swift
[51/71] Compiling SwiftZlib AsyncDecompressor.swift
[52/71] Compiling SwiftZlib AsyncZLibStream.swift
[53/71] Compiling SwiftZlib AsyncZLibStreamBuilder.swift
[54/71] Compiling SwiftZlib Compression.swift
[55/71] Compiling SwiftZlib Data+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:71:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
69 | )
70 | try compressor.compressFile(from: sourcePath, to: destinationPath)
71 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | } catch {
73 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:98:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
96 | )
97 | try decompressor.decompressFile(from: sourcePath, to: destinationPath)
98 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | } catch {
100 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:9:5: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
7 |
8 | #if canImport(Combine)
9 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:20:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
18 | static func compressPublisher(_ data: Data, options: CompressionOptions = CompressionOptions()) -> AnyPublisher<Data, Error> {
19 | Future { promise in
20 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
21 | do {
22 | let result = try await compressAsync(data, options: options)
23 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
24 | } catch {
25 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:39:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
37 | static func decompressPublisher(_ data: Data, options: DecompressionOptions = DecompressionOptions()) -> AnyPublisher<Data, Error> {
38 | Future { promise in
39 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | do {
41 | let result = try await decompressAsync(data, options: options)
42 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
43 | } catch {
44 | promise(.failure(error))
[56/71] Compiling SwiftZlib String+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:71:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
69 | )
70 | try compressor.compressFile(from: sourcePath, to: destinationPath)
71 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | } catch {
73 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:98:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
96 | )
97 | try decompressor.decompressFile(from: sourcePath, to: destinationPath)
98 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | } catch {
100 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:9:5: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
7 |
8 | #if canImport(Combine)
9 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:20:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
18 | static func compressPublisher(_ data: Data, options: CompressionOptions = CompressionOptions()) -> AnyPublisher<Data, Error> {
19 | Future { promise in
20 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
21 | do {
22 | let result = try await compressAsync(data, options: options)
23 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
24 | } catch {
25 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:39:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
37 | static func decompressPublisher(_ data: Data, options: DecompressionOptions = DecompressionOptions()) -> AnyPublisher<Data, Error> {
38 | Future { promise in
39 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | do {
41 | let result = try await decompressAsync(data, options: options)
42 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
43 | } catch {
44 | promise(.failure(error))
[57/71] Compiling SwiftZlib ZLib+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:71:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
69 | )
70 | try compressor.compressFile(from: sourcePath, to: destinationPath)
71 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | } catch {
73 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:98:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
96 | )
97 | try decompressor.decompressFile(from: sourcePath, to: destinationPath)
98 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | } catch {
100 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:9:5: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
7 |
8 | #if canImport(Combine)
9 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:20:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
18 | static func compressPublisher(_ data: Data, options: CompressionOptions = CompressionOptions()) -> AnyPublisher<Data, Error> {
19 | Future { promise in
20 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
21 | do {
22 | let result = try await compressAsync(data, options: options)
23 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
24 | } catch {
25 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:39:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
37 | static func decompressPublisher(_ data: Data, options: DecompressionOptions = DecompressionOptions()) -> AnyPublisher<Data, Error> {
38 | Future { promise in
39 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | do {
41 | let result = try await decompressAsync(data, options: options)
42 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
43 | } catch {
44 | promise(.failure(error))
[58/71] Compiling SwiftZlib ZLib+AsyncStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:71:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
69 | )
70 | try compressor.compressFile(from: sourcePath, to: destinationPath)
71 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | } catch {
73 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:98:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
96 | )
97 | try decompressor.decompressFile(from: sourcePath, to: destinationPath)
98 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | } catch {
100 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:9:5: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
7 |
8 | #if canImport(Combine)
9 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:20:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
18 | static func compressPublisher(_ data: Data, options: CompressionOptions = CompressionOptions()) -> AnyPublisher<Data, Error> {
19 | Future { promise in
20 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
21 | do {
22 | let result = try await compressAsync(data, options: options)
23 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
24 | } catch {
25 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:39:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
37 | static func decompressPublisher(_ data: Data, options: DecompressionOptions = DecompressionOptions()) -> AnyPublisher<Data, Error> {
38 | Future { promise in
39 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | do {
41 | let result = try await decompressAsync(data, options: options)
42 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
43 | } catch {
44 | promise(.failure(error))
[59/71] Compiling SwiftZlib ZLib+Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:71:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
69 | )
70 | try compressor.compressFile(from: sourcePath, to: destinationPath)
71 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | } catch {
73 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:98:25: warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
96 | )
97 | try decompressor.decompressFile(from: sourcePath, to: destinationPath)
98 | promise(.success(()))
| |- warning: capture of 'promise' with non-sendable type '(Result<Void, any Error>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | } catch {
100 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:9:5: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
7 |
8 | #if canImport(Combine)
9 | import Combine
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Combine'
10 | import Foundation
11 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:128:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
126 | try compressor.compressFile(from: sourcePath, to: destinationPath) { processed, total in
127 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
128 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
129 | }
130 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in a '@Sendable' closure
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:157:25: warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
155 | try decompressor.decompressFile(from: sourcePath, to: destinationPath) { processed, total in
156 | let percent = total > 0 ? Double(processed) / Double(total) * 100.0 : 0.0
157 | subject.send((processed, total, percent))
| `- warning: capture of 'subject' with non-sendable type 'PassthroughSubject<(processed: Int, total: Int, percent: Double), any Error>' in an isolated closure; this is an error in the Swift 6 language mode
158 | }
159 | subject.send(completion: .finished)
Combine.PassthroughSubject:2:20: note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | final public class PassthroughSubject<Output, Failure> : Subject where Failure : Error {
| `- note: generic class 'PassthroughSubject' does not conform to the 'Sendable' protocol
3 | public init()
4 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:20:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
18 | static func compressPublisher(_ data: Data, options: CompressionOptions = CompressionOptions()) -> AnyPublisher<Data, Error> {
19 | Future { promise in
20 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
21 | do {
22 | let result = try await compressAsync(data, options: options)
23 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
24 | } catch {
25 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/API/ZLib+Combine.swift:39:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
37 | static func decompressPublisher(_ data: Data, options: DecompressionOptions = DecompressionOptions()) -> AnyPublisher<Data, Error> {
38 | Future { promise in
39 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | do {
41 | let result = try await decompressAsync(data, options: options)
42 | promise(.success(result))
| `- note: closure captures 'promise' which is accessible to code in the current task
43 | } catch {
44 | promise(.failure(error))
[60/71] Compiling SwiftZlib Decompressor.swift
[61/71] Compiling SwiftZlib BaseInflateBackDecompressor.swift
[62/71] Compiling SwiftZlib DecompressorType.swift
[63/71] Compiling SwiftZlib EnhancedInflateBackDecompressor.swift
[64/71] Compiling SwiftZlib InflateBackDecompressorCBridged.swift
[65/71] Compiling SwiftZlib FileChunkedDecompressor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:249:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | -> AsyncThrowingStream<ProgressInfo, Error>
241 | {
242 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
243 | var task: Task<Void, Never>?
244 | }
:
247 | let stream = AsyncThrowingStream<ProgressInfo, Error> { continuation in
248 | continuation.onTermination = { @Sendable reason in
249 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:252:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 | }
251 |
252 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 | do {
254 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
:
263 |
264 | let decompressor = Decompressor()
265 | try decompressor.initializeAdvanced(windowBits: windowBits)
| `- note: closure captures 'self' which is accessible to code in the current task
266 |
267 | let totalBytes: Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:300:38: warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
298 | timestamp: now
299 | )
300 | continuation.yield(info)
| |- warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'info' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
301 | }
302 |
[66/71] Compiling SwiftZlib FileCompressor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:249:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | -> AsyncThrowingStream<ProgressInfo, Error>
241 | {
242 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
243 | var task: Task<Void, Never>?
244 | }
:
247 | let stream = AsyncThrowingStream<ProgressInfo, Error> { continuation in
248 | continuation.onTermination = { @Sendable reason in
249 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:252:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 | }
251 |
252 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 | do {
254 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
:
263 |
264 | let decompressor = Decompressor()
265 | try decompressor.initializeAdvanced(windowBits: windowBits)
| `- note: closure captures 'self' which is accessible to code in the current task
266 |
267 | let totalBytes: Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:300:38: warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
298 | timestamp: now
299 | )
300 | continuation.yield(info)
| |- warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'info' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
301 | }
302 |
[67/71] Compiling SwiftZlib FileDecompressor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:249:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | -> AsyncThrowingStream<ProgressInfo, Error>
241 | {
242 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
243 | var task: Task<Void, Never>?
244 | }
:
247 | let stream = AsyncThrowingStream<ProgressInfo, Error> { continuation in
248 | continuation.onTermination = { @Sendable reason in
249 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:252:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 | }
251 |
252 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 | do {
254 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
:
263 |
264 | let decompressor = Decompressor()
265 | try decompressor.initializeAdvanced(windowBits: windowBits)
| `- note: closure captures 'self' which is accessible to code in the current task
266 |
267 | let totalBytes: Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:300:38: warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
298 | timestamp: now
299 | )
300 | continuation.yield(info)
| |- warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'info' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
301 | }
302 |
[68/71] Compiling SwiftZlib FileProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:249:17: warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | -> AsyncThrowingStream<ProgressInfo, Error>
241 | {
242 | final class TaskHolder {
| `- note: class 'TaskHolder' does not conform to the 'Sendable' protocol
243 | var task: Task<Void, Never>?
244 | }
:
247 | let stream = AsyncThrowingStream<ProgressInfo, Error> { continuation in
248 | continuation.onTermination = { @Sendable reason in
249 | holder.task?.cancel()
| `- warning: capture of 'holder' with non-sendable type 'TaskHolder' in a '@Sendable' closure; this is an error in the Swift 6 language mode
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:252:32: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
250 | }
251 |
252 | holder.task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
253 | do {
254 | let input = try FileHandle(forReadingFrom: URL(fileURLWithPath: sourcePath))
:
263 |
264 | let decompressor = Decompressor()
265 | try decompressor.initializeAdvanced(windowBits: windowBits)
| `- note: closure captures 'self' which is accessible to code in the current task
266 |
267 | let totalBytes: Int
/Users/admin/builder/spi-builder-workspace/Sources/SwiftZlib/FileOperations/FileChunkedDecompressor.swift:300:38: warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
298 | timestamp: now
299 | )
300 | continuation.yield(info)
| |- warning: sending 'info' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'info' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
301 | }
302 |
[69/73] Emitting module SwiftZlibCLI
[70/73] Compiling SwiftZlibCLI main.swift
[70/73] Write Objects.LinkFileList
[71/73] Linking SwiftZlibCLI
[72/73] Applying SwiftZlibCLI
Build complete! (7.22s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftZlib",
"name" : "SwiftZlib",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SwiftZlib",
"targets" : [
"SwiftZlib"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftZlibCLI",
"targets" : [
"SwiftZlibCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftZlibTests",
"module_type" : "SwiftTarget",
"name" : "SwiftZlibTests",
"path" : "Tests/SwiftZlibTests",
"sources" : [
"Advanced/AdvancedFeaturesTests.swift",
"Advanced/AdvancedUtilityTests.swift",
"Advanced/AsyncStreamTests.swift",
"Advanced/DictionaryTests.swift",
"Advanced/GzipHeaderTests.swift",
"Advanced/InflateBackTests.swift",
"Advanced/PrimeTests.swift",
"Advanced/WindowBitsTests.swift",
"Concurrency/CancellationTests.swift",
"Concurrency/ConcurrencyTests.swift",
"Core/CompressorCancellationTests.swift",
"Core/CompressorTests.swift",
"Core/DecompressorCancellationTests.swift",
"Core/DecompressorTests.swift",
"Core/MemoryLeakTests.swift",
"Core/StreamTests.swift",
"Core/ZLibTests.swift",
"EdgeCases/EdgeCaseErrorHandlingTests.swift",
"EdgeCases/UtilityTests.swift",
"ErrorHandling/ErrorHandlingTests.swift",
"Extensions/AdvancedExtensionsTests.swift",
"Extensions/DataExtensionsTests.swift",
"Extensions/StringExtensionsTests.swift",
"FileOperations/FileChunkedCompressorTests.swift",
"FileOperations/FileOperationsTests.swift",
"FileOperations/SimpleFileOperationsTests.swift",
"Performance/PerformanceTests.swift",
"Streaming/StreamingTests.swift"
],
"target_dependencies" : [
"SwiftZlib"
],
"type" : "test"
},
{
"c99name" : "SwiftZlibCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftZlibCLI",
"path" : "Sources/SwiftZlibCLI",
"product_memberships" : [
"SwiftZlibCLI"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"SwiftZlib"
],
"type" : "executable"
},
{
"c99name" : "SwiftZlib",
"module_type" : "SwiftTarget",
"name" : "SwiftZlib",
"path" : "Sources/SwiftZlib",
"product_memberships" : [
"SwiftZlib",
"SwiftZlibCLI"
],
"sources" : [
"API/Data+Extensions.swift",
"API/String+Extensions.swift",
"API/ZLib+Async.swift",
"API/ZLib+AsyncStream.swift",
"API/ZLib+Combine.swift",
"API/ZLib+File.swift",
"API/ZLib+FileChunked.swift",
"API/ZLib+Stream.swift",
"API/ZLib.swift",
"API/ZLibErrorCode.swift",
"Async/AsyncCompressor.swift",
"Async/AsyncDecompressor.swift",
"Async/AsyncZLibStream.swift",
"Async/AsyncZLibStreamBuilder.swift",
"Core/Compression/Compression.swift",
"Core/Compression/CompressionLevel.swift",
"Core/Compression/CompressionMethod.swift",
"Core/Compression/CompressionPhase.swift",
"Core/Compression/CompressionStrategy.swift",
"Core/Compression/Compressor.swift",
"Core/Compression/Decompressor.swift",
"Core/Compression/InflateBackDecompressors/BaseInflateBackDecompressor.swift",
"Core/Compression/InflateBackDecompressors/DecompressorType.swift",
"Core/Compression/InflateBackDecompressors/EnhancedInflateBackDecompressor.swift",
"Core/Compression/InflateBackDecompressors/InflateBackDecompressorCBridged.swift",
"Core/FlushMode.swift",
"Core/GzipHeader.swift",
"Core/Logging.swift",
"Core/MemoryLevel.swift",
"Core/Stream/StreamingConfig.swift",
"Core/Stream/StreamingDecompressor.swift",
"Core/Stream/ZLibStreamBuilder.swift",
"Core/Timer.swift",
"Core/WindowBits.swift",
"Core/ZLibError.swift",
"Core/ZLibStatus.swift",
"Core/ZLibStream.swift",
"FileOperations/ChunkedProcessor.swift",
"FileOperations/FileChunkedCompressor.swift",
"FileOperations/FileChunkedDecompressor.swift",
"FileOperations/FileCompressor.swift",
"FileOperations/FileDecompressor.swift",
"FileOperations/FileProcessor.swift",
"FileOperations/GzipFile.swift",
"FileOperations/GzipFileError.swift",
"FileOperations/SimpleFileCompressor.swift",
"FileOperations/SimpleFileDecompressor.swift"
],
"target_dependencies" : [
"CZLib"
],
"type" : "library"
},
{
"c99name" : "CZLib",
"module_type" : "ClangTarget",
"name" : "CZLib",
"path" : "Sources/CZLib",
"product_memberships" : [
"SwiftZlib",
"SwiftZlibCLI"
],
"sources" : [
"adler32.c",
"compress.c",
"crc32.c",
"deflate.c",
"gzclose.c",
"gzlib.c",
"gzread.c",
"gzwrite.c",
"infback.c",
"inffast.c",
"inflate.c",
"inftrees.c",
"trees.c",
"uncompr.c",
"zlib_shim.c",
"zutil.c"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.