This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 SemanticVersion with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/smumriak/SemanticVersion.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/smumriak/SemanticVersion
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d8070b9 Type annotation for regex builder because swift 5.9 fails to infer types in reasonable time
Cloned https://github.com/smumriak/SemanticVersion.git
Revision (git rev-parse @):
d8070b9edb47c0f526128b8e08e87c7709d10ed9
SUCCESS checkout https://github.com/smumriak/SemanticVersion.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/smumriak/SemanticVersion.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SemanticVersion
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:244:66: error: result builder 'AlternationBuilder' does not implement any 'buildBlock' or a combination of 'buildPartialBlock(first:)' and 'buildPartialBlock(accumulated:next:)' with sufficient availability for this call site
242 |         }
243 |
244 |         let preReleaseIdentifier: ChoiceOf<Substring> = ChoiceOf {
    |                                                                  `- error: result builder 'AlternationBuilder' does not implement any 'buildBlock' or a combination of 'buildPartialBlock(first:)' and 'buildPartialBlock(accumulated:next:)' with sufficient availability for this call site
245 |             "0"
246 |             positiveNumber
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:233:30: error: trailing closure passed to parameter of type 'String' that does not accept a closure
231 |     }
232 |
233 |     static let regex = Regex {
    |                              `- error: trailing closure passed to parameter of type 'String' that does not accept a closure
234 |         // Swift compiler has troubles type checking this builder. 5.8.1 takes 30 seconds to do it on my PC. 5.9 errors out with "failed to type check in reasonable type"
235 |         // One could think this is a problem of the past, but actually no. With proper type annotation made by hand build takes only 3 seconds. 10 times better
_StringProcessing.Regex:3:12: note: 'init(_:)' declared here
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | extension Regex where Output == AnyRegexOutput {
3 |     public init(_ pattern: String) throws
  |            `- note: 'init(_:)' declared here
4 | }
[4/4] Compiling SemanticVersion SemanticVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:244:66: error: result builder 'AlternationBuilder' does not implement any 'buildBlock' or a combination of 'buildPartialBlock(first:)' and 'buildPartialBlock(accumulated:next:)' with sufficient availability for this call site
242 |         }
243 |
244 |         let preReleaseIdentifier: ChoiceOf<Substring> = ChoiceOf {
    |                                                                  `- error: result builder 'AlternationBuilder' does not implement any 'buildBlock' or a combination of 'buildPartialBlock(first:)' and 'buildPartialBlock(accumulated:next:)' with sufficient availability for this call site
245 |             "0"
246 |             positiveNumber
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:233:30: error: trailing closure passed to parameter of type 'String' that does not accept a closure
231 |     }
232 |
233 |     static let regex = Regex {
    |                              `- error: trailing closure passed to parameter of type 'String' that does not accept a closure
234 |         // Swift compiler has troubles type checking this builder. 5.8.1 takes 30 seconds to do it on my PC. 5.9 errors out with "failed to type check in reasonable type"
235 |         // One could think this is a problem of the past, but actually no. With proper type annotation made by hand build takes only 3 seconds. 10 times better
_StringProcessing.Regex:3:12: note: 'init(_:)' declared here
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | extension Regex where Output == AnyRegexOutput {
3 |     public init(_ pattern: String) throws
  |            `- note: 'init(_:)' declared here
4 | }
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.