Build Information
Successful build of unxip, reference main (65f083
), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 00:30:59 UTC.
Swift 6 data race errors: 28
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/saagarjha/unxip.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/saagarjha/unxip
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 65f0833 Run macOS CI on macos-14 runner
Cloned https://github.com/saagarjha/unxip.git
Revision (git rev-parse @):
65f08339a5168d3745be585c57ff057bd1dc3511
SUCCESS checkout https://github.com/saagarjha/unxip.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/saagarjha/unxip.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write unxip-entitlement.plist
[3/7] Write swift-version-117DEE11B69C53C9.txt
[5/11] Emitting module unxip
/Users/admin/builder/spi-builder-workspace/unxip.swift:1204:14: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1202 | await addTask {
1203 | _ = try await (originalTask.value, task?.value)
1204 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1205 | return
1206 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1209:28: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1207 |
1208 | measureFilesystemOperation(named: "link") {
1209 | warn(link(original, file.name), "linking")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1210 | }
1211 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1209:28: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1207 |
1208 | measureFilesystemOperation(named: "link") {
1209 | warn(link(original, file.name), "linking")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1210 | }
1211 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1221:15: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1219 | await addTask {
1220 | try await task?.value
1221 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1222 | return
1223 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1226:40: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1224 |
1225 | measureFilesystemOperation(named: "symlink") {
1226 | warn(symlink(String(data: Data(file.data.map(Array.init).reduce([], +)), encoding: .utf8)!, file.name), "symlinking")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1227 | }
1228 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1226:40: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1224 |
1225 | measureFilesystemOperation(named: "symlink") {
1226 | warn(symlink(String(data: Data(file.data.map(Array.init).reduce([], +)), encoding: .utf8)!, file.name), "symlinking")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1227 | }
1228 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1235:15: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1233 | directories[file.name[...]] = await addTask {
1234 | try await task?.value
1235 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1236 | return
1237 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1240:20: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1238 |
1239 | measureFilesystemOperation(named: "mkdir") {
1240 | warn(mkdir(file.name, mode_t(file.mode & 0o777)), "creating directory at")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1241 | }
1242 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1240:20: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1238 |
1239 | measureFilesystemOperation(named: "mkdir") {
1240 | warn(mkdir(file.name, mode_t(file.mode & 0o777)), "creating directory at")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1241 | }
1242 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1254:11: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1252 | #if canImport(Darwin)
1253 | let compressedData =
1254 | options.compress
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
/Users/admin/builder/spi-builder-workspace/unxip.swift:1256:18: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1254 | options.compress
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1257 | }.result.get() : nil
1258 | #endif
/Users/admin/builder/spi-builder-workspace/unxip.swift:1256:18: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1254 | options.compress
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1257 | }.result.get() : nil
1258 | #endif
/Users/admin/builder/spi-builder-workspace/unxip.swift:1265:15: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1263 |
1264 | let fd = measureFilesystemOperation(named: "open") {
1265 | open(file.name, O_CREAT | O_WRONLY, mode_t(file.mode & 0o777))
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1266 | }
1267 | if fd < 0 {
/Users/admin/builder/spi-builder-workspace/unxip.swift:1140:3: warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
1138 | let completion = Completion()
1139 |
1140 | Task {
| `- warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
1141 | let compressionStream = ConcurrentStream<[UInt8]?>(consumeResults: true)
1142 |
[6/11] Compiling libunxip libunxip.swift
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:142:40: warning: non-sendable type 'Element?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
140 | let next: Result<Element?, Error>
141 | do {
142 | next = .success(try await iterator.next())
| `- warning: non-sendable type 'Element?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
143 | } catch {
144 | next = .failure(error)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:157:14: warning: capture of 'iterator' with non-sendable type 'S.AsyncIterator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | var iterator = sequence.makeAsyncIterator()
156 | self.init {
157 | try await iterator.next()
| `- warning: capture of 'iterator' with non-sendable type 'S.AsyncIterator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:157:14: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
155 | var iterator = sequence.makeAsyncIterator()
156 | self.init {
157 | try await iterator.next()
| `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:218:21: warning: non-sendable type 'Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
211 | }
212 |
213 | actor BackpressureStream<Element, Backpressure: BackpressureProvider>: AsyncSequence where Backpressure.Element == Element {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
214 | struct Iterator: AsyncIteratorProtocol {
215 | let stream: BackpressureStream
216 |
217 | func next() async throws -> Element? {
218 | try await stream.next()
| `- warning: non-sendable type 'Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
219 | }
220 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:322:4: warning: actor-isolated property 'wrapper' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
316 | }
317 |
318 | let wrapper = Wrapper()
| `- note: property declared here
319 | let batchSize: Int
320 | nonisolated var results: AsyncThrowingStream<Element, Error> {
321 | get {
322 | wrapper.stream
| `- warning: actor-isolated property 'wrapper' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
323 | }
324 | set {
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:325:4: warning: actor-isolated property 'wrapper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
316 | }
317 |
318 | let wrapper = Wrapper()
| `- note: mutation of this property is only permitted within the actor
319 | let batchSize: Int
320 | nonisolated var results: AsyncThrowingStream<Element, Error> {
:
323 | }
324 | set {
325 | wrapper.stream = newValue
| `- warning: actor-isolated property 'wrapper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
326 | }
327 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:330:4: warning: actor-isolated property 'wrapper' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
316 | }
317 |
318 | let wrapper = Wrapper()
| `- note: property declared here
319 | let batchSize: Int
320 | nonisolated var results: AsyncThrowingStream<Element, Error> {
:
328 | nonisolated var continuation: AsyncThrowingStream<Element, Error>.Continuation {
329 | get {
330 | wrapper.continuation
| `- warning: actor-isolated property 'wrapper' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
331 | }
332 | set {
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:333:4: warning: actor-isolated property 'wrapper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
316 | }
317 |
318 | let wrapper = Wrapper()
| `- note: mutation of this property is only permitted within the actor
319 | let batchSize: Int
320 | nonisolated var results: AsyncThrowingStream<Element, Error> {
:
331 | }
332 | set {
333 | wrapper.continuation = newValue
| `- warning: actor-isolated property 'wrapper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
334 | }
335 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:364:10: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
362 | orderingConditions[index] = orderingCondition
363 | await ensureWidth(index: index)
364 | return Task {
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
365 | let result = await Task {
366 | try await operation()
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:364:10: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
362 | orderingConditions[index] = orderingCondition
363 | await ensureWidth(index: index)
364 | return Task {
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
365 | let result = await Task {
366 | try await operation()
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:365:23: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
363 | await ensureWidth(index: index)
364 | return Task {
365 | let result = await Task {
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 | try await operation()
367 | }.result
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:365:23: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
363 | await ensureWidth(index: index)
364 | return Task {
365 | let result = await Task {
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 | try await operation()
367 | }.result
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:367:6: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
365 | let result = await Task {
366 | try await operation()
367 | }.result
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
368 | await produce(result: result, for: index)
369 | return try result.get()
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:365:23: warning: non-sendable type 'Task<Element, any Error>' exiting actor-isolated context in call to nonisolated property 'result' cannot cross actor boundary; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
363 | await ensureWidth(index: index)
364 | return Task {
365 | let result = await Task {
| `- warning: non-sendable type 'Task<Element, any Error>' exiting actor-isolated context in call to nonisolated property 'result' cannot cross actor boundary; this is an error in the Swift 6 language mode
366 | try await operation()
367 | }.result
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:367:6: warning: non-sendable type 'Result<Element, any Error>' in asynchronous access from actor-isolated context to nonisolated property 'result' cannot cross actor boundary; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
365 | let result = await Task {
366 | try await operation()
367 | }.result
| `- warning: non-sendable type 'Result<Element, any Error>' in asynchronous access from actor-isolated context to nonisolated property 'result' cannot cross actor boundary; this is an error in the Swift 6 language mode
368 | await produce(result: result, for: index)
369 | return try result.get()
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:995:119: warning: capture of 'options' with non-sendable type 'XIP<S>.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
872 | public typealias Next = Chunks
873 |
874 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
875 | let zlibDecompressor: ([UInt8], Int) throws -> [UInt8]
876 | let lzmaDecompressor: ([UInt8], Int) throws -> [UInt8]
:
993 | os_signpost(.begin, log: decompressionLog, name: "Decompress", signpostID: id, compressed ? "Starting %td (compressed size = %td)" : "Starting %td (uncompressed size = %td)", chunkNumber, compressedSize)
994 | #endif
995 | let chunk = try Chunk(data: block, decompressedSize: compressed ? Int(decompressedSize) : nil, lzmaDecompressor: options.lzmaDecompressor)
| `- warning: capture of 'options' with non-sendable type 'XIP<S>.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
996 | #if PROFILING
997 | os_signpost(.end, log: decompressionLog, name: "Decompress", signpostID: id, "Ended %td (decompressed size = %td)", chunkNumber, decompressedSize)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1164:30: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` local function; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1162 | func warn(_ result: CInt, _ operation: String) {
1163 | if result != 0 {
1164 | perror("\(operation) \(file.name) failed")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` local function; this is an error in the Swift 6 language mode
1165 | }
1166 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1191:33: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` local function; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1189 | await taskStream.addTask {
1190 | try await operation()
1191 | await completion.complete(file)
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` local function; this is an error in the Swift 6 language mode
1192 | }
1193 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1191:33: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1189 | await taskStream.addTask {
1190 | try await operation()
1191 | await completion.complete(file)
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1192 | }
1193 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1204:14: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1202 | await addTask {
1203 | _ = try await (originalTask.value, task?.value)
1204 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1205 | return
1206 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1209:28: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1207 |
1208 | measureFilesystemOperation(named: "link") {
1209 | warn(link(original, file.name), "linking")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1210 | }
1211 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1209:28: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1207 |
1208 | measureFilesystemOperation(named: "link") {
1209 | warn(link(original, file.name), "linking")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1210 | }
1211 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1221:15: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1219 | await addTask {
1220 | try await task?.value
1221 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1222 | return
1223 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1226:40: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1224 |
1225 | measureFilesystemOperation(named: "symlink") {
1226 | warn(symlink(String(data: Data(file.data.map(Array.init).reduce([], +)), encoding: .utf8)!, file.name), "symlinking")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1227 | }
1228 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1226:40: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1224 |
1225 | measureFilesystemOperation(named: "symlink") {
1226 | warn(symlink(String(data: Data(file.data.map(Array.init).reduce([], +)), encoding: .utf8)!, file.name), "symlinking")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1227 | }
1228 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1235:15: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1233 | directories[file.name[...]] = await addTask {
1234 | try await task?.value
1235 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1236 | return
1237 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1240:20: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1238 |
1239 | measureFilesystemOperation(named: "mkdir") {
1240 | warn(mkdir(file.name, mode_t(file.mode & 0o777)), "creating directory at")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1241 | }
1242 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1240:20: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1238 |
1239 | measureFilesystemOperation(named: "mkdir") {
1240 | warn(mkdir(file.name, mode_t(file.mode & 0o777)), "creating directory at")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1241 | }
1242 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1254:11: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1252 | #if canImport(Darwin)
1253 | let compressedData =
1254 | options.compress
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1256:18: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1254 | options.compress
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1257 | }.result.get() : nil
1258 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1256:18: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1254 | options.compress
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1257 | }.result.get() : nil
1258 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1265:15: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1263 |
1264 | let fd = measureFilesystemOperation(named: "open") {
1265 | open(file.name, O_CREAT | O_WRONLY, mode_t(file.mode & 0o777))
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1266 | }
1267 | if fd < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1275:27: warning: capture of 'file' with non-sendable type 'File' in an isolated local function; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1273 | warn(close(fd), "closing")
1274 | }
1275 | setStickyBit(on: file)
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated local function; this is an error in the Swift 6 language mode
1276 | }
1277 |
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1380:19: warning: non-sendable type 'Self.Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1378 | return (
1379 | .init {
1380 | try await pal.next()
| `- warning: non-sendable type 'Self.Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1381 | },
1382 | .init {
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1383:19: warning: non-sendable type 'Self.Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1381 | },
1382 | .init {
1383 | try await pal.next()
| `- warning: non-sendable type 'Self.Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1384 | }
1385 | )
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:142:40: warning: sending 'iterator' risks causing data races; this is an error in the Swift 6 language mode
140 | let next: Result<Element?, Error>
141 | do {
142 | next = .success(try await iterator.next())
| |- warning: sending 'iterator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'iterator' to nonisolated instance method 'next()' risks causing data races between nonisolated and 'self'-isolated uses
143 | } catch {
144 | next = .failure(error)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:148:18: warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
146 | self.iterator = iterator
147 | for continuation in queued {
148 | continuation.resume(with: next)
| |- warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
| |- note: 'next' used after being passed as a 'sending' parameter; Later uses could race
| `- note: access can happen concurrently
149 | }
150 | queued.removeAll()
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:390:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
388 | }
389 | stream.orderingConditions[index]!.signal()
390 | stream.continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'stream'-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later 'stream'-isolated uses
391 | if index == stream.finishedIndex {
392 | stream.continuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:584:8: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
582 | #endif
583 | let chunk = chunk
584 | Task {
| `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
585 | await stream.yield(
586 | [UInt8](unsafeUninitializedCapacity: chunk.count) { buffer, count in
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:962:3: warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
960 | let chunkStream = BackpressureStream(backpressure: CountedBackpressure(max: 16), of: Chunk.self)
961 |
962 | Task {
| `- warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
963 | var content = data
964 |
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1140:3: warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
1138 | let completion = Completion()
1139 |
1140 | Task {
| `- warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
1141 | let compressionStream = ConcurrentStream<[UInt8]?>(consumeResults: true)
1142 |
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1134:29: warning: sending 'self'-isolated value of type 'File' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
1132 | func waitForCompletions() async {
1133 | while !queued.empty {
1134 | await completionStream.yield(queued.pop())
| `- warning: sending 'self'-isolated value of type 'File' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
1135 | }
1136 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1376:58: warning: sending task-isolated value of type 'Self.AsyncIterator' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
1374 | extension AsyncSequence {
1375 | public func lockstepSplit() -> (AsyncThrowingStream<Element, Error>, AsyncThrowingStream<Element, Error>) {
1376 | let pal = AsyncThrowingStream.PermissiveActionLink<Self>(iterator: makeAsyncIterator(), count: 2)
| `- warning: sending task-isolated value of type 'Self.AsyncIterator' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
1377 |
1378 | return (
[7/11] Emitting module libunxip
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1204:14: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1202 | await addTask {
1203 | _ = try await (originalTask.value, task?.value)
1204 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1205 | return
1206 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1209:28: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1207 |
1208 | measureFilesystemOperation(named: "link") {
1209 | warn(link(original, file.name), "linking")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1210 | }
1211 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1209:28: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1207 |
1208 | measureFilesystemOperation(named: "link") {
1209 | warn(link(original, file.name), "linking")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1210 | }
1211 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1221:15: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1219 | await addTask {
1220 | try await task?.value
1221 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1222 | return
1223 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1226:40: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1224 |
1225 | measureFilesystemOperation(named: "symlink") {
1226 | warn(symlink(String(data: Data(file.data.map(Array.init).reduce([], +)), encoding: .utf8)!, file.name), "symlinking")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1227 | }
1228 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1226:40: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1224 |
1225 | measureFilesystemOperation(named: "symlink") {
1226 | warn(symlink(String(data: Data(file.data.map(Array.init).reduce([], +)), encoding: .utf8)!, file.name), "symlinking")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1227 | }
1228 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1235:15: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1233 | directories[file.name[...]] = await addTask {
1234 | try await task?.value
1235 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1236 | return
1237 | }
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1240:20: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1238 |
1239 | measureFilesystemOperation(named: "mkdir") {
1240 | warn(mkdir(file.name, mode_t(file.mode & 0o777)), "creating directory at")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1241 | }
1242 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1240:20: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1238 |
1239 | measureFilesystemOperation(named: "mkdir") {
1240 | warn(mkdir(file.name, mode_t(file.mode & 0o777)), "creating directory at")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1241 | }
1242 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1254:11: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1252 | #if canImport(Darwin)
1253 | let compressedData =
1254 | options.compress
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1256:18: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1254 | options.compress
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1257 | }.result.get() : nil
1258 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1256:18: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1254 | options.compress
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1257 | }.result.get() : nil
1258 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1265:15: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1263 |
1264 | let fd = measureFilesystemOperation(named: "open") {
1265 | open(file.name, O_CREAT | O_WRONLY, mode_t(file.mode & 0o777))
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1266 | }
1267 | if fd < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift:1140:3: warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
1138 | let completion = Completion()
1139 |
1140 | Task {
| `- warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
1141 | let compressionStream = ConcurrentStream<[UInt8]?>(consumeResults: true)
1142 |
[8/11] Compiling unxip unxip.swift
/Users/admin/builder/spi-builder-workspace/unxip.swift:142:40: warning: non-sendable type 'Element?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
140 | let next: Result<Element?, Error>
141 | do {
142 | next = .success(try await iterator.next())
| `- warning: non-sendable type 'Element?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
143 | } catch {
144 | next = .failure(error)
/Users/admin/builder/spi-builder-workspace/unxip.swift:157:14: warning: capture of 'iterator' with non-sendable type 'S.AsyncIterator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | var iterator = sequence.makeAsyncIterator()
156 | self.init {
157 | try await iterator.next()
| `- warning: capture of 'iterator' with non-sendable type 'S.AsyncIterator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:157:14: warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
155 | var iterator = sequence.makeAsyncIterator()
156 | self.init {
157 | try await iterator.next()
| `- warning: mutation of captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:218:21: warning: non-sendable type 'Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
211 | }
212 |
213 | actor BackpressureStream<Element, Backpressure: BackpressureProvider>: AsyncSequence where Backpressure.Element == Element {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
214 | struct Iterator: AsyncIteratorProtocol {
215 | let stream: BackpressureStream
216 |
217 | func next() async throws -> Element? {
218 | try await stream.next()
| `- warning: non-sendable type 'Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
219 | }
220 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:322:4: warning: actor-isolated property 'wrapper' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
316 | }
317 |
318 | let wrapper = Wrapper()
| `- note: property declared here
319 | let batchSize: Int
320 | nonisolated var results: AsyncThrowingStream<Element, Error> {
321 | get {
322 | wrapper.stream
| `- warning: actor-isolated property 'wrapper' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
323 | }
324 | set {
/Users/admin/builder/spi-builder-workspace/unxip.swift:325:4: warning: actor-isolated property 'wrapper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
316 | }
317 |
318 | let wrapper = Wrapper()
| `- note: mutation of this property is only permitted within the actor
319 | let batchSize: Int
320 | nonisolated var results: AsyncThrowingStream<Element, Error> {
:
323 | }
324 | set {
325 | wrapper.stream = newValue
| `- warning: actor-isolated property 'wrapper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
326 | }
327 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:330:4: warning: actor-isolated property 'wrapper' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
316 | }
317 |
318 | let wrapper = Wrapper()
| `- note: property declared here
319 | let batchSize: Int
320 | nonisolated var results: AsyncThrowingStream<Element, Error> {
:
328 | nonisolated var continuation: AsyncThrowingStream<Element, Error>.Continuation {
329 | get {
330 | wrapper.continuation
| `- warning: actor-isolated property 'wrapper' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
331 | }
332 | set {
/Users/admin/builder/spi-builder-workspace/unxip.swift:333:4: warning: actor-isolated property 'wrapper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
316 | }
317 |
318 | let wrapper = Wrapper()
| `- note: mutation of this property is only permitted within the actor
319 | let batchSize: Int
320 | nonisolated var results: AsyncThrowingStream<Element, Error> {
:
331 | }
332 | set {
333 | wrapper.continuation = newValue
| `- warning: actor-isolated property 'wrapper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
334 | }
335 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:364:10: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
362 | orderingConditions[index] = orderingCondition
363 | await ensureWidth(index: index)
364 | return Task {
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
365 | let result = await Task {
366 | try await operation()
/Users/admin/builder/spi-builder-workspace/unxip.swift:364:10: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
362 | orderingConditions[index] = orderingCondition
363 | await ensureWidth(index: index)
364 | return Task {
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
365 | let result = await Task {
366 | try await operation()
/Users/admin/builder/spi-builder-workspace/unxip.swift:365:23: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
363 | await ensureWidth(index: index)
364 | return Task {
365 | let result = await Task {
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 | try await operation()
367 | }.result
/Users/admin/builder/spi-builder-workspace/unxip.swift:365:23: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
363 | await ensureWidth(index: index)
364 | return Task {
365 | let result = await Task {
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
366 | try await operation()
367 | }.result
/Users/admin/builder/spi-builder-workspace/unxip.swift:367:6: warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
365 | let result = await Task {
366 | try await operation()
367 | }.result
| `- warning: type 'Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
368 | await produce(result: result, for: index)
369 | return try result.get()
/Users/admin/builder/spi-builder-workspace/unxip.swift:365:23: warning: non-sendable type 'Task<Element, any Error>' exiting actor-isolated context in call to nonisolated property 'result' cannot cross actor boundary; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
363 | await ensureWidth(index: index)
364 | return Task {
365 | let result = await Task {
| `- warning: non-sendable type 'Task<Element, any Error>' exiting actor-isolated context in call to nonisolated property 'result' cannot cross actor boundary; this is an error in the Swift 6 language mode
366 | try await operation()
367 | }.result
/Users/admin/builder/spi-builder-workspace/unxip.swift:367:6: warning: non-sendable type 'Result<Element, any Error>' in asynchronous access from actor-isolated context to nonisolated property 'result' cannot cross actor boundary; this is an error in the Swift 6 language mode
310 | }
311 |
312 | actor ConcurrentStream<Element> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
313 | class Wrapper {
314 | var stream: AsyncThrowingStream<Element, Error>!
:
365 | let result = await Task {
366 | try await operation()
367 | }.result
| `- warning: non-sendable type 'Result<Element, any Error>' in asynchronous access from actor-isolated context to nonisolated property 'result' cannot cross actor boundary; this is an error in the Swift 6 language mode
368 | await produce(result: result, for: index)
369 | return try result.get()
/Users/admin/builder/spi-builder-workspace/unxip.swift:995:119: warning: capture of 'options' with non-sendable type 'XIP<S>.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
872 | public typealias Next = Chunks
873 |
874 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
875 | let zlibDecompressor: ([UInt8], Int) throws -> [UInt8]
876 | let lzmaDecompressor: ([UInt8], Int) throws -> [UInt8]
:
993 | os_signpost(.begin, log: decompressionLog, name: "Decompress", signpostID: id, compressed ? "Starting %td (compressed size = %td)" : "Starting %td (uncompressed size = %td)", chunkNumber, compressedSize)
994 | #endif
995 | let chunk = try Chunk(data: block, decompressedSize: compressed ? Int(decompressedSize) : nil, lzmaDecompressor: options.lzmaDecompressor)
| `- warning: capture of 'options' with non-sendable type 'XIP<S>.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
996 | #if PROFILING
997 | os_signpost(.end, log: decompressionLog, name: "Decompress", signpostID: id, "Ended %td (decompressed size = %td)", chunkNumber, decompressedSize)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1164:30: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` local function; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1162 | func warn(_ result: CInt, _ operation: String) {
1163 | if result != 0 {
1164 | perror("\(operation) \(file.name) failed")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` local function; this is an error in the Swift 6 language mode
1165 | }
1166 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1191:33: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` local function; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1189 | await taskStream.addTask {
1190 | try await operation()
1191 | await completion.complete(file)
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` local function; this is an error in the Swift 6 language mode
1192 | }
1193 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1191:33: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1189 | await taskStream.addTask {
1190 | try await operation()
1191 | await completion.complete(file)
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1192 | }
1193 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1204:14: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1202 | await addTask {
1203 | _ = try await (originalTask.value, task?.value)
1204 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1205 | return
1206 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1209:28: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1207 |
1208 | measureFilesystemOperation(named: "link") {
1209 | warn(link(original, file.name), "linking")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1210 | }
1211 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1209:28: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1207 |
1208 | measureFilesystemOperation(named: "link") {
1209 | warn(link(original, file.name), "linking")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1210 | }
1211 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1221:15: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1219 | await addTask {
1220 | try await task?.value
1221 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1222 | return
1223 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1226:40: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1224 |
1225 | measureFilesystemOperation(named: "symlink") {
1226 | warn(symlink(String(data: Data(file.data.map(Array.init).reduce([], +)), encoding: .utf8)!, file.name), "symlinking")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1227 | }
1228 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1226:40: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1224 |
1225 | measureFilesystemOperation(named: "symlink") {
1226 | warn(symlink(String(data: Data(file.data.map(Array.init).reduce([], +)), encoding: .utf8)!, file.name), "symlinking")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1227 | }
1228 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1235:15: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1233 | directories[file.name[...]] = await addTask {
1234 | try await task?.value
1235 | guard !options.dryRun else {
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1236 | return
1237 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1240:20: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1238 |
1239 | measureFilesystemOperation(named: "mkdir") {
1240 | warn(mkdir(file.name, mode_t(file.mode & 0o777)), "creating directory at")
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1241 | }
1242 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1240:20: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1238 |
1239 | measureFilesystemOperation(named: "mkdir") {
1240 | warn(mkdir(file.name, mode_t(file.mode & 0o777)), "creating directory at")
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1241 | }
1242 | setStickyBit(on: file)
/Users/admin/builder/spi-builder-workspace/unxip.swift:1254:11: warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1104 | public typealias Next = Disk
1105 |
1106 | public struct Options {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
1107 | public let compress: Bool
1108 | public let dryRun: Bool
:
1252 | #if canImport(Darwin)
1253 | let compressedData =
1254 | options.compress
| `- warning: capture of 'options' with non-sendable type 'Files.Options' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
/Users/admin/builder/spi-builder-workspace/unxip.swift:1256:18: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1254 | options.compress
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1257 | }.result.get() : nil
1258 | #endif
/Users/admin/builder/spi-builder-workspace/unxip.swift:1256:18: warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1254 | options.compress
1255 | ? try! await compressionStream.addTask {
1256 | await file.compressedData()
| `- warning: capture of 'file' with non-sendable type 'File' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1257 | }.result.get() : nil
1258 | #endif
/Users/admin/builder/spi-builder-workspace/unxip.swift:1265:15: warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1263 |
1264 | let fd = measureFilesystemOperation(named: "open") {
1265 | open(file.name, O_CREAT | O_WRONLY, mode_t(file.mode & 0o777))
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated closure; this is an error in the Swift 6 language mode
1266 | }
1267 | if fd < 0 {
/Users/admin/builder/spi-builder-workspace/unxip.swift:1275:27: warning: capture of 'file' with non-sendable type 'File' in an isolated local function; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1273 | warn(close(fd), "closing")
1274 | }
1275 | setStickyBit(on: file)
| `- warning: capture of 'file' with non-sendable type 'File' in an isolated local function; this is an error in the Swift 6 language mode
1276 | }
1277 |
/Users/admin/builder/spi-builder-workspace/unxip.swift:1380:19: warning: non-sendable type 'Self.Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1378 | return (
1379 | .init {
1380 | try await pal.next()
| `- warning: non-sendable type 'Self.Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1381 | },
1382 | .init {
/Users/admin/builder/spi-builder-workspace/unxip.swift:1383:19: warning: non-sendable type 'Self.Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1381 | },
1382 | .init {
1383 | try await pal.next()
| `- warning: non-sendable type 'Self.Element?' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1384 | }
1385 | )
/Users/admin/builder/spi-builder-workspace/unxip.swift:1440:77: warning: reference to var 'optind' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
1438 | } while true
1439 |
1440 | let arguments = UnsafeBufferPointer(start: CommandLine.unsafeArgv + Int(optind), count: Int(CommandLine.argc - optind)).map {
| `- warning: reference to var 'optind' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
1441 | String(cString: $0!)
1442 | }
unistd.optind:1:12: note: var declared here
1 | public var optind: Int32
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/unxip.swift:1440:116: warning: reference to var 'optind' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
1438 | } while true
1439 |
1440 | let arguments = UnsafeBufferPointer(start: CommandLine.unsafeArgv + Int(optind), count: Int(CommandLine.argc - optind)).map {
| `- warning: reference to var 'optind' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
1441 | String(cString: $0!)
1442 | }
unistd.optind:1:12: note: var declared here
1 | public var optind: Int32
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/unxip.swift:1604:4: warning: non-sendable type 'File?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
616 | }
617 |
618 | public struct File {
| `- note: consider making struct 'File' conform to the 'Sendable' protocol
619 | public let dev: Int
620 | public let ino: Int
:
1602 | }
1603 |
1604 | for try await file in Unxip.makeStream(from: .xip(wrapping: input), to: .disk, input: DataReader(data: input), nil, nil, .init(compress: options.compress, dryRun: options.dryRun)) {
| `- warning: non-sendable type 'File?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
1605 | await statistics.note(file)
1606 | if options.verbose {
/Users/admin/builder/spi-builder-workspace/unxip.swift:142:40: warning: sending 'iterator' risks causing data races; this is an error in the Swift 6 language mode
140 | let next: Result<Element?, Error>
141 | do {
142 | next = .success(try await iterator.next())
| |- warning: sending 'iterator' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'iterator' to nonisolated instance method 'next()' risks causing data races between nonisolated and 'self'-isolated uses
143 | } catch {
144 | next = .failure(error)
/Users/admin/builder/spi-builder-workspace/unxip.swift:148:18: warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
146 | self.iterator = iterator
147 | for continuation in queued {
148 | continuation.resume(with: next)
| |- warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
| |- note: 'next' used after being passed as a 'sending' parameter; Later uses could race
| `- note: access can happen concurrently
149 | }
150 | queued.removeAll()
/Users/admin/builder/spi-builder-workspace/unxip.swift:390:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
388 | }
389 | stream.orderingConditions[index]!.signal()
390 | stream.continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'stream'-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later 'stream'-isolated uses
391 | if index == stream.finishedIndex {
392 | stream.continuation.finish()
/Users/admin/builder/spi-builder-workspace/unxip.swift:584:8: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
582 | #endif
583 | let chunk = chunk
584 | Task {
| `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
585 | await stream.yield(
586 | [UInt8](unsafeUninitializedCapacity: chunk.count) { buffer, count in
/Users/admin/builder/spi-builder-workspace/unxip.swift:962:3: warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
960 | let chunkStream = BackpressureStream(backpressure: CountedBackpressure(max: 16), of: Chunk.self)
961 |
962 | Task {
| `- warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
963 | var content = data
964 |
/Users/admin/builder/spi-builder-workspace/unxip.swift:1140:3: warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
1138 | let completion = Completion()
1139 |
1140 | Task {
| `- warning: task-isolated value of type '() async throws -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
1141 | let compressionStream = ConcurrentStream<[UInt8]?>(consumeResults: true)
1142 |
/Users/admin/builder/spi-builder-workspace/unxip.swift:1134:29: warning: sending 'self'-isolated value of type 'File' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
1132 | func waitForCompletions() async {
1133 | while !queued.empty {
1134 | await completionStream.yield(queued.pop())
| `- warning: sending 'self'-isolated value of type 'File' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
1135 | }
1136 | }
/Users/admin/builder/spi-builder-workspace/unxip.swift:1376:58: warning: sending task-isolated value of type 'Self.AsyncIterator' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
1374 | extension AsyncSequence {
1375 | public func lockstepSplit() -> (AsyncThrowingStream<Element, Error>, AsyncThrowingStream<Element, Error>) {
1376 | let pal = AsyncThrowingStream.PermissiveActionLink<Self>(iterator: makeAsyncIterator(), count: 2)
| `- warning: sending task-isolated value of type 'Self.AsyncIterator' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
1377 |
1378 | return (
/Users/admin/builder/spi-builder-workspace/unxip.swift:1605:22: warning: sending 'file' risks causing data races; this is an error in the Swift 6 language mode
1603 |
1604 | for try await file in Unxip.makeStream(from: .xip(wrapping: input), to: .disk, input: DataReader(data: input), nil, nil, .init(compress: options.compress, dryRun: options.dryRun)) {
1605 | await statistics.note(file)
| |- warning: sending 'file' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'file' to actor-isolated instance method 'note' risks causing data races between actor-isolated and local main actor-isolated uses
1606 | if options.verbose {
1607 | print(file.name)
| `- note: access can happen concurrently
1608 | }
1609 | }
[8/11] Write Objects.LinkFileList
[9/11] Linking unxip
[10/11] Applying unxip
Build complete! (8.41s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/libunxip/libunxip.swift
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "unxip",
"name" : "unxip",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "unxip",
"targets" : [
"unxip"
],
"type" : {
"executable" : null
}
},
{
"name" : "libunxip",
"targets" : [
"libunxip"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "unxip",
"module_type" : "SwiftTarget",
"name" : "unxip",
"path" : ".",
"product_memberships" : [
"unxip"
],
"sources" : [
"unxip.swift"
],
"type" : "executable"
},
{
"c99name" : "libunxip",
"module_type" : "SwiftTarget",
"name" : "libunxip",
"path" : "Sources/libunxip",
"product_memberships" : [
"libunxip"
],
"sources" : [
"libunxip.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.