Build Information
Successful build of Saga, reference 2.4.0 (abb266
), with Swift 6.2 (beta) for Linux on 24 Jun 2025 10:58:27 UTC.
Swift 6 data race errors: 0
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/loopwerk/Saga.git
Reference: 2.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/loopwerk/Saga
* tag 2.4.0 -> FETCH_HEAD
HEAD is now at abb2663 feat: Renderers can now optionally be async
Cloned https://github.com/loopwerk/Saga.git
Revision (git rev-parse @):
abb2663bf05ae94720ccbeab4e69c1ef5861cea0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/loopwerk/Saga.git at 2.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/loopwerk/Saga.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/kylef/PathKit
[1/1411] Fetching pathkit
Fetched https://github.com/kylef/PathKit from cache (0.39s)
Computing version for https://github.com/kylef/PathKit
Computed https://github.com/kylef/PathKit at 1.0.1 (4.32s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.87s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (1.67s)
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/kylef/PathKit
Working copy of https://github.com/kylef/PathKit resolved at 1.0.1
Building for debugging...
[0/8] Write sources
[3/8] Write swift-version-24593BA9C3E375BF.txt
[5/10] Compiling PathKit PathKit.swift
[6/10] Emitting module PathKit
[7/11] Wrapping AST for PathKit for debugging
[9/27] Emitting module SagaCLI
[10/27] Compiling SagaCLI main.swift
[11/28] Wrapping AST for SagaCLI for debugging
[12/28] Write Objects.LinkFileList
[13/28] Linking watch
[15/28] Compiling Saga Reader.swift
[16/28] Compiling Saga RenderingContexts.swift
[17/29] Compiling Saga Path+Extensions.swift
/host/spi-builder-workspace/Sources/Saga/Path+Extensions.swift:52:3: warning: extension declares a conformance of imported type 'Path' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
50 | }
51 | #else
52 | extension Path: Decodable {
| |- warning: extension declares a conformance of imported type 'Path' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
53 | public init(from decoder: Decoder) throws {
54 | let container = try decoder.singleValueContainer()
/host/spi-builder-workspace/Sources/Saga/ProcessingStep.swift:46:32: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | group.addTask {
45 | // Pick the first reader that is able to work on this file, based on file extension
46 | guard let reader = step.readers.first(where: { $0.supportedExtensions.contains(container.path.extension ?? "") }) else {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | return (index, nil)
48 | }
/host/spi-builder-workspace/Sources/Saga/ProcessingStep.swift:26:21: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
24 | let runWriters: () async throws -> Void
25 |
26 | init<M: Metadata>(step: ProcessStep<M>, fileStorage: [FileContainer], inputPath: Path, outputPath: Path, itemWriteMode: ItemWriteMode, fileIO: FileIO) {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
27 | runReaders = {
28 | let unhandledFileContainers = fileStorage.filter { $0.handled == false }
/host/spi-builder-workspace/Sources/Saga/ProcessingStep.swift:120:30: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
118 | for writer in step.writers {
119 | group.addTask {
120 | try await writer.run(step.items, allItems, fileStorage, outputPath, step.folder ?? "", fileIO)
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
121 | }
122 | }
/host/spi-builder-workspace/Sources/Saga/ProcessingStep.swift:118:13: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
116 |
117 | try await withThrowingTaskGroup(of: Void.self) { group in
118 | for writer in step.writers {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
119 | group.addTask {
120 | try await writer.run(step.items, allItems, fileStorage, outputPath, step.folder ?? "", fileIO)
[18/29] Compiling Saga ProcessingStep.swift
/host/spi-builder-workspace/Sources/Saga/Path+Extensions.swift:52:3: warning: extension declares a conformance of imported type 'Path' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
50 | }
51 | #else
52 | extension Path: Decodable {
| |- warning: extension declares a conformance of imported type 'Path' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
53 | public init(from decoder: Decoder) throws {
54 | let container = try decoder.singleValueContainer()
/host/spi-builder-workspace/Sources/Saga/ProcessingStep.swift:46:32: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
44 | group.addTask {
45 | // Pick the first reader that is able to work on this file, based on file extension
46 | guard let reader = step.readers.first(where: { $0.supportedExtensions.contains(container.path.extension ?? "") }) else {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
47 | return (index, nil)
48 | }
/host/spi-builder-workspace/Sources/Saga/ProcessingStep.swift:26:21: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
24 | let runWriters: () async throws -> Void
25 |
26 | init<M: Metadata>(step: ProcessStep<M>, fileStorage: [FileContainer], inputPath: Path, outputPath: Path, itemWriteMode: ItemWriteMode, fileIO: FileIO) {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
27 | runReaders = {
28 | let unhandledFileContainers = fileStorage.filter { $0.handled == false }
/host/spi-builder-workspace/Sources/Saga/ProcessingStep.swift:120:30: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
118 | for writer in step.writers {
119 | group.addTask {
120 | try await writer.run(step.items, allItems, fileStorage, outputPath, step.folder ?? "", fileIO)
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
121 | }
122 | }
/host/spi-builder-workspace/Sources/Saga/ProcessingStep.swift:118:13: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
116 |
117 | try await withThrowingTaskGroup(of: Void.self) { group in
118 | for writer in step.writers {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
119 | group.addTask {
120 | try await writer.run(step.items, allItems, fileStorage, outputPath, step.folder ?? "", fileIO)
[19/29] Compiling Saga utils.swift
[20/29] Compiling Saga Saga.swift
[21/29] Compiling Saga String+Slugify.swift
[22/29] Compiling Saga Writer.swift
/host/spi-builder-workspace/Sources/Saga/Writer.swift:26:13: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
24 | return Writer(run: { items, allItems, fileStorage, outputRoot, outputPrefix, fileIO in
25 | try await withThrowingTaskGroup(of: Void.self) { group in
26 | for item in items {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
27 | group.addTask {
28 | // Resources are unhandled files in the same folder. These could be images for example, or other static files.
/host/spi-builder-workspace/Sources/Saga/Writer.swift:32:27: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
30 | .filter { $0.relativePath.parent() == item.relativeSource.parent() && !$0.handled }
31 | .map { $0.path }
32 | let context = ItemRenderingContext(item: item, items: items, allItems: allItems, resources: resources)
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
33 | let stringToWrite = try await renderer(context)
34 | try fileIO.write(outputRoot + item.relativeDestination, stringToWrite)
/host/spi-builder-workspace/Sources/Saga/Writer.swift:64:100: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
62 | for (key, itemsInPartition) in Array(partitions).sorted(by: { $0.0 < $1.0 }) {
63 | group.addTask {
64 | let finishedOutputPath = Path(output.string.replacingOccurrences(of: "[key]", with: "\(key.slugified)"))
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
65 | let finishedPaginatedOutputPath = Path(paginatedOutput.string.replacingOccurrences(of: "[key]", with: "\(key.slugified)"))
66 | try await writePages(renderer: renderer, items: itemsInPartition, allItems: allItems, outputRoot: outputRoot, outputPrefix: outputPrefix, output: finishedOutputPath, paginate: paginate, paginatedOutput: finishedPaginatedOutputPath, fileIO: fileIO) {
/host/spi-builder-workspace/Sources/Saga/Writer.swift:62:14: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
60 |
61 | try await withThrowingTaskGroup(of: Void.self) { group in
62 | for (key, itemsInPartition) in Array(partitions).sorted(by: { $0.0 < $1.0 }) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
63 | group.addTask {
64 | let finishedOutputPath = Path(output.string.replacingOccurrences(of: "[key]", with: "\(key.slugified)"))
/host/spi-builder-workspace/Sources/Saga/Writer.swift:66:23: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
64 | let finishedOutputPath = Path(output.string.replacingOccurrences(of: "[key]", with: "\(key.slugified)"))
65 | let finishedPaginatedOutputPath = Path(paginatedOutput.string.replacingOccurrences(of: "[key]", with: "\(key.slugified)"))
66 | try await writePages(renderer: renderer, items: itemsInPartition, allItems: allItems, outputRoot: outputRoot, outputPrefix: outputPrefix, output: finishedOutputPath, paginate: paginate, paginatedOutput: finishedPaginatedOutputPath, fileIO: fileIO) {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
67 | PartitionedRenderingContext(key: key, items: $0, allItems: $1, paginator: $2, outputPath: $3)
68 | }
/host/spi-builder-workspace/Sources/Saga/Writer.swift:57:15: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 | /// The `output` path is a template where `[key]` will be replaced with the key used for the partition.
56 | /// Example: `articles/[key]/index.html`
57 | static func partitionedWriter<T>(_ renderer: @escaping (PartitionedRenderingContext<T, M>) async throws -> String, output: Path = "[key]/index.html", paginate: Int? = nil, paginatedOutput: Path = "[key]/page/[page]/index.html", partitioner: @escaping ([Item<M>]) -> [T: [Item<M>]]) -> Self {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | return Writer(run: { items, allItems, fileStorage, outputRoot, outputPrefix, fileIO in
59 | let partitions = partitioner(items)
/host/spi-builder-workspace/Sources/Saga/Writer.swift:162:27: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
160 |
161 | let finishedOutputPath = Path(paginatedOutput.string.replacingOccurrences(of: "[page]", with: "\(currentPage)"))
162 | let context = getContext(items, allItems, paginator, outputPrefix + finishedOutputPath)
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 | let stringToWrite = try await renderer(context)
164 | try fileIO.write(outputRoot + outputPrefix + finishedOutputPath, stringToWrite)
/host/spi-builder-workspace/Sources/Saga/Writer.swift:123:235: warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
121 |
122 | private extension Writer {
123 | static func writePages<Context>(renderer: @escaping (Context) async throws -> String, items: [Item<M>], allItems: [AnyItem], outputRoot: Path, outputPrefix: Path, output: Path, paginate: Int?, paginatedOutput: Path, fileIO: FileIO, getContext: @escaping ([Item<M>], [AnyItem], Paginator?, Path) -> Context) async throws {
| `- warning: capture of non-Sendable type 'M.Type' in an isolated closure; this is an error in the Swift 6 language mode
124 | if let perPage = paginate {
125 | let ranges = items.chunked(into: perPage)
[23/29] Compiling Saga FileIO.swift
[24/29] Compiling Saga Item.swift
[25/29] Emitting module Saga
/host/spi-builder-workspace/Sources/Saga/Path+Extensions.swift:52:3: warning: extension declares a conformance of imported type 'Path' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
50 | }
51 | #else
52 | extension Path: Decodable {
| |- warning: extension declares a conformance of imported type 'Path' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
53 | public init(from decoder: Decoder) throws {
54 | let container = try decoder.singleValueContainer()
[26/29] Compiling Saga ItemWriteMode.swift
[27/29] Compiling Saga MetadataDecoder.swift
[28/29] Compiling Saga Atom.swift
[29/29] Compiling Saga FileContainer.swift
Build complete! (30.91s)
Build complete.
{
"dependencies" : [
{
"identity" : "pathkit",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/PathKit"
}
],
"manifest_display_name" : "Saga",
"name" : "Saga",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Saga",
"targets" : [
"Saga"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "watch",
"targets" : [
"SagaCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SagaTests",
"module_type" : "SwiftTarget",
"name" : "SagaTests",
"path" : "Tests/SagaTests",
"sources" : [
"SagaTests.swift"
],
"target_dependencies" : [
"Saga"
],
"type" : "test"
},
{
"c99name" : "SagaCLI",
"module_type" : "SwiftTarget",
"name" : "SagaCLI",
"path" : "Sources/SagaCLI",
"product_dependencies" : [
"PathKit"
],
"product_memberships" : [
"watch"
],
"sources" : [
"main.swift"
],
"type" : "executable"
},
{
"c99name" : "Saga",
"module_type" : "SwiftTarget",
"name" : "Saga",
"path" : "Sources/Saga",
"product_dependencies" : [
"PathKit"
],
"product_memberships" : [
"Saga"
],
"sources" : [
"Atom.swift",
"FileContainer.swift",
"FileIO.swift",
"Item.swift",
"ItemWriteMode.swift",
"MetadataDecoder.swift",
"Path+Extensions.swift",
"ProcessingStep.swift",
"Reader.swift",
"RenderingContexts.swift",
"Saga.swift",
"String+Slugify.swift",
"Writer.swift",
"utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Done.