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 MonetaryExchange with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SoftwareEngineerChris/MonetaryExchange.git
Reference: master
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/SoftwareEngineerChris/MonetaryExchange
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 16bfe2a Create swift.yml
Cloned https://github.com/SoftwareEngineerChris/MonetaryExchange.git
Revision (git rev-parse @):
16bfe2add18da06b1b3110b5d0281e05bd4566c7
SUCCESS checkout https://github.com/SoftwareEngineerChris/MonetaryExchange.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/SoftwareEngineerChris/MonetaryExchange.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/SoftwareEngineerChris/MonetaryAmount.git
[1/154] Fetching monetaryamount
Fetched https://github.com/SoftwareEngineerChris/MonetaryAmount.git from cache (0.22s)
Computing version for https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Computed https://github.com/SoftwareEngineerChris/MonetaryAmount.git at 1.1.1 (0.46s)
Fetching https://github.com/stencilproject/Stencil.git
Fetching https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Fetching https://github.com/SoftwareEngineerChris/Consolidate.git
[1/214] Fetching roundeddecimal
[215/355] Fetching roundeddecimal, consolidate
[356/5539] Fetching roundeddecimal, consolidate, stencil
Fetched https://github.com/SoftwareEngineerChris/Consolidate.git from cache (0.34s)
Fetched https://github.com/SoftwareEngineerChris/RoundedDecimal.git from cache (0.34s)
Fetched https://github.com/stencilproject/Stencil.git from cache (0.34s)
Computing version for https://github.com/SoftwareEngineerChris/Consolidate.git
Computed https://github.com/SoftwareEngineerChris/Consolidate.git at 1.2.1 (0.46s)
Computing version for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Computed https://github.com/SoftwareEngineerChris/RoundedDecimal.git at 2.2.2 (0.45s)
Computing version for https://github.com/stencilproject/Stencil.git
Computed https://github.com/stencilproject/Stencil.git at 0.15.1 (0.44s)
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/kylef/PathKit.git
[1/1404] Fetching pathkit
[1040/2425] Fetching pathkit, spectre
Fetched https://github.com/kylef/PathKit.git from cache (0.24s)
Fetched https://github.com/kylef/Spectre.git from cache (0.24s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.46s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (1.29s)
Creating working copy for https://github.com/stencilproject/Stencil.git
Working copy of https://github.com/stencilproject/Stencil.git resolved at 0.15.1
Creating working copy for https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Working copy of https://github.com/SoftwareEngineerChris/MonetaryAmount.git resolved at 1.1.1
Creating working copy for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Working copy of https://github.com/SoftwareEngineerChris/RoundedDecimal.git resolved at 2.2.2
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/SoftwareEngineerChris/Consolidate.git
Working copy of https://github.com/SoftwareEngineerChris/Consolidate.git resolved at 1.2.1
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 1.0.1
Building for debugging...
[0/21] Write sources
[5/21] Write swift-version-24593BA9C3E375BF.txt
[7/28] Compiling Consolidate Consolidatable.swift
[8/28] Emitting module Consolidate
[10/29] Compiling RoundedDecimal Decimal+Rounding.swift
[11/29] Emitting module RoundedDecimal
[12/29] Compiling RoundedDecimal DecimalTypes.swift
[13/29] Compiling RoundedDecimal DynamicRoundedDecimal.swift
[14/29] Compiling RoundedDecimal RoundedDecimal.swift
[14/30] Wrapping AST for Consolidate for debugging
[15/30] Write Objects.LinkFileList
[17/30] Archiving libConsolidate.a
[18/30] Wrapping AST for RoundedDecimal for debugging
[19/30] Write Objects.LinkFileList
[20/30] Archiving libRoundedDecimal.a
[22/38] Compiling MonetaryAmount MonetaryAmount+Construction.swift
[23/39] Compiling MonetaryAmount Currency.swift
[24/39] Compiling MonetaryAmount MonetaryAmount+Negation.swift
[25/39] Compiling MonetaryAmount MonetaryAmount.swift
[26/39] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: error: '$0' is not a valid identifier
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                               ^~
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: note: if this name is unavoidable, use backticks to escape it
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                               ^~
                                               `$0`
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:50: error: unexpected code '.value + $1.value' in parameter clause
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: error: expected 'in' in closure signature
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                                   ^
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: note: insert 'in'
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                                   ^
                                                                    in
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:1:1: error: new Swift parser generated errors for code that C++ parser accepted
//
^
[27/39] Compiling MonetaryAmount MonetaryAmount+Arithmetic.swift
[28/39] Compiling MonetaryAmount NumberFormatter+Currency.swift
[29/39] Emitting module MonetaryAmount
[30/39] Compiling MonetaryAmount Currencies+Generated.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/14] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: error: '$0' is not a valid identifier
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                               ^~
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: note: if this name is unavoidable, use backticks to escape it
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                               ^~
                                               `$0`
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:50: error: unexpected code '.value + $1.value' in parameter clause
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: error: expected 'in' in closure signature
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                                   ^
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: note: insert 'in'
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                                   ^
                                                                    in
/host/spi-builder-workspace/.build/checkouts/MonetaryAmount/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:1:1: error: new Swift parser generated errors for code that C++ parser accepted
//
^
[3/12] Emitting module MonetaryAmount
error: fatalError
BUILD FAILURE 5.10 linux