Build Information
Successful build of IndexStore, reference main (7edb9a), with Swift 6.1 for Linux on 2 Apr 2026 07:22:43 UTC.
Swift 6 data race errors: 5
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MobileNativeFoundation/swift-index-store.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/MobileNativeFoundation/swift-index-store
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7edb9a6 Expose symbol language in the Swift API (#83)
Cloned https://github.com/MobileNativeFoundation/swift-index-store.git
Revision (git rev-parse @):
7edb9a64e084ed64f83b84fb9269d3d1a20c0687
SUCCESS checkout https://github.com/MobileNativeFoundation/swift-index-store.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/MobileNativeFoundation/swift-index-store.git
https://github.com/MobileNativeFoundation/swift-index-store.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"cxx_language_standard" : "c++17",
"dependencies" : [
],
"manifest_display_name" : "IndexStore",
"name" : "IndexStore",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "IndexStore",
"targets" : [
"IndexStore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CSwiftDemangle",
"targets" : [
"CSwiftDemangle"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftDemangle",
"targets" : [
"SwiftDemangle"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "indexutil-export",
"targets" : [
"indexutil-export"
],
"type" : {
"executable" : null
}
},
{
"name" : "unnecessary-testable",
"targets" : [
"unnecessary-testable"
],
"type" : {
"executable" : null
}
},
{
"name" : "unused-imports",
"targets" : [
"unused-imports"
],
"type" : {
"executable" : null
}
},
{
"name" : "indexutil-annotate",
"targets" : [
"indexutil-annotate"
],
"type" : {
"executable" : null
}
},
{
"name" : "tycat",
"targets" : [
"tycat"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "unused_imports",
"module_type" : "SwiftTarget",
"name" : "unused-imports",
"path" : "Sources/unused-imports",
"product_memberships" : [
"unused-imports"
],
"sources" : [
"Reporters/JSONReporter.swift",
"Reporters/SedCommandReporter.swift",
"Reporters/UnusedImportReporter.swift",
"SourceFileWithUnusedImports.swift",
"UnusedImportStatement.swift",
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "unnecessary_testable",
"module_type" : "SwiftTarget",
"name" : "unnecessary-testable",
"path" : "Sources/unnecessary-testable",
"product_memberships" : [
"unnecessary-testable"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "tycat",
"module_type" : "SwiftTarget",
"name" : "tycat",
"path" : "Sources/tycat",
"product_memberships" : [
"tycat"
],
"sources" : [
"TypeGraph.swift",
"Xcode.swift",
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "indexutil_export",
"module_type" : "SwiftTarget",
"name" : "indexutil-export",
"path" : "Sources/indexutil-export",
"product_memberships" : [
"indexutil-export"
],
"sources" : [
"TSVWriter.swift",
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "indexutil_annotate",
"module_type" : "SwiftTarget",
"name" : "indexutil-annotate",
"path" : "Sources/indexutil-annotate",
"product_memberships" : [
"indexutil-annotate"
],
"sources" : [
"Annotation.swift",
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "SwiftDemangleTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDemangleTests",
"path" : "Tests/SwiftDemangleTests",
"sources" : [
"SwiftDemangleTests.swift"
],
"target_dependencies" : [
"SwiftDemangle"
],
"type" : "test"
},
{
"c99name" : "SwiftDemangle",
"module_type" : "SwiftTarget",
"name" : "SwiftDemangle",
"path" : "Sources/SwiftDemangle",
"product_memberships" : [
"SwiftDemangle"
],
"sources" : [
"DemangledNode.swift",
"Demangler.swift"
],
"target_dependencies" : [
"CSwiftDemangle"
],
"type" : "library"
},
{
"c99name" : "IndexStoreTests",
"module_type" : "SwiftTarget",
"name" : "IndexStoreTests",
"path" : "Tests/IndexStoreTests",
"sources" : [
"DetermineIndexStorePath.swift",
"IndexStoreTests.swift",
"dummy.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "test"
},
{
"c99name" : "IndexStore",
"module_type" : "SwiftTarget",
"name" : "IndexStore",
"path" : "Sources/IndexStore",
"product_memberships" : [
"IndexStore",
"indexutil-export",
"unnecessary-testable",
"unused-imports",
"indexutil-annotate",
"tycat"
],
"sources" : [
"Constants.swift",
"IndexStore.swift",
"IndexStoreError.swift",
"StandardStream.swift",
"String+IndexStore.swift"
],
"target_dependencies" : [
"CIndexStore"
],
"type" : "library"
},
{
"c99name" : "CSwiftDemangle",
"module_type" : "ClangTarget",
"name" : "CSwiftDemangle",
"path" : "Sources/CSwiftDemangle",
"product_memberships" : [
"CSwiftDemangle",
"SwiftDemangle"
],
"sources" : [
"CSwiftDemangle.cpp"
],
"type" : "library"
},
{
"c99name" : "CIndexStore",
"module_type" : "ClangTarget",
"name" : "CIndexStore",
"path" : "Sources/CIndexStore",
"product_memberships" : [
"IndexStore",
"indexutil-export",
"unnecessary-testable",
"unused-imports",
"indexutil-annotate",
"tycat"
],
"sources" : [
"dummy.c"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:108e10880bce35e9496fba26782956e40a8e91a2a227f9b90af7e4cd93d2c183
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Building for debugging...
[0/26] Write sources
[7/26] Compiling CIndexStore dummy.c
[8/26] Write swift-version-24593BA9C3E375BF.txt
/host/spi-builder-workspace/Sources/CSwiftDemangle/CSwiftDemangle.cpp:29:22: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
29 | char true_symbol[strlen(symbol) + 1];
| ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CSwiftDemangle/CSwiftDemangle.cpp:29:29: note: function parameter 'symbol' with unknown value cannot be used in a constant expression
29 | char true_symbol[strlen(symbol) + 1];
| ^
/host/spi-builder-workspace/Sources/CSwiftDemangle/CSwiftDemangle.cpp:26:75: note: declared here
26 | demangle_node_t demangle_symbolAsNode(demangle_context_t ctx, const char *symbol) {
| ^
1 warning generated.
[9/32] Compiling CSwiftDemangle CSwiftDemangle.cpp
[11/35] Compiling SwiftDemangle Demangler.swift
[12/35] Emitting module SwiftDemangle
[13/35] Compiling SwiftDemangle DemangledNode.swift
[14/36] Compiling IndexStore String+IndexStore.swift
[16/36] Emitting module IndexStore
/host/spi-builder-workspace/Sources/IndexStore/IndexStoreError.swift:4:17: warning: stored property 'error' of 'Sendable'-conforming class 'IndexStoreError' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public final class IndexStoreError: Error, CustomStringConvertible {
4 | private var error: indexstore_error_t
| `- warning: stored property 'error' of 'Sendable'-conforming class 'IndexStoreError' is mutable; this is an error in the Swift 6 language mode
5 |
6 | init(_ error: indexstore_error_t) {
/host/spi-builder-workspace/Sources/IndexStore/StandardStream.swift:20:5: warning: var 'stderr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | var stderr = StandardStream(Foundation.stderr)
| |- warning: var 'stderr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderr' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stderr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
/host/spi-builder-workspace/Sources/IndexStore/StandardStream.swift:20:40: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | var stderr = StandardStream(Foundation.stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
21 |
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[17/36] Compiling IndexStore Constants.swift
[18/36] Compiling IndexStore StandardStream.swift
/host/spi-builder-workspace/Sources/IndexStore/StandardStream.swift:20:5: warning: var 'stderr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | var stderr = StandardStream(Foundation.stderr)
| |- warning: var 'stderr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderr' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'stderr' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
/host/spi-builder-workspace/Sources/IndexStore/StandardStream.swift:20:40: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | var stderr = StandardStream(Foundation.stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
21 |
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[19/36] Compiling IndexStore IndexStoreError.swift
/host/spi-builder-workspace/Sources/IndexStore/IndexStoreError.swift:4:17: warning: stored property 'error' of 'Sendable'-conforming class 'IndexStoreError' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public final class IndexStoreError: Error, CustomStringConvertible {
4 | private var error: indexstore_error_t
| `- warning: stored property 'error' of 'Sendable'-conforming class 'IndexStoreError' is mutable; this is an error in the Swift 6 language mode
5 |
6 | init(_ error: indexstore_error_t) {
[20/36] Compiling IndexStore IndexStore.swift
[21/37] Wrapping AST for IndexStore for debugging
[23/56] Compiling unused_imports JSONReporter.swift
[24/56] Compiling unused_imports SedCommandReporter.swift
[25/56] Emitting module unnecessary_testable
[26/56] Compiling unnecessary_testable main.swift
/host/spi-builder-workspace/Sources/unnecessary-testable/main.swift:174:29: warning: result of call to 'changeCurrentDirectoryPath' is unused
172 | func main(indexStorePath: String) {
173 | if let directory = ProcessInfo.processInfo.environment["BUILD_WORKSPACE_DIRECTORY"] {
174 | FileManager.default.changeCurrentDirectoryPath(directory)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
175 | }
176 |
[28/57] Compiling indexutil_annotate Annotation.swift
[29/57] Emitting module tycat
/host/spi-builder-workspace/Sources/tycat/main.swift:42:82: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | guard CommandLine.arguments.count == 3 else {
42 | fputs("usage: \(CommandLine.arguments[0]) [supertypes | subtypes] <type>\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
43 | exit(EXIT_FAILURE)
44 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/tycat/main.swift:47:65: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | guard let storePath = try XcodeIndexStorePath() else {
47 | fputs("error: could not determine Xcode indexstore path\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
48 | exit(EXIT_FAILURE)
49 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[30/57] Compiling indexutil_export TSVWriter.swift
/host/spi-builder-workspace/Sources/indexutil-export/TSVWriter.swift:21:21: warning: result of call to 'write(_:maxLength:)' is unused
19 | let strings = fields.map { $0.description }
20 | let tsv = strings.joined(separator: "\t")
21 | self.output.write(tsv, maxLength: tsv.utf8.count)
| `- warning: result of call to 'write(_:maxLength:)' is unused
22 | self.output.write("\n", maxLength: 1)
23 | }
/host/spi-builder-workspace/Sources/indexutil-export/TSVWriter.swift:22:21: warning: result of call to 'write(_:maxLength:)' is unused
20 | let tsv = strings.joined(separator: "\t")
21 | self.output.write(tsv, maxLength: tsv.utf8.count)
22 | self.output.write("\n", maxLength: 1)
| `- warning: result of call to 'write(_:maxLength:)' is unused
23 | }
24 | }
[31/57] Emitting module indexutil_export
[32/57] Compiling indexutil_export main.swift
/host/spi-builder-workspace/Sources/indexutil-export/main.swift:6:34: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
4 | struct StandardErrorStream: TextOutputStream {
5 | mutating func write(_ string: String) {
6 | fputs(string, Foundation.stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
7 | }
8 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/indexutil-export/main.swift:13:84: error: main actor-isolated var 'stderr' can not be used 'inout' from a nonisolated context
8 | }
9 |
10 | var stderr = StandardErrorStream()
| `- note: mutation of this var is only permitted within the actor
11 |
12 | func usage() -> Never {
| `- note: add '@MainActor' to make global function 'usage()' part of global actor 'MainActor'
13 | print("Usage: indexutil export <format> <index-store-path> <output-dir>", to: &stderr)
| `- error: main actor-isolated var 'stderr' can not be used 'inout' from a nonisolated context
14 | exit(EXIT_FAILURE)
15 | }
[33/57] Emitting module indexutil_annotate
/host/spi-builder-workspace/Sources/indexutil-annotate/main.swift:76:77: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
74 |
75 | guard CommandLine.arguments.count == 3 else {
76 | fputs("usage: \(CommandLine.arguments[0]) <indexstore> <sourcepath>\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
77 | exit(EXIT_FAILURE)
78 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/indexutil-annotate/main.swift:89:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
87 | try main(storePath, sourcePath)
88 | } catch {
89 | fputs("error: \(error)\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
90 | exit(EXIT_FAILURE)
91 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[34/57] Compiling unused_imports main.swift
/host/spi-builder-workspace/Sources/unused-imports/main.swift:105:5: error: main actor-isolated var 'cachedLines' can not be mutated from a nonisolated context
10 | private let identifierRegex = try Regex("([a-zA-Z_][a-zA-Z0-9_]*)")
11 | private let ignoreRegex = try Regex(#"// *@ignore-import$"#)
12 | private var cachedLines = [String: [String.SubSequence]]()
| `- note: mutation of this var is only permitted within the actor
13 | private let defaultReporter = SedCommandReporter()
14 |
:
100 | }
101 |
102 | private func getImports(path: String, recordReader: RecordReader) -> (Set<String>, [String: Int]) {
| `- note: add '@MainActor' to make global function 'getImports(path:recordReader:)' part of global actor 'MainActor'
103 | var importsToLineNumbers = [String: Int]()
104 | let lines = try! String(contentsOfFile: path).split(separator: "\n", omittingEmptySubsequences: false)
105 | cachedLines[path] = lines
| `- error: main actor-isolated var 'cachedLines' can not be mutated from a nonisolated context
106 |
107 | var imports = Set<String>()
/host/spi-builder-workspace/Sources/unused-imports/main.swift:113:37: warning: main actor-isolated let 'ignoreRegex' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
9 | private typealias References = (usrs: Set<String>, typealiases: Set<String>)
10 | private let identifierRegex = try Regex("([a-zA-Z_][a-zA-Z0-9_]*)")
11 | private let ignoreRegex = try Regex(#"// *@ignore-import$"#)
| `- note: let declared here
12 | private var cachedLines = [String: [String.SubSequence]]()
13 | private let defaultReporter = SedCommandReporter()
:
111 | // FIXME: This won't work if we are also adding missing imports, return it separately
112 | if (line.hasPrefix("import ") || line.contains(" import ")) &&
113 | line.firstMatch(of: ignoreRegex) == nil
| `- warning: main actor-isolated let 'ignoreRegex' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
114 | {
115 | imports.insert(occurrence.symbol.name)
/host/spi-builder-workspace/Sources/unused-imports/main.swift:130:25: error: main actor-isolated var 'cachedLines' can not be referenced from a nonisolated context
10 | private let identifierRegex = try Regex("([a-zA-Z_][a-zA-Z0-9_]*)")
11 | private let ignoreRegex = try Regex(#"// *@ignore-import$"#)
12 | private var cachedLines = [String: [String.SubSequence]]()
| `- note: var declared here
13 | private let defaultReporter = SedCommandReporter()
14 |
:
128 | if occurrence.symbol.subkind == .swiftExtensionOfStruct {
129 | usrs.insert(occurrence.symbol.usr)
130 | let lines = cachedLines[unitReader.mainFile]!
| `- error: main actor-isolated var 'cachedLines' can not be referenced from a nonisolated context
131 | let line = lines[occurrence.location.line - 1]
132 | let startIndex = line.index(line.startIndex, offsetBy: occurrence.location.column - 1)
/host/spi-builder-workspace/Sources/unused-imports/main.swift:134:66: warning: main actor-isolated let 'identifierRegex' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 |
9 | private typealias References = (usrs: Set<String>, typealiases: Set<String>)
10 | private let identifierRegex = try Regex("([a-zA-Z_][a-zA-Z0-9_]*)")
| `- note: let declared here
11 | private let ignoreRegex = try Regex(#"// *@ignore-import$"#)
12 | private var cachedLines = [String: [String.SubSequence]]()
:
132 | let startIndex = line.index(line.startIndex, offsetBy: occurrence.location.column - 1)
133 | // FIXME: `extension [Int]` doesn't match
134 | guard let match = line[startIndex...].firstMatch(of: identifierRegex) else {
| `- warning: main actor-isolated let 'identifierRegex' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | return
136 | }
/host/spi-builder-workspace/Sources/unused-imports/main.swift:192:29: warning: result of call to 'changeCurrentDirectoryPath' is unused
190 | {
191 | if let directory = ProcessInfo.processInfo.environment["BUILD_WORKSPACE_DIRECTORY"] {
192 | FileManager.default.changeCurrentDirectoryPath(directory)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
193 | }
194 |
[35/57] Emitting module unused_imports
/host/spi-builder-workspace/Sources/unused-imports/main.swift:192:29: warning: result of call to 'changeCurrentDirectoryPath' is unused
190 | {
191 | if let directory = ProcessInfo.processInfo.environment["BUILD_WORKSPACE_DIRECTORY"] {
192 | FileManager.default.changeCurrentDirectoryPath(directory)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
193 | }
194 |
[36/57] Compiling tycat TypeGraph.swift
[37/57] Compiling indexutil_annotate main.swift
/host/spi-builder-workspace/Sources/indexutil-annotate/main.swift:76:77: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
74 |
75 | guard CommandLine.arguments.count == 3 else {
76 | fputs("usage: \(CommandLine.arguments[0]) <indexstore> <sourcepath>\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
77 | exit(EXIT_FAILURE)
78 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/indexutil-annotate/main.swift:89:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
87 | try main(storePath, sourcePath)
88 | } catch {
89 | fputs("error: \(error)\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
90 | exit(EXIT_FAILURE)
91 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/indexutil-annotate/main.swift:18:80: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | if !foundUnits {
18 | fputs("error: no records found, your index store might be invalid?\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
19 | exit(EXIT_FAILURE)
20 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/indexutil-annotate/main.swift:23:60: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | if recordName == nil {
23 | fputs("error: no record file for \(sourcePath)\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
24 | exit(EXIT_FAILURE)
25 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[37/58] Wrapping AST for unnecessary-testable for debugging
[38/58] Write Objects.LinkFileList
[39/58] Linking unnecessary-testable
[40/58] Compiling unused_imports SourceFileWithUnusedImports.swift
[41/58] Compiling unused_imports UnusedImportStatement.swift
[42/58] Compiling unused_imports UnusedImportReporter.swift
[43/58] Compiling tycat Xcode.swift
/host/spi-builder-workspace/Sources/tycat/Xcode.swift:5:13: warning: 'launchPath' is deprecated: renamed to 'executableURL'
3 | func XcodeIndexStorePath() throws -> String? {
4 | let process = Process()
5 | process.launchPath = "/usr/bin/xcodebuild"
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
| `- note: use 'executableURL' instead
6 | process.arguments = ["-showBuildSettings"]
7 | let pipe = Pipe()
/host/spi-builder-workspace/Sources/tycat/Xcode.swift:9:13: warning: 'launch()' is deprecated: renamed to 'run'
7 | let pipe = Pipe()
8 | process.standardOutput = pipe
9 | process.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run'
| `- note: use 'run' instead
10 | let data = pipe.fileHandleForReading.readDataToEndOfFile()
11 | let output = String(decoding: data, as: UTF8.self)
/host/spi-builder-workspace/Sources/tycat/main.swift:42:82: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | guard CommandLine.arguments.count == 3 else {
42 | fputs("usage: \(CommandLine.arguments[0]) [supertypes | subtypes] <type>\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
43 | exit(EXIT_FAILURE)
44 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:108e10880bce35e9496fba26782956e40a8e91a2a227f9b90af7e4cd93d2c183
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/17] Write swift-version-24593BA9C3E375BF.txt
[2/26] Compiling IndexStore IndexStoreError.swift
[3/26] Compiling SwiftDemangle Demangler.swift
[4/26] Emitting module SwiftDemangle
[5/26] Compiling SwiftDemangle DemangledNode.swift
[7/27] Compiling IndexStore StandardStream.swift
[8/27] Compiling IndexStore String+IndexStore.swift
[9/27] Emitting module IndexStore
[10/27] Compiling IndexStore IndexStore.swift
[11/27] Compiling IndexStore Constants.swift
[13/46] Emitting module unnecessary_testable
[14/46] Compiling tycat TypeGraph.swift
[15/46] Compiling unused_imports SedCommandReporter.swift
[16/46] Compiling unused_imports UnusedImportReporter.swift
[17/46] Emitting module unused_imports
/host/spi-builder-workspace/Sources/unused-imports/main.swift:192:29: warning: result of call to 'changeCurrentDirectoryPath' is unused
190 | {
191 | if let directory = ProcessInfo.processInfo.environment["BUILD_WORKSPACE_DIRECTORY"] {
192 | FileManager.default.changeCurrentDirectoryPath(directory)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
193 | }
194 |
[18/46] Compiling unused_imports JSONReporter.swift
[19/46] Compiling unused_imports SourceFileWithUnusedImports.swift
[20/46] Compiling unnecessary_testable main.swift
/host/spi-builder-workspace/Sources/unnecessary-testable/main.swift:174:29: warning: result of call to 'changeCurrentDirectoryPath' is unused
172 | func main(indexStorePath: String) {
173 | if let directory = ProcessInfo.processInfo.environment["BUILD_WORKSPACE_DIRECTORY"] {
174 | FileManager.default.changeCurrentDirectoryPath(directory)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
175 | }
176 |
[21/46] Emitting module indexutil_annotate
[22/47] Compiling tycat Xcode.swift
/host/spi-builder-workspace/Sources/tycat/Xcode.swift:5:13: warning: 'launchPath' is deprecated: renamed to 'executableURL'
3 | func XcodeIndexStorePath() throws -> String? {
4 | let process = Process()
5 | process.launchPath = "/usr/bin/xcodebuild"
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
| `- note: use 'executableURL' instead
6 | process.arguments = ["-showBuildSettings"]
7 | let pipe = Pipe()
/host/spi-builder-workspace/Sources/tycat/Xcode.swift:9:13: warning: 'launch()' is deprecated: renamed to 'run'
7 | let pipe = Pipe()
8 | process.standardOutput = pipe
9 | process.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run'
| `- note: use 'run' instead
10 | let data = pipe.fileHandleForReading.readDataToEndOfFile()
11 | let output = String(decoding: data, as: UTF8.self)
[23/47] Compiling tycat main.swift
[24/47] Emitting module tycat
[25/48] Compiling indexutil_export TSVWriter.swift
/host/spi-builder-workspace/Sources/indexutil-export/TSVWriter.swift:21:21: warning: result of call to 'write(_:maxLength:)' is unused
19 | let strings = fields.map { $0.description }
20 | let tsv = strings.joined(separator: "\t")
21 | self.output.write(tsv, maxLength: tsv.utf8.count)
| `- warning: result of call to 'write(_:maxLength:)' is unused
22 | self.output.write("\n", maxLength: 1)
23 | }
/host/spi-builder-workspace/Sources/indexutil-export/TSVWriter.swift:22:21: warning: result of call to 'write(_:maxLength:)' is unused
20 | let tsv = strings.joined(separator: "\t")
21 | self.output.write(tsv, maxLength: tsv.utf8.count)
22 | self.output.write("\n", maxLength: 1)
| `- warning: result of call to 'write(_:maxLength:)' is unused
23 | }
24 | }
[26/48] Emitting module indexutil_export
[27/48] Compiling indexutil_export main.swift
[31/49] Compiling indexutil_annotate Annotation.swift
[32/49] Compiling indexutil_annotate main.swift
[33/50] Compiling unused_imports UnusedImportStatement.swift
[34/50] Compiling unused_imports main.swift
/host/spi-builder-workspace/Sources/unused-imports/main.swift:192:29: warning: result of call to 'changeCurrentDirectoryPath' is unused
190 | {
191 | if let directory = ProcessInfo.processInfo.environment["BUILD_WORKSPACE_DIRECTORY"] {
192 | FileManager.default.changeCurrentDirectoryPath(directory)
| `- warning: result of call to 'changeCurrentDirectoryPath' is unused
193 | }
194 |
[34/51] Wrapping AST for tycat for debugging
[35/51] Write Objects.LinkFileList
[36/51] Wrapping AST for unnecessary-testable for debugging
[37/51] Write Objects.LinkFileList
[39/51] Wrapping AST for indexutil-export for debugging
[40/51] Write Objects.LinkFileList
[42/51] Wrapping AST for indexutil-annotate for debugging
[43/51] Write Objects.LinkFileList
[44/51] Wrapping AST for unused-imports for debugging
[45/51] Write Objects.LinkFileList
[46/51] Linking tycat
[47/51] Linking unnecessary-testable
[48/51] Linking indexutil-export
[49/51] Linking unused-imports
[50/51] Linking indexutil-annotate
Build complete! (3.87s)
Build complete.
{
"cxx_language_standard" : "c++17",
"dependencies" : [
],
"manifest_display_name" : "IndexStore",
"name" : "IndexStore",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "IndexStore",
"targets" : [
"IndexStore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CSwiftDemangle",
"targets" : [
"CSwiftDemangle"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftDemangle",
"targets" : [
"SwiftDemangle"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "indexutil-export",
"targets" : [
"indexutil-export"
],
"type" : {
"executable" : null
}
},
{
"name" : "unnecessary-testable",
"targets" : [
"unnecessary-testable"
],
"type" : {
"executable" : null
}
},
{
"name" : "unused-imports",
"targets" : [
"unused-imports"
],
"type" : {
"executable" : null
}
},
{
"name" : "indexutil-annotate",
"targets" : [
"indexutil-annotate"
],
"type" : {
"executable" : null
}
},
{
"name" : "tycat",
"targets" : [
"tycat"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "unused_imports",
"module_type" : "SwiftTarget",
"name" : "unused-imports",
"path" : "Sources/unused-imports",
"product_memberships" : [
"unused-imports"
],
"sources" : [
"Reporters/JSONReporter.swift",
"Reporters/SedCommandReporter.swift",
"Reporters/UnusedImportReporter.swift",
"SourceFileWithUnusedImports.swift",
"UnusedImportStatement.swift",
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "unnecessary_testable",
"module_type" : "SwiftTarget",
"name" : "unnecessary-testable",
"path" : "Sources/unnecessary-testable",
"product_memberships" : [
"unnecessary-testable"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "tycat",
"module_type" : "SwiftTarget",
"name" : "tycat",
"path" : "Sources/tycat",
"product_memberships" : [
"tycat"
],
"sources" : [
"TypeGraph.swift",
"Xcode.swift",
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "indexutil_export",
"module_type" : "SwiftTarget",
"name" : "indexutil-export",
"path" : "Sources/indexutil-export",
"product_memberships" : [
"indexutil-export"
],
"sources" : [
"TSVWriter.swift",
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "indexutil_annotate",
"module_type" : "SwiftTarget",
"name" : "indexutil-annotate",
"path" : "Sources/indexutil-annotate",
"product_memberships" : [
"indexutil-annotate"
],
"sources" : [
"Annotation.swift",
"main.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "executable"
},
{
"c99name" : "SwiftDemangleTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDemangleTests",
"path" : "Tests/SwiftDemangleTests",
"sources" : [
"SwiftDemangleTests.swift"
],
"target_dependencies" : [
"SwiftDemangle"
],
"type" : "test"
},
{
"c99name" : "SwiftDemangle",
"module_type" : "SwiftTarget",
"name" : "SwiftDemangle",
"path" : "Sources/SwiftDemangle",
"product_memberships" : [
"SwiftDemangle"
],
"sources" : [
"DemangledNode.swift",
"Demangler.swift"
],
"target_dependencies" : [
"CSwiftDemangle"
],
"type" : "library"
},
{
"c99name" : "IndexStoreTests",
"module_type" : "SwiftTarget",
"name" : "IndexStoreTests",
"path" : "Tests/IndexStoreTests",
"sources" : [
"DetermineIndexStorePath.swift",
"IndexStoreTests.swift",
"dummy.swift"
],
"target_dependencies" : [
"IndexStore"
],
"type" : "test"
},
{
"c99name" : "IndexStore",
"module_type" : "SwiftTarget",
"name" : "IndexStore",
"path" : "Sources/IndexStore",
"product_memberships" : [
"IndexStore",
"indexutil-export",
"unnecessary-testable",
"unused-imports",
"indexutil-annotate",
"tycat"
],
"sources" : [
"Constants.swift",
"IndexStore.swift",
"IndexStoreError.swift",
"StandardStream.swift",
"String+IndexStore.swift"
],
"target_dependencies" : [
"CIndexStore"
],
"type" : "library"
},
{
"c99name" : "CSwiftDemangle",
"module_type" : "ClangTarget",
"name" : "CSwiftDemangle",
"path" : "Sources/CSwiftDemangle",
"product_memberships" : [
"CSwiftDemangle",
"SwiftDemangle"
],
"sources" : [
"CSwiftDemangle.cpp"
],
"type" : "library"
},
{
"c99name" : "CIndexStore",
"module_type" : "ClangTarget",
"name" : "CIndexStore",
"path" : "Sources/CIndexStore",
"product_memberships" : [
"IndexStore",
"indexutil-export",
"unnecessary-testable",
"unused-imports",
"indexutil-annotate",
"tycat"
],
"sources" : [
"dummy.c"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:108e10880bce35e9496fba26782956e40a8e91a2a227f9b90af7e4cd93d2c183
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Done.