Build Information
Successful build of gir2swift, reference 17.0.0 (d00424
), with Swift 6.1 for Linux on 30 Apr 2025 21:35:41 UTC.
Swift 6 data race errors: 358
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
268 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
268 | let convert = swiftCode(gir.functions)
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
273 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
274 | let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 | let records = gir.records.filter { r in
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | )
283 | }
284 | write(records, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
287 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
287 | let convert = swiftCode(gir.functions)
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
292 | let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 | } else { outq.async(group: queues) { outputString += functions } }
297 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
300 | let extensions = Set(extensionNamespace)
301 | background.async(group: queues) {
302 | let privatePrefix = "_" + gir.prefix + "_"
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
303 | let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 | let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
310 | let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 | if let f = outputFile {
312 | write(code, to: f, preamble: preamble)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 | } else {
314 | outq.async(group: queues) { outputString += code }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 | let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | } else { outq.async(group: queues) { outputString += code } }
346 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
346 | }
347 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
150 | }
151 | func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
222 |
223 | background.async(group: queues) {
224 | let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
227 | write(aliases, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
232 | let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 | } else { outq.async(group: queues) { outputString += callbacks } }
237 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
239 | let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 | } else { outq.async(group: queues) { outputString += constants } }
244 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
246 | let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 | } else { outq.async(group: queues) { outputString += enumerations } }
251 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
253 | let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 | } else { outq.async(group: queues) { outputString += bitfields } }
258 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
260 | let convert = swiftUnionsConversion(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
261 | let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 | if let dir = outputDirectory {
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
262 | if let dir = outputDirectory {
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 | } else { outq.async(group: queues) { outputString += unions } }
266 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
268 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
268 | let convert = swiftCode(gir.functions)
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
273 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
274 | let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 | let records = gir.records.filter { r in
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | )
283 | }
284 | write(records, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
287 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
287 | let convert = swiftCode(gir.functions)
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
292 | let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 | } else { outq.async(group: queues) { outputString += functions } }
297 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
300 | let extensions = Set(extensionNamespace)
301 | background.async(group: queues) {
302 | let privatePrefix = "_" + gir.prefix + "_"
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
303 | let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 | let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
310 | let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 | if let f = outputFile {
312 | write(code, to: f, preamble: preamble)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 | } else {
314 | outq.async(group: queues) { outputString += code }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 | let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | } else { outq.async(group: queues) { outputString += code } }
346 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
346 | }
347 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
150 | }
151 | func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
222 |
223 | background.async(group: queues) {
224 | let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
227 | write(aliases, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
232 | let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 | } else { outq.async(group: queues) { outputString += callbacks } }
237 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
239 | let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 | } else { outq.async(group: queues) { outputString += constants } }
244 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
246 | let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 | } else { outq.async(group: queues) { outputString += enumerations } }
251 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
253 | let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 | } else { outq.async(group: queues) { outputString += bitfields } }
258 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
260 | let convert = swiftUnionsConversion(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
261 | let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 | if let dir = outputDirectory {
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
262 | if let dir = outputDirectory {
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 | } else { outq.async(group: queues) { outputString += unions } }
266 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
268 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
268 | let convert = swiftCode(gir.functions)
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
273 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
274 | let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 | let records = gir.records.filter { r in
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | )
283 | }
284 | write(records, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
287 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
287 | let convert = swiftCode(gir.functions)
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
292 | let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 | } else { outq.async(group: queues) { outputString += functions } }
297 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
300 | let extensions = Set(extensionNamespace)
301 | background.async(group: queues) {
302 | let privatePrefix = "_" + gir.prefix + "_"
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
303 | let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 | let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
310 | let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 | if let f = outputFile {
312 | write(code, to: f, preamble: preamble)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 | } else {
314 | outq.async(group: queues) { outputString += code }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 | let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | } else { outq.async(group: queues) { outputString += code } }
346 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
346 | }
347 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
150 | }
151 | func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
222 |
223 | background.async(group: queues) {
224 | let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
227 | write(aliases, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
232 | let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 | } else { outq.async(group: queues) { outputString += callbacks } }
237 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
239 | let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 | } else { outq.async(group: queues) { outputString += constants } }
244 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
246 | let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 | } else { outq.async(group: queues) { outputString += enumerations } }
251 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
253 | let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 | } else { outq.async(group: queues) { outputString += bitfields } }
258 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
260 | let convert = swiftUnionsConversion(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
261 | let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 | if let dir = outputDirectory {
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
262 | if let dir = outputDirectory {
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 | } else { outq.async(group: queues) { outputString += unions } }
266 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
268 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
268 | let convert = swiftCode(gir.functions)
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
273 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
274 | let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 | let records = gir.records.filter { r in
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | )
283 | }
284 | write(records, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
287 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
287 | let convert = swiftCode(gir.functions)
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
292 | let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 | } else { outq.async(group: queues) { outputString += functions } }
297 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
300 | let extensions = Set(extensionNamespace)
301 | background.async(group: queues) {
302 | let privatePrefix = "_" + gir.prefix + "_"
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
303 | let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 | let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
310 | let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 | if let f = outputFile {
312 | write(code, to: f, preamble: preamble)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 | } else {
314 | outq.async(group: queues) { outputString += code }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 | let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | } else { outq.async(group: queues) { outputString += code } }
346 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
346 | }
347 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
150 | }
151 | func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
222 |
223 | background.async(group: queues) {
224 | let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
227 | write(aliases, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
232 | let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 | } else { outq.async(group: queues) { outputString += callbacks } }
237 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
239 | let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 | } else { outq.async(group: queues) { outputString += constants } }
244 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
246 | let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 | } else { outq.async(group: queues) { outputString += enumerations } }
251 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
253 | let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 | } else { outq.async(group: queues) { outputString += bitfields } }
258 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
260 | let convert = swiftUnionsConversion(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
261 | let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 | if let dir = outputDirectory {
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
262 | if let dir = outputDirectory {
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 | } else { outq.async(group: queues) { outputString += unions } }
266 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
268 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
268 | let convert = swiftCode(gir.functions)
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
273 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
274 | let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 | let records = gir.records.filter { r in
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | )
283 | }
284 | write(records, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
287 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
287 | let convert = swiftCode(gir.functions)
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
292 | let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 | } else { outq.async(group: queues) { outputString += functions } }
297 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
300 | let extensions = Set(extensionNamespace)
301 | background.async(group: queues) {
302 | let privatePrefix = "_" + gir.prefix + "_"
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
303 | let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 | let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
310 | let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 | if let f = outputFile {
312 | write(code, to: f, preamble: preamble)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 | } else {
314 | outq.async(group: queues) { outputString += code }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 | let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | } else { outq.async(group: queues) { outputString += code } }
346 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
346 | }
347 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:152:46: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
150 | }
151 | func writebg(queue: DispatchQueue = background, _ string: String, to fileName: String, append doAppend: Bool = false) {
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:224:31: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
222 |
223 | background.async(group: queues) {
224 | let aliases = gir.aliases.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:227:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
225 | if let dir = outputDirectory {
226 | let f = "\(dir)/\(node)-aliases.swift"
227 | write(aliases, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:232:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
230 | }
231 | background.async(group: queues) {
232 | let callbacks = gir.callbacks.filter{!exclusions.contains($0.name)}.map(swiftCallbackAliasCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:235:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
233 | if let dir = outputDirectory {
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 | } else { outq.async(group: queues) { outputString += callbacks } }
237 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:239:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
237 | }
238 | background.async(group: queues) {
239 | let constants = gir.constants.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:242:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
240 | if let dir = outputDirectory {
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 | } else { outq.async(group: queues) { outputString += constants } }
244 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:246:36: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
244 | }
245 | background.async(group: queues) {
246 | let enumerations = gir.enumerations.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:249:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
247 | if let dir = outputDirectory {
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
250 | } else { outq.async(group: queues) { outputString += enumerations } }
251 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:253:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
251 | }
252 | background.async(group: queues) {
253 | let bitfields = gir.bitfields.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:256:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
254 | if let dir = outputDirectory {
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
257 | } else { outq.async(group: queues) { outputString += bitfields } }
258 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:260:53: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
258 | }
259 | background.async(group: queues) {
260 | let convert = swiftUnionsConversion(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
261 | let unions = gir.unions.filter {!exclusions.contains($0.name)}.map(convert).joined(separator: "\n\n")
262 | if let dir = outputDirectory {
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:264:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
262 | if let dir = outputDirectory {
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
265 | } else { outq.async(group: queues) { outputString += unions } }
266 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:268:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
266 | }
267 | background.async(group: queues) {
268 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:270:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
268 | let convert = swiftCode(gir.functions)
269 | let types = gir.interfaces.filter {!exclusions.contains($0.name)}
270 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:273:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
271 | }
272 | background.async(group: queues) {
273 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
274 | let classes = generateAll ? [:] : Dictionary(gir.classes.map { ($0.name, $0) }) { lhs, _ in lhs}
275 | let records = gir.records.filter { r in
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:284:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
282 | )
283 | }
284 | write(records, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:287:41: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
285 | }
286 | background.async(group: queues) {
287 | let convert = swiftCode(gir.functions)
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:289:17: warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
287 | let convert = swiftCode(gir.functions)
288 | let types = gir.classes.filter{!exclusions.contains($0.name)}
289 | write(types, using: convert)
| `- warning: capture of 'write(_:using:)' with non-sendable type '<T where T : GIR.Record> ([T], using: (String) -> (GIR.Record) -> String) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:292:33: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
290 | }
291 | background.async(group: queues) {
292 | let functions = gir.functions.filter{!exclusions.contains($0.name)}.map(swiftCode).joined(separator: "\n\n")
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:295:21: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
293 | if let dir = outputDirectory {
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
296 | } else { outq.async(group: queues) { outputString += functions } }
297 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:302:47: warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
300 | let extensions = Set(extensionNamespace)
301 | background.async(group: queues) {
302 | let privatePrefix = "_" + gir.prefix + "_"
| `- warning: capture of 'gir' with non-sendable type 'GIR' in a '@Sendable' closure; this is an error in the Swift 6 language mode
303 | let prefixedAliasSwiftCode = typeAliasSwiftCode(prefixedWith: privatePrefix)
304 | let privateRecords = gir.records.filter{!exclusions.contains($0.name)}.map(prefixedAliasSwiftCode).joined(separator: "\n")
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:22:20: note: class 'GIR' does not conform to the 'Sendable' protocol
20 |
21 | /// Representation of a GIR file
22 | public final class GIR {
| `- note: class 'GIR' does not conform to the 'Sendable' protocol
23 | /// The parsed XML document represented by the receiver
24 | public let xml: XMLDocument
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:312:25: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
310 | let outputFile = outputDirectory.map { "\($0)/\(node)-namespaces.swift" }
311 | if let f = outputFile {
312 | write(code, to: f, preamble: preamble)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
313 | } else {
314 | outq.async(group: queues) { outputString += code }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:344:29: warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
342 | let code = namespaceDeclaration + [constants, records, aliases, enumerations, bitfields, unions].joined(separator: "\n\n") + "\n}\n\n"
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
| |- warning: capture of 'write(_:to:preamble:append:)' with non-sendable type '(String, String, String, Bool) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
345 | } else { outq.async(group: queues) { outputString += code } }
346 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode
346 | }
347 | }
[260/279] Compiling libgir2swift CodeBuilder.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
[261/279] Compiling libgir2swift c2swift.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
[262/279] Compiling libgir2swift emit-class.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
[263/279] Compiling libgir2swift emit-signals.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
[264/279] Compiling libgir2swift gir+swift.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
[265/279] Compiling libgir2swift girtypes+swift.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCodeIndentation' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
[272/281] Wrapping AST for libgir2swift for debugging
[275/283] Emitting module gir2swift
[276/283] Compiling gir2swift main.swift
[276/283] Wrapping AST for libgir2swift for debugging
[278/286] Wrapping AST for gir2swift for debugging
[279/286] Write Objects.LinkFileList
[281/286] Emitting module gir2swift
[282/286] Compiling gir2swift main.swift
[283/287] Wrapping AST for gir2swift for debugging
[284/287] Write Objects.LinkFileList
[285/287] Linking gir2swift-tool
[286/287] Linking gir2swift
Build complete! (95.51s)
Build complete.
{
"dependencies" : [
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.6",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
},
{
"identity" : "swiftlibxml",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/rhx/SwiftLibXML.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "gir2swift",
"name" : "gir2swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "gir2swift",
"targets" : [
"gir2swift"
],
"type" : {
"executable" : null
}
},
{
"name" : "libgir2swift",
"targets" : [
"libgir2swift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "gir2swift-plugin",
"targets" : [
"gir2swift-plugin"
],
"type" : {
"plugin" : null
}
}
],
"targets" : [
{
"c99name" : "libgir2swift",
"module_type" : "SwiftTarget",
"name" : "libgir2swift",
"path" : "Sources/libgir2swift",
"product_dependencies" : [
"SwiftLibXML",
"ArgumentParser",
"Yams"
],
"product_memberships" : [
"gir2swift",
"libgir2swift",
"gir2swift-plugin"
],
"sources" : [
"emitting/CodeBuilder.swift",
"emitting/c2swift.swift",
"emitting/emit-class.swift",
"emitting/emit-signals.swift",
"emitting/gir+swift.swift",
"emitting/girtypes+swift.swift",
"emitting/gtk2swiftdoc.swift",
"models/ConversionContext.swift",
"models/Gir+Enums.swift",
"models/Gir+KnowTypeSets.swift",
"models/Gir+KnownTypes.swift",
"models/Gir.swift",
"models/Gir2Swift.swift",
"models/GirType.swift",
"models/TypeConversion.swift",
"models/TypeReference.swift",
"models/gir elements/GirAlias.swift",
"models/gir elements/GirArgument.swift",
"models/gir elements/GirBitfield.swift",
"models/gir elements/GirCType.swift",
"models/gir elements/GirCallback.swift",
"models/gir elements/GirClass.swift",
"models/gir elements/GirConstant.swift",
"models/gir elements/GirDatatype.swift",
"models/gir elements/GirEnumeration.swift",
"models/gir elements/GirField.swift",
"models/gir elements/GirFunction.swift",
"models/gir elements/GirInterface.swift",
"models/gir elements/GirMethod.swift",
"models/gir elements/GirProperty.swift",
"models/gir elements/GirRecord.swift",
"models/gir elements/GirSignal.swift",
"models/gir elements/GirThing.swift",
"models/gir elements/GirUnion.swift",
"models/girtype+xml.swift",
"utilities/Character+Utilities.swift",
"utilities/Collection+Utilities.swift",
"utilities/Streams.swift",
"utilities/String+Substring.swift",
"utilities/String+Utilities.swift",
"utilities/System.swift",
"utilities/XML+Utilities.swift",
"utilities/generation.swift",
"utilities/planning.swift",
"utilities/postprocessing.swift"
],
"type" : "library"
},
{
"c99name" : "gir2swiftTests",
"module_type" : "SwiftTarget",
"name" : "gir2swiftTests",
"path" : "Tests/gir2swiftTests",
"sources" : [
"gir2swiftTests.swift"
],
"target_dependencies" : [
"libgir2swift"
],
"type" : "test"
},
{
"c99name" : "gir2swift_plugin",
"module_type" : "PluginTarget",
"name" : "gir2swift-plugin",
"path" : "Plugins/gir2swift-plugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"gir2swift-plugin"
],
"sources" : [
"plugin.swift"
],
"target_dependencies" : [
"gir2swift"
],
"type" : "plugin"
},
{
"c99name" : "gir2swift",
"module_type" : "SwiftTarget",
"name" : "gir2swift",
"path" : "Sources/gir2swift",
"product_memberships" : [
"gir2swift",
"gir2swift-plugin"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"libgir2swift"
],
"type" : "executable"
}
],
"tools_version" : "5.6"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.