Build Information
Failed to build SwiftDocCPlugin, reference main (5f2e24), with Swift 6.1 for Wasm on 29 May 2025 02:43:16 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/themomax/swift-docc-plugin.git
Reference: main
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/themomax/swift-docc-plugin
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5f2e247 Rename snippet-build to snippet-extract (#33)
Cloned https://github.com/themomax/swift-docc-plugin.git
Revision (git rev-parse @):
5f2e247f5efef4ff8ee603443a9a29225ce9f0e2
SUCCESS checkout https://github.com/themomax/swift-docc-plugin.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/themomax/swift-docc-plugin.git
https://github.com/themomax/swift-docc-plugin.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-docc-symbolkit",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-symbolkit"
}
],
"manifest_display_name" : "SwiftDocCPlugin",
"name" : "SwiftDocCPlugin",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15.4"
}
],
"products" : [
{
"name" : "Swift-DocC",
"targets" : [
"Swift-DocC"
],
"type" : {
"plugin" : null
}
},
{
"name" : "Swift-DocC Preview",
"targets" : [
"Swift-DocC Preview"
],
"type" : {
"plugin" : null
}
},
{
"name" : "snippet-extract",
"targets" : [
"snippet-extract"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "snippet_extract",
"module_type" : "SwiftTarget",
"name" : "snippet-extract",
"path" : "Sources/snippet-extract",
"product_dependencies" : [
"SymbolKit"
],
"product_memberships" : [
"Swift-DocC",
"Swift-DocC Preview",
"snippet-extract"
],
"sources" : [
"SnippetBuildCommand.swift",
"Utility/SymbolGraph+Snippet.swift",
"Utility/URL+Status.swift"
],
"target_dependencies" : [
"Snippets"
],
"type" : "executable"
},
{
"c99name" : "SwiftDocCPluginUtilitiesTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDocCPluginUtilitiesTests",
"path" : "Tests/SwiftDocCPluginUtilitiesTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/SwiftDocCPluginUtilitiesTests/Test Fixtures",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"ArgumentsOutputPathTests.swift",
"CommandLineOptions/RequiredCommandLineOptionTests.swift",
"DispatchTimeIntervalExtensionTests.swift",
"HelpInformationTests.swift",
"ParsedArgumentsTests.swift",
"PluginFlags/DisableIndexFlagTests.swift",
"PluginFlags/PluginFlagTests.swift",
"SnippetParseTests.swift",
"Snippets/SnippetExtractTests.swift",
"Utilities/XCTest+testResourceAsString.swift"
],
"target_dependencies" : [
"Snippets",
"SwiftDocCPluginUtilities"
],
"type" : "test"
},
{
"c99name" : "SwiftDocCPluginUtilities",
"module_type" : "SwiftTarget",
"name" : "SwiftDocCPluginUtilities",
"path" : "Sources/SwiftDocCPluginUtilities",
"sources" : [
"Arguments+outputPath.swift",
"Arguments.swift",
"CommandLineOptions/CommandLineOption.swift",
"CommandLineOptions/RequiredCommandLineOption.swift",
"DispatchTimeInterval+descriptionInSeconds.swift",
"DocumentationTargetKind.swift",
"FoundationExtensions/String+singleQuoted.swift",
"HelpInformation.swift",
"ParsedArguments.swift",
"PluginAction.swift",
"PluginFlags/ArgumentsTransforming.swift",
"PluginFlags/DisableIndexFlag.swift",
"PluginFlags/PluginFlag.swift",
"Snippets/SnippetExtractor.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftDocCPlugin",
"module_type" : "SwiftTarget",
"name" : "SwiftDocCPlugin",
"path" : "Sources/SwiftDocCPluginDocumentation",
"sources" : [
"EmptyFile.swift"
],
"type" : "library"
},
{
"c99name" : "Swift_DocC_Preview",
"module_type" : "PluginTarget",
"name" : "Swift-DocC Preview",
"path" : "Plugins/Swift-DocC Preview",
"plugin_capability" : {
"intent" : {
"description" : "Preview the Swift-DocC documentation for a specified target.",
"type" : "custom",
"verb" : "preview-documentation"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"Swift-DocC Preview"
],
"sources" : [
"SwiftDocCPreview.swift",
"Symbolic Links/SharedPackagePluginExtensions/ArgumentExtractor+extractSpecifiedTargets.swift",
"Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift",
"Symbolic Links/SharedPackagePluginExtensions/PackageManager+getSymbolGraphsForDocC.swift",
"Symbolic Links/SharedPackagePluginExtensions/PluginContext+doccExecutableURL.swift",
"Symbolic Links/SharedPackagePluginExtensions/SnippetExtractor+generateSnippetsForTarget.swift",
"Symbolic Links/SharedPackagePluginExtensions/SourceModuleTarget+doccCatalogPath.swift",
"Symbolic Links/SharedPackagePluginExtensions/Target+defaultSymbolGraphOptions.swift",
"Symbolic Links/SharedPackagePluginExtensions/Target+doccArchiveOutputPath.swift",
"Symbolic Links/SwiftDocCPluginUtilities/Arguments+outputPath.swift",
"Symbolic Links/SwiftDocCPluginUtilities/Arguments.swift",
"Symbolic Links/SwiftDocCPluginUtilities/CommandLineOptions/CommandLineOption.swift",
"Symbolic Links/SwiftDocCPluginUtilities/CommandLineOptions/RequiredCommandLineOption.swift",
"Symbolic Links/SwiftDocCPluginUtilities/DispatchTimeInterval+descriptionInSeconds.swift",
"Symbolic Links/SwiftDocCPluginUtilities/DocumentationTargetKind.swift",
"Symbolic Links/SwiftDocCPluginUtilities/FoundationExtensions/String+singleQuoted.swift",
"Symbolic Links/SwiftDocCPluginUtilities/HelpInformation.swift",
"Symbolic Links/SwiftDocCPluginUtilities/ParsedArguments.swift",
"Symbolic Links/SwiftDocCPluginUtilities/PluginAction.swift",
"Symbolic Links/SwiftDocCPluginUtilities/PluginFlags/ArgumentsTransforming.swift",
"Symbolic Links/SwiftDocCPluginUtilities/PluginFlags/DisableIndexFlag.swift",
"Symbolic Links/SwiftDocCPluginUtilities/PluginFlags/PluginFlag.swift",
"Symbolic Links/SwiftDocCPluginUtilities/Snippets/SnippetExtractor.swift"
],
"target_dependencies" : [
"snippet-extract"
],
"type" : "plugin"
},
{
"c99name" : "Swift_DocC",
"module_type" : "PluginTarget",
"name" : "Swift-DocC",
"path" : "Plugins/Swift-DocC Convert",
"plugin_capability" : {
"intent" : {
"type" : "documentationGeneration"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"Swift-DocC"
],
"sources" : [
"SwiftDocCConvert.swift",
"Symbolic Links/SharedPackagePluginExtensions/ArgumentExtractor+extractSpecifiedTargets.swift",
"Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift",
"Symbolic Links/SharedPackagePluginExtensions/PackageManager+getSymbolGraphsForDocC.swift",
"Symbolic Links/SharedPackagePluginExtensions/PluginContext+doccExecutableURL.swift",
"Symbolic Links/SharedPackagePluginExtensions/SnippetExtractor+generateSnippetsForTarget.swift",
"Symbolic Links/SharedPackagePluginExtensions/SourceModuleTarget+doccCatalogPath.swift",
"Symbolic Links/SharedPackagePluginExtensions/Target+defaultSymbolGraphOptions.swift",
"Symbolic Links/SharedPackagePluginExtensions/Target+doccArchiveOutputPath.swift",
"Symbolic Links/SwiftDocCPluginUtilities/Arguments+outputPath.swift",
"Symbolic Links/SwiftDocCPluginUtilities/Arguments.swift",
"Symbolic Links/SwiftDocCPluginUtilities/CommandLineOptions/CommandLineOption.swift",
"Symbolic Links/SwiftDocCPluginUtilities/CommandLineOptions/RequiredCommandLineOption.swift",
"Symbolic Links/SwiftDocCPluginUtilities/DispatchTimeInterval+descriptionInSeconds.swift",
"Symbolic Links/SwiftDocCPluginUtilities/DocumentationTargetKind.swift",
"Symbolic Links/SwiftDocCPluginUtilities/FoundationExtensions/String+singleQuoted.swift",
"Symbolic Links/SwiftDocCPluginUtilities/HelpInformation.swift",
"Symbolic Links/SwiftDocCPluginUtilities/ParsedArguments.swift",
"Symbolic Links/SwiftDocCPluginUtilities/PluginAction.swift",
"Symbolic Links/SwiftDocCPluginUtilities/PluginFlags/ArgumentsTransforming.swift",
"Symbolic Links/SwiftDocCPluginUtilities/PluginFlags/DisableIndexFlag.swift",
"Symbolic Links/SwiftDocCPluginUtilities/PluginFlags/PluginFlag.swift",
"Symbolic Links/SwiftDocCPluginUtilities/Snippets/SnippetExtractor.swift"
],
"target_dependencies" : [
"snippet-extract"
],
"type" : "plugin"
},
{
"c99name" : "Snippets",
"module_type" : "SwiftTarget",
"name" : "Snippets",
"path" : "Sources/Snippets",
"product_memberships" : [
"Swift-DocC",
"Swift-DocC Preview",
"snippet-extract"
],
"sources" : [
"Model/Snippet.swift",
"Parsing/SnippetParser.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.42s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at main (ddacb65)
/host/spi-builder-workspace/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
29 | func addTargetDependencies(_ target: Target) {
30 | for dependency in target.dependencies {
31 | switch dependency {
| |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
32 | case .product(let product):
33 | addTargets(product.targets)
[1/1] Compiling plugin Swift-DocC Preview
/host/spi-builder-workspace/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
29 | func addTargetDependencies(_ target: Target) {
30 | for dependency in target.dependencies {
31 | switch dependency {
| |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
32 | case .product(let product):
33 | addTargets(product.targets)
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/21] Write sources
[10/21] Write swift-version-24593BA9C3E375BF.txt
[12/94] Emitting module SwiftDocCPlugin
[13/143] Compiling SwiftDocCPlugin EmptyFile.swift
[14/143] Compiling SymbolKit LineList.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/ParsedArguments.swift:172:24: warning: static property 'argumentsTransformers' is not concurrency-safe because non-'Sendable' type '[any ArgumentsTransforming]' may have shared mutable state; this is an error in the Swift 6 language mode
170 | ]
171 |
172 | private static let argumentsTransformers: [ArgumentsTransforming] = [
| |- warning: static property 'argumentsTransformers' is not concurrency-safe because non-'Sendable' type '[any ArgumentsTransforming]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'argumentsTransformers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | PluginFlag.disableIndex
174 | ]
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/ArgumentsTransforming.swift:10:10: note: protocol 'ArgumentsTransforming' does not conform to the 'Sendable' protocol
8 |
9 | /// Transforms a set of arguments.
10 | protocol ArgumentsTransforming {
| `- note: protocol 'ArgumentsTransforming' does not conform to the 'Sendable' protocol
11 | /// Apply the transformation to the given arguments.
12 | func transform(_ arguments: Arguments) -> Arguments
[15/143] Compiling SymbolKit Position.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/ParsedArguments.swift:172:24: warning: static property 'argumentsTransformers' is not concurrency-safe because non-'Sendable' type '[any ArgumentsTransforming]' may have shared mutable state; this is an error in the Swift 6 language mode
170 | ]
171 |
172 | private static let argumentsTransformers: [ArgumentsTransforming] = [
| |- warning: static property 'argumentsTransformers' is not concurrency-safe because non-'Sendable' type '[any ArgumentsTransforming]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'argumentsTransformers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | PluginFlag.disableIndex
174 | ]
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/ArgumentsTransforming.swift:10:10: note: protocol 'ArgumentsTransforming' does not conform to the 'Sendable' protocol
8 |
9 | /// Transforms a set of arguments.
10 | protocol ArgumentsTransforming {
| `- note: protocol 'ArgumentsTransforming' does not conform to the 'Sendable' protocol
11 | /// Apply the transformation to the given arguments.
12 | func transform(_ arguments: Arguments) -> Arguments
[16/143] Compiling SymbolKit GenericConstraints.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/DisableIndexFlag.swift:14:16: warning: static property 'disableIndex' is not concurrency-safe because non-'Sendable' type 'PluginFlag' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// Removes the `--index` flag from a given set of arguments if the `--disable-index` flag
13 | /// is found.
14 | static let disableIndex = PluginFlag(
| |- warning: static property 'disableIndex' is not concurrency-safe because non-'Sendable' type 'PluginFlag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disableIndex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | parsedValues: [
16 | "--disable-indexing",
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/PluginFlag.swift:12:8: note: consider making struct 'PluginFlag' conform to the 'Sendable' protocol
10 | ///
11 | /// Plugin flags are distinct from options that are for the docc command-line tool itself.
12 | struct PluginFlag: ArgumentsTransforming {
| `- note: consider making struct 'PluginFlag' conform to the 'Sendable' protocol
13 | /// The string values that will be parsed when detecting this flag.
14 | ///
[17/143] Compiling SymbolKit Swift.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/DisableIndexFlag.swift:14:16: warning: static property 'disableIndex' is not concurrency-safe because non-'Sendable' type 'PluginFlag' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// Removes the `--index` flag from a given set of arguments if the `--disable-index` flag
13 | /// is found.
14 | static let disableIndex = PluginFlag(
| |- warning: static property 'disableIndex' is not concurrency-safe because non-'Sendable' type 'PluginFlag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disableIndex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | parsedValues: [
16 | "--disable-indexing",
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/PluginFlag.swift:12:8: note: consider making struct 'PluginFlag' conform to the 'Sendable' protocol
10 | ///
11 | /// Plugin flags are distinct from options that are for the docc command-line tool itself.
12 | struct PluginFlag: ArgumentsTransforming {
| `- note: consider making struct 'PluginFlag' conform to the 'Sendable' protocol
13 | /// The string values that will be parsed when detecting this flag.
14 | ///
[18/143] Compiling SwiftDocCPluginUtilities PluginFlag.swift
[20/145] Emitting module SymbolKit
[21/151] Compiling SwiftDocCPluginUtilities SnippetExtractor.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/Snippets/SnippetExtractor.swift:57:23: error: cannot find type 'Process' in scope
55 | ///
56 | /// Provided for testing.
57 | var _runProcess: (Process) throws -> () = { process in
| `- error: cannot find type 'Process' in scope
58 | try process.run()
59 | process.waitUntilExit()
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/Snippets/SnippetExtractor.swift:110:23: error: cannot find 'Process' in scope
108 | )
109 |
110 | let process = Process()
| `- error: cannot find 'Process' in scope
111 | process.executableURL = snippetTool
112 | process.arguments = [
[22/151] Compiling SymbolKit SourceRange.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:17:16: warning: static property '_doccHelp' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | ///
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
| |- warning: static property '_doccHelp' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_doccHelp' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_doccHelp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | try Process.runAndCaptureOutput(
19 | doccExecutableURL,
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:18:13: error: cannot find 'Process' in scope
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
18 | try Process.runAndCaptureOutput(
| `- error: cannot find 'Process' in scope
19 | doccExecutableURL,
20 | arguments: [
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:72:24: warning: static property 'convertPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | private static var convertPluginHelpOverview = """
| |- warning: static property 'convertPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'convertPluginHelpOverview' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'convertPluginHelpOverview' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | OVERVIEW: Creates a Swift-DocC documentation archive from a Swift Package.
74 |
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:89:24: warning: static property 'previewPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 | """
88 |
89 | private static var previewPluginHelpOverview = """
| |- warning: static property 'previewPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previewPluginHelpOverview' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previewPluginHelpOverview' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | OVERVIEW: Creates and previews a Swift-DocC documentation archive from a Swift Package.
91 |
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:115:19: error: cannot find type 'Process' in scope
113 | }
114 |
115 | private extension Process {
| `- error: cannot find type 'Process' in scope
116 | /// Creates and runs a task with the given url and arguments, and returns the process output.
117 | ///
[23/151] Compiling SymbolKit SourceOrigin.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:17:16: warning: static property '_doccHelp' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | ///
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
| |- warning: static property '_doccHelp' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_doccHelp' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_doccHelp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | try Process.runAndCaptureOutput(
19 | doccExecutableURL,
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:18:13: error: cannot find 'Process' in scope
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
18 | try Process.runAndCaptureOutput(
| `- error: cannot find 'Process' in scope
19 | doccExecutableURL,
20 | arguments: [
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:72:24: warning: static property 'convertPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | private static var convertPluginHelpOverview = """
| |- warning: static property 'convertPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'convertPluginHelpOverview' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'convertPluginHelpOverview' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | OVERVIEW: Creates a Swift-DocC documentation archive from a Swift Package.
74 |
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:89:24: warning: static property 'previewPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 | """
88 |
89 | private static var previewPluginHelpOverview = """
| |- warning: static property 'previewPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previewPluginHelpOverview' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previewPluginHelpOverview' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | OVERVIEW: Creates and previews a Swift-DocC documentation archive from a Swift Package.
91 |
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:115:19: error: cannot find type 'Process' in scope
113 | }
114 |
115 | private extension Process {
| `- error: cannot find type 'Process' in scope
116 | /// Creates and runs a task with the given url and arguments, and returns the process output.
117 | ///
[24/151] Emitting module Snippets
[25/151] Compiling Snippets Snippet.swift
[26/151] Compiling Snippets SnippetParser.swift
[27/152] Compiling SymbolKit AvailabilityItem.swift
[28/152] Compiling SymbolKit Domain.swift
[29/152] Compiling SymbolKit DeclarationFragments+Simplify.swift
[30/152] Compiling SymbolKit DeclarationFragments.swift
[31/152] Compiling SymbolKit Fragment.swift
[32/152] Compiling SymbolKit FragmentKind.swift
[33/152] Compiling SymbolKit FunctionParameter.swift
[34/152] Compiling SymbolKit Mixin+Equals.swift
[35/152] Compiling SymbolKit Mixin+Hash.swift
[36/152] Compiling SymbolKit Mixin.swift
[37/152] Compiling SymbolKit AnyScalar.swift
[44/152] Compiling SymbolKit SemanticVersion.swift
[45/152] Compiling SymbolKit AccessControl.swift
[46/152] Compiling SymbolKit AlternateDeclarations.swift
[47/152] Compiling SymbolKit Availability.swift
[48/152] Compiling SymbolKit Metadata.swift
[49/152] Compiling SymbolKit Module.swift
[50/152] Compiling SymbolKit OperatingSystem.swift
[51/152] Compiling SymbolKit Platform.swift
[52/152] Compiling SymbolKit ReferenceLocation.swift
[53/152] Compiling SymbolKit Relationship.swift
[54/152] Compiling SymbolKit RelationshipKind.swift
[55/152] Emitting module SymbolKit
[57/158] Compiling SymbolKit FunctionSignature.swift
[58/158] Compiling SymbolKit HTTP.swift
[59/158] Compiling SymbolKit Identifier.swift
[60/158] Compiling SymbolKit KindIdentifier.swift
[61/158] Compiling SymbolKit Location.swift
[62/158] Compiling SymbolKit Mutability.swift
[63/158] Compiling SymbolKit Names.swift
[64/158] Compiling SymbolKit Generics.swift
[65/158] Compiling SymbolKit Namespace.swift
[66/158] Compiling SymbolKit Symbol.swift
[67/158] Compiling SymbolKit SymbolKind.swift
[68/158] Compiling SymbolKit ValueConstraints.swift
[69/158] Compiling SymbolKit SymbolGraph+Overloads.swift
[70/158] Compiling SymbolKit SymbolGraph.swift
[71/158] Compiling SymbolKit OverloadData.swift
[72/158] Compiling SymbolKit PlistDetails.swift
[73/158] Compiling SymbolKit SPI.swift
[74/158] Compiling SymbolKit Snippet.swift
[75/158] Compiling SymbolKit Extension.swift
[76/158] Compiling SymbolKit GenericConstraint.swift
[77/158] Compiling SymbolKit GenericParameter.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[80/158] Emitting module SwiftDocCPluginUtilities
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/DispatchTimeInterval+descriptionInSeconds.swift:14:11: error: cannot find type 'DispatchTimeInterval' in scope
12 | // Swift Package Manager here:
13 | // https://github.com/apple/swift-package-manager/blob/beac985/Sources/Basics/DispatchTimeInterval+Extensions.swift
14 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | /// A description of the current time interval suitable for presentation, in seconds.
16 | ///
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:17:16: warning: static property '_doccHelp' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | ///
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
| |- warning: static property '_doccHelp' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_doccHelp' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_doccHelp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | try Process.runAndCaptureOutput(
19 | doccExecutableURL,
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:18:13: error: cannot find 'Process' in scope
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
18 | try Process.runAndCaptureOutput(
| `- error: cannot find 'Process' in scope
19 | doccExecutableURL,
20 | arguments: [
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:72:24: warning: static property 'convertPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | }
71 |
72 | private static var convertPluginHelpOverview = """
| |- warning: static property 'convertPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'convertPluginHelpOverview' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'convertPluginHelpOverview' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | OVERVIEW: Creates a Swift-DocC documentation archive from a Swift Package.
74 |
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:89:24: warning: static property 'previewPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 | """
88 |
89 | private static var previewPluginHelpOverview = """
| |- warning: static property 'previewPluginHelpOverview' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'previewPluginHelpOverview' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'previewPluginHelpOverview' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | OVERVIEW: Creates and previews a Swift-DocC documentation archive from a Swift Package.
91 |
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:115:19: error: cannot find type 'Process' in scope
113 | }
114 |
115 | private extension Process {
| `- error: cannot find type 'Process' in scope
116 | /// Creates and runs a task with the given url and arguments, and returns the process output.
117 | ///
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/ParsedArguments.swift:172:24: warning: static property 'argumentsTransformers' is not concurrency-safe because non-'Sendable' type '[any ArgumentsTransforming]' may have shared mutable state; this is an error in the Swift 6 language mode
170 | ]
171 |
172 | private static let argumentsTransformers: [ArgumentsTransforming] = [
| |- warning: static property 'argumentsTransformers' is not concurrency-safe because non-'Sendable' type '[any ArgumentsTransforming]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'argumentsTransformers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | PluginFlag.disableIndex
174 | ]
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/ArgumentsTransforming.swift:10:10: note: protocol 'ArgumentsTransforming' does not conform to the 'Sendable' protocol
8 |
9 | /// Transforms a set of arguments.
10 | protocol ArgumentsTransforming {
| `- note: protocol 'ArgumentsTransforming' does not conform to the 'Sendable' protocol
11 | /// Apply the transformation to the given arguments.
12 | func transform(_ arguments: Arguments) -> Arguments
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/DisableIndexFlag.swift:14:16: warning: static property 'disableIndex' is not concurrency-safe because non-'Sendable' type 'PluginFlag' may have shared mutable state; this is an error in the Swift 6 language mode
12 | /// Removes the `--index` flag from a given set of arguments if the `--disable-index` flag
13 | /// is found.
14 | static let disableIndex = PluginFlag(
| |- warning: static property 'disableIndex' is not concurrency-safe because non-'Sendable' type 'PluginFlag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'disableIndex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | parsedValues: [
16 | "--disable-indexing",
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/PluginFlags/PluginFlag.swift:12:8: note: consider making struct 'PluginFlag' conform to the 'Sendable' protocol
10 | ///
11 | /// Plugin flags are distinct from options that are for the docc command-line tool itself.
12 | struct PluginFlag: ArgumentsTransforming {
| `- note: consider making struct 'PluginFlag' conform to the 'Sendable' protocol
13 | /// The string values that will be parsed when detecting this flag.
14 | ///
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/Snippets/SnippetExtractor.swift:57:23: error: cannot find type 'Process' in scope
55 | ///
56 | /// Provided for testing.
57 | var _runProcess: (Process) throws -> () = { process in
| `- error: cannot find type 'Process' in scope
58 | try process.run()
59 | process.waitUntilExit()
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/DispatchTimeInterval+descriptionInSeconds.swift:14:11: error: cannot find type 'DispatchTimeInterval' in scope
12 | // Swift Package Manager here:
13 | // https://github.com/apple/swift-package-manager/blob/beac985/Sources/Basics/DispatchTimeInterval+Extensions.swift
14 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | /// A description of the current time interval suitable for presentation, in seconds.
16 | ///
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/DispatchTimeInterval+descriptionInSeconds.swift:14:11: error: cannot find type 'DispatchTimeInterval' in scope
12 | // Swift Package Manager here:
13 | // https://github.com/apple/swift-package-manager/blob/beac985/Sources/Basics/DispatchTimeInterval+Extensions.swift
14 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | /// A description of the current time interval suitable for presentation, in seconds.
16 | ///
[84/158] Wrapping AST for Snippets for debugging
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
/host/spi-builder-workspace/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
29 | func addTargetDependencies(_ target: Target) {
30 | for dependency in target.dependencies {
31 | switch dependency {
| |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
32 | case .product(let product):
33 | addTargets(product.targets)
[1/1] Compiling plugin Swift-DocC Preview
/host/spi-builder-workspace/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
29 | func addTargetDependencies(_ target: Target) {
30 | for dependency in target.dependencies {
31 | switch dependency {
| |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
32 | case .product(let product):
33 | addTargets(product.targets)
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/13] Write swift-version-24593BA9C3E375BF.txt
[4/135] Compiling SwiftDocCPlugin EmptyFile.swift
[5/135] Emitting module SwiftDocCPlugin
[6/136] Compiling SymbolKit LineList.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/DispatchTimeInterval+descriptionInSeconds.swift:14:11: error: cannot find type 'DispatchTimeInterval' in scope
12 | // Swift Package Manager here:
13 | // https://github.com/apple/swift-package-manager/blob/beac985/Sources/Basics/DispatchTimeInterval+Extensions.swift
14 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | /// A description of the current time interval suitable for presentation, in seconds.
16 | ///
[7/136] Compiling SymbolKit Position.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/DispatchTimeInterval+descriptionInSeconds.swift:14:11: error: cannot find type 'DispatchTimeInterval' in scope
12 | // Swift Package Manager here:
13 | // https://github.com/apple/swift-package-manager/blob/beac985/Sources/Basics/DispatchTimeInterval+Extensions.swift
14 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | /// A description of the current time interval suitable for presentation, in seconds.
16 | ///
[8/137] Compiling SwiftDocCPluginUtilities PluginFlag.swift
[9/137] Compiling SymbolKit Domain.swift
[10/137] Compiling SymbolKit DeclarationFragments+Simplify.swift
[11/137] Compiling SymbolKit SourceRange.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:18:13: error: cannot find 'Process' in scope
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
18 | try Process.runAndCaptureOutput(
| `- error: cannot find 'Process' in scope
19 | doccExecutableURL,
20 | arguments: [
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:115:19: error: cannot find type 'Process' in scope
113 | }
114 |
115 | private extension Process {
| `- error: cannot find type 'Process' in scope
116 | /// Creates and runs a task with the given url and arguments, and returns the process output.
117 | ///
[12/137] Compiling SymbolKit AvailabilityItem.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:18:13: error: cannot find 'Process' in scope
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
18 | try Process.runAndCaptureOutput(
| `- error: cannot find 'Process' in scope
19 | doccExecutableURL,
20 | arguments: [
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:115:19: error: cannot find type 'Process' in scope
113 | }
114 |
115 | private extension Process {
| `- error: cannot find type 'Process' in scope
116 | /// Creates and runs a task with the given url and arguments, and returns the process output.
117 | ///
[13/137] Compiling SymbolKit DeclarationFragments.swift
[14/137] Compiling SymbolKit Fragment.swift
[15/137] Compiling SymbolKit Mixin+Equals.swift
[16/137] Compiling SymbolKit Mixin+Hash.swift
[17/137] Compiling SymbolKit Mixin.swift
[18/137] Compiling SymbolKit AnyScalar.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/137] Emitting module SwiftDocCPluginUtilities
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/DispatchTimeInterval+descriptionInSeconds.swift:14:11: error: cannot find type 'DispatchTimeInterval' in scope
12 | // Swift Package Manager here:
13 | // https://github.com/apple/swift-package-manager/blob/beac985/Sources/Basics/DispatchTimeInterval+Extensions.swift
14 | extension DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | /// A description of the current time interval suitable for presentation, in seconds.
16 | ///
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:18:13: error: cannot find 'Process' in scope
16 | /// This is defined as a static variable to allow for mocking in tests.
17 | static var _doccHelp: (PluginAction, URL) throws -> (String?) = { pluginAction, doccExecutableURL in
18 | try Process.runAndCaptureOutput(
| `- error: cannot find 'Process' in scope
19 | doccExecutableURL,
20 | arguments: [
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/HelpInformation.swift:115:19: error: cannot find type 'Process' in scope
113 | }
114 |
115 | private extension Process {
| `- error: cannot find type 'Process' in scope
116 | /// Creates and runs a task with the given url and arguments, and returns the process output.
117 | ///
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/Snippets/SnippetExtractor.swift:57:23: error: cannot find type 'Process' in scope
55 | ///
56 | /// Provided for testing.
57 | var _runProcess: (Process) throws -> () = { process in
| `- error: cannot find type 'Process' in scope
58 | try process.run()
59 | process.waitUntilExit()
[21/137] Emitting module Snippets
[22/137] Compiling SwiftDocCPluginUtilities SnippetExtractor.swift
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/Snippets/SnippetExtractor.swift:57:23: error: cannot find type 'Process' in scope
55 | ///
56 | /// Provided for testing.
57 | var _runProcess: (Process) throws -> () = { process in
| `- error: cannot find type 'Process' in scope
58 | try process.run()
59 | process.waitUntilExit()
/host/spi-builder-workspace/Sources/SwiftDocCPluginUtilities/Snippets/SnippetExtractor.swift:110:23: error: cannot find 'Process' in scope
108 | )
109 |
110 | let process = Process()
| `- error: cannot find 'Process' in scope
111 | process.executableURL = snippetTool
112 | process.arguments = [
[23/137] Compiling Snippets Snippet.swift
BUILD FAILURE 6.1 wasm