The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build AST, reference main (cad7c2), with Swift 6.0 for Linux on 15 Sep 2024 01:17:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AnarchoSystems/AST.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/AnarchoSystems/AST
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cad7c2c associated type changed
Cloned https://github.com/AnarchoSystems/AST.git
Revision (git rev-parse @):
cad7c2c4127a5e79a48991e33db5a787fb2b0506
SUCCESS checkout https://github.com/AnarchoSystems/AST.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/AnarchoSystems/AST.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-argument-parser.git
[1/12158] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.68s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (0.49s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.3.0
Building for debugging...
[0/13] Write sources
[5/13] Write swift-version-24593BA9C3E375BF.txt
[7/30] Compiling ArgumentParserToolInfo ToolInfo.swift
[8/30] Emitting module ArgumentParserToolInfo
[9/31] Compiling AST PropertyWrappers.swift
[10/31] Compiling AST Sourcegen.swift
[12/32] Compiling AST ClosedGraph.swift
[13/32] Compiling AST Constructor.swift
[14/32] Compiling AST Parser+CLR1.swift
[15/32] Compiling AST Parser.swift
[16/32] Compiling AST Context.swift
/host/spi-builder-workspace/Sources/AST/Errors.swift:9:10: warning: associated value 'parserGeneration' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserGenerationError'; this is an error in the Swift 6 language mode
 7 |
 8 | public enum ASTError : Error {
 9 |     case parserGeneration(ParserGenerationError)
   |          `- warning: associated value 'parserGeneration' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserGenerationError'; this is an error in the Swift 6 language mode
10 |     case parserDefinition(ParserDefinitionError)
11 |     case parserRuntime(ParserRuntimeError)
12 | }
13 |
14 | public enum ParserGenerationError {
   |             `- note: consider making enum 'ParserGenerationError' conform to the 'Sendable' protocol
15 |     case shiftReduceConflict
16 |     case reduceReduceConflict(meta1: String, meta2: String, rule1: String, rule2: String)
/host/spi-builder-workspace/Sources/AST/Errors.swift:10:10: warning: associated value 'parserDefinition' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserDefinitionError'; this is an error in the Swift 6 language mode
 8 | public enum ASTError : Error {
 9 |     case parserGeneration(ParserGenerationError)
10 |     case parserDefinition(ParserDefinitionError)
   |          `- warning: associated value 'parserDefinition' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserDefinitionError'; this is an error in the Swift 6 language mode
11 |     case parserRuntime(ParserRuntimeError)
12 | }
   :
18 | }
19 |
20 | public enum ParserDefinitionError {
   |             `- note: consider making enum 'ParserDefinitionError' conform to the 'Sendable' protocol
21 |     case undefinedState
22 |     case noGoto(nonTerminal: String, state: Int)
/host/spi-builder-workspace/Sources/AST/Errors.swift:11:10: warning: associated value 'parserRuntime' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserRuntimeError'; this is an error in the Swift 6 language mode
 9 |     case parserGeneration(ParserGenerationError)
10 |     case parserDefinition(ParserDefinitionError)
11 |     case parserRuntime(ParserRuntimeError)
   |          `- warning: associated value 'parserRuntime' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserRuntimeError'; this is an error in the Swift 6 language mode
12 | }
13 |
   :
26 | }
27 |
28 | public enum ParserRuntimeError {
   |             `- note: consider making enum 'ParserRuntimeError' conform to the 'Sendable' protocol
29 |     case unexpectedSymbol(String, expecting: [String])
30 |     case stackCorrupted(popped: Any, expecting: String)
[17/32] Compiling AST Errors.swift
/host/spi-builder-workspace/Sources/AST/Errors.swift:9:10: warning: associated value 'parserGeneration' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserGenerationError'; this is an error in the Swift 6 language mode
 7 |
 8 | public enum ASTError : Error {
 9 |     case parserGeneration(ParserGenerationError)
   |          `- warning: associated value 'parserGeneration' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserGenerationError'; this is an error in the Swift 6 language mode
10 |     case parserDefinition(ParserDefinitionError)
11 |     case parserRuntime(ParserRuntimeError)
12 | }
13 |
14 | public enum ParserGenerationError {
   |             `- note: consider making enum 'ParserGenerationError' conform to the 'Sendable' protocol
15 |     case shiftReduceConflict
16 |     case reduceReduceConflict(meta1: String, meta2: String, rule1: String, rule2: String)
/host/spi-builder-workspace/Sources/AST/Errors.swift:10:10: warning: associated value 'parserDefinition' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserDefinitionError'; this is an error in the Swift 6 language mode
 8 | public enum ASTError : Error {
 9 |     case parserGeneration(ParserGenerationError)
10 |     case parserDefinition(ParserDefinitionError)
   |          `- warning: associated value 'parserDefinition' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserDefinitionError'; this is an error in the Swift 6 language mode
11 |     case parserRuntime(ParserRuntimeError)
12 | }
   :
18 | }
19 |
20 | public enum ParserDefinitionError {
   |             `- note: consider making enum 'ParserDefinitionError' conform to the 'Sendable' protocol
21 |     case undefinedState
22 |     case noGoto(nonTerminal: String, state: Int)
/host/spi-builder-workspace/Sources/AST/Errors.swift:11:10: warning: associated value 'parserRuntime' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserRuntimeError'; this is an error in the Swift 6 language mode
 9 |     case parserGeneration(ParserGenerationError)
10 |     case parserDefinition(ParserDefinitionError)
11 |     case parserRuntime(ParserRuntimeError)
   |          `- warning: associated value 'parserRuntime' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserRuntimeError'; this is an error in the Swift 6 language mode
12 | }
13 |
   :
26 | }
27 |
28 | public enum ParserRuntimeError {
   |             `- note: consider making enum 'ParserRuntimeError' conform to the 'Sendable' protocol
29 |     case unexpectedSymbol(String, expecting: [String])
30 |     case stackCorrupted(popped: Any, expecting: String)
[17/32] Wrapping AST for ArgumentParserToolInfo for debugging
[19/69] Compiling AST Utils.swift
[20/69] Emitting module ArgumentParser
[21/74] Emitting module AST
/host/spi-builder-workspace/Sources/AST/Errors.swift:9:10: warning: associated value 'parserGeneration' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserGenerationError'; this is an error in the Swift 6 language mode
 7 |
 8 | public enum ASTError : Error {
 9 |     case parserGeneration(ParserGenerationError)
   |          `- warning: associated value 'parserGeneration' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserGenerationError'; this is an error in the Swift 6 language mode
10 |     case parserDefinition(ParserDefinitionError)
11 |     case parserRuntime(ParserRuntimeError)
12 | }
13 |
14 | public enum ParserGenerationError {
   |             `- note: consider making enum 'ParserGenerationError' conform to the 'Sendable' protocol
15 |     case shiftReduceConflict
16 |     case reduceReduceConflict(meta1: String, meta2: String, rule1: String, rule2: String)
/host/spi-builder-workspace/Sources/AST/Errors.swift:10:10: warning: associated value 'parserDefinition' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserDefinitionError'; this is an error in the Swift 6 language mode
 8 | public enum ASTError : Error {
 9 |     case parserGeneration(ParserGenerationError)
10 |     case parserDefinition(ParserDefinitionError)
   |          `- warning: associated value 'parserDefinition' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserDefinitionError'; this is an error in the Swift 6 language mode
11 |     case parserRuntime(ParserRuntimeError)
12 | }
   :
18 | }
19 |
20 | public enum ParserDefinitionError {
   |             `- note: consider making enum 'ParserDefinitionError' conform to the 'Sendable' protocol
21 |     case undefinedState
22 |     case noGoto(nonTerminal: String, state: Int)
/host/spi-builder-workspace/Sources/AST/Errors.swift:11:10: warning: associated value 'parserRuntime' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserRuntimeError'; this is an error in the Swift 6 language mode
 9 |     case parserGeneration(ParserGenerationError)
10 |     case parserDefinition(ParserDefinitionError)
11 |     case parserRuntime(ParserRuntimeError)
   |          `- warning: associated value 'parserRuntime' of 'Sendable'-conforming enum 'ASTError' has non-sendable type 'ParserRuntimeError'; this is an error in the Swift 6 language mode
12 | }
13 |
   :
26 | }
27 |
28 | public enum ParserRuntimeError {
   |             `- note: consider making enum 'ParserRuntimeError' conform to the 'Sendable' protocol
29 |     case unexpectedSymbol(String, expecting: [String])
30 |     case stackCorrupted(popped: Any, expecting: String)
[22/74] Compiling ArgumentParser ArgumentDefinition.swift
[23/74] Compiling ArgumentParser ArgumentSet.swift
[24/74] Compiling ArgumentParser ArgumentHelp.swift
[25/74] Compiling ArgumentParser Option.swift
[26/74] Compiling ArgumentParser OptionGroup.swift
/host/spi-builder-workspace/Sources/AST/SymbolProtocol.swift:24:27: error: missing argument for parameter 'coder' in call
22 |         let str = try String(from: decoder)
23 |         guard str.count == 1 else {
24 |             throw NSError() //todo
   |                           `- error: missing argument for parameter 'coder' in call
25 |         }
26 |         self = str.first!
Foundation.NSError:5:21: note: 'init(coder:)' declared here
 3 |     public let _code: Int
 4 |     public init(domain: String, code: Int, userInfo dict: [String : Any]? = nil)
 5 |     required public init?(coder aDecoder: NSCoder)
   |                     `- note: 'init(coder:)' declared here
 6 |     public static var supportsSecureCoding: Bool { get }
 7 |     open func encode(with aCoder: NSCoder)
/host/spi-builder-workspace/Sources/AST/SymbolProtocol.swift:24:19: error: thrown expression type 'NSError?' does not conform to 'Error'
22 |         let str = try String(from: decoder)
23 |         guard str.count == 1 else {
24 |             throw NSError() //todo
   |                   `- error: thrown expression type 'NSError?' does not conform to 'Error'
25 |         }
26 |         self = str.first!
[27/74] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/Sources/AST/SymbolProtocol.swift:24:27: error: missing argument for parameter 'coder' in call
22 |         let str = try String(from: decoder)
23 |         guard str.count == 1 else {
24 |             throw NSError() //todo
   |                           `- error: missing argument for parameter 'coder' in call
25 |         }
26 |         self = str.first!
Foundation.NSError:5:21: note: 'init(coder:)' declared here
 3 |     public let _code: Int
 4 |     public init(domain: String, code: Int, userInfo dict: [String : Any]? = nil)
 5 |     required public init?(coder aDecoder: NSCoder)
   |                     `- note: 'init(coder:)' declared here
 6 |     public static var supportsSecureCoding: Bool { get }
 7 |     open func encode(with aCoder: NSCoder)
/host/spi-builder-workspace/Sources/AST/SymbolProtocol.swift:24:19: error: thrown expression type 'NSError?' does not conform to 'Error'
22 |         let str = try String(from: decoder)
23 |         guard str.count == 1 else {
24 |             throw NSError() //todo
   |                   `- error: thrown expression type 'NSError?' does not conform to 'Error'
25 |         }
26 |         self = str.first!
[28/74] Compiling ArgumentParser DumpHelpGenerator.swift
[29/74] Compiling ArgumentParser HelpCommand.swift
[30/74] Compiling ArgumentParser HelpGenerator.swift
[31/74] Compiling ArgumentParser MessageInfo.swift
[32/74] Compiling ArgumentParser UsageGenerator.swift
[36/74] Compiling ArgumentParser CommandConfiguration.swift
[37/74] Compiling ArgumentParser EnumerableFlag.swift
BUILD FAILURE 6.0 linux