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, reference main (d8070b), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 09:23:20 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "semanticversion",
      "name": "SemanticVersion",
      "url": "https://github.com/smumriak/SemanticVersion.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SemanticVersion",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/smumriak/SemanticVersion.git
[1/32] Fetching semanticversion
Fetched https://github.com/smumriak/SemanticVersion.git from cache (0.65s)
Creating working copy for https://github.com/smumriak/SemanticVersion.git
Working copy of https://github.com/smumriak/SemanticVersion.git resolved at main (d8070b9)
warning: '.resolve-product-dependencies': dependency 'semanticversion' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/smumriak/SemanticVersion.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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--7754E27361AE5C74.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