Build Information
Failed to build MonetaryAmount with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/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/MonetaryAmount.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/MonetaryAmount
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 3442059 Makes use of Consolidate Swift Package for MonetaryAmount consolidation
Cloned https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Revision (git rev-parse @):
3442059cf3ea7337441757aeadb6d1e026efa44c
SUCCESS checkout https://github.com/SoftwareEngineerChris/MonetaryAmount.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/SoftwareEngineerChris/Consolidate.git
Fetching https://github.com/stencilproject/Stencil.git
Fetching https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Fetching https://github.com/kylef/PathKit.git
[1/141] Fetching consolidate
[120/5325] Fetching consolidate, stencil
[350/6346] Fetching consolidate, stencil, spectre
[432/6560] Fetching consolidate, stencil, spectre, roundeddecimal
[2438/7964] Fetching consolidate, stencil, spectre, roundeddecimal, pathkit
Fetched https://github.com/SoftwareEngineerChris/RoundedDecimal.git from cache (0.29s)
Fetched https://github.com/kylef/Spectre.git from cache (0.29s)
Fetched https://github.com/kylef/PathKit.git from cache (0.36s)
Fetched https://github.com/SoftwareEngineerChris/Consolidate.git from cache (0.36s)
Fetched https://github.com/stencilproject/Stencil.git from cache (0.36s)
Computing version for https://github.com/stencilproject/Stencil.git
Computed https://github.com/stencilproject/Stencil.git at 0.13.1 (1.28s)
Computing version for https://github.com/SoftwareEngineerChris/Consolidate.git
Computed https://github.com/SoftwareEngineerChris/Consolidate.git at 1.1.0 (0.47s)
Computing version for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Computed https://github.com/SoftwareEngineerChris/RoundedDecimal.git at 2.2.2 (0.47s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.0 (0.43s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 0.9.2 (0.45s)
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.0
Creating working copy for https://github.com/SoftwareEngineerChris/Consolidate.git
Working copy of https://github.com/SoftwareEngineerChris/Consolidate.git resolved at 1.1.0
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 0.9.2
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/stencilproject/Stencil.git
Working copy of https://github.com/stencilproject/Stencil.git resolved at 0.13.1
Building for debugging...
[0/21] Write sources
[6/21] Write swift-version-24593BA9C3E375BF.txt
[8/30] Emitting module Consolidate
[9/30] Compiling Consolidate Consolidatable.swift
[10/31] Compiling RoundedDecimal DynamicRoundedDecimal.swift
[11/31] Compiling RoundedDecimal DecimalTypes.swift
[12/31] Emitting module RoundedDecimal
[13/31] Compiling RoundedDecimal Decimal+Rounding.swift
[14/31] Compiling RoundedDecimal RoundedDecimal.swift
[16/32] Emitting module PathKit
[17/32] Compiling PathKit PathKit.swift
[19/33] Wrapping AST for Consolidate for debugging
[20/33] Write Objects.LinkFileList
[21/33] Wrapping AST for RoundedDecimal for debugging
[22/33] Write Objects.LinkFileList
[23/33] Archiving libConsolidate.a
[24/33] Archiving libRoundedDecimal.a
[25/33] Wrapping AST for PathKit for debugging
[27/60] Compiling MonetaryAmount MonetaryAmount+Arithmetic.swift
[28/60] Compiling MonetaryAmount Currency.swift
[29/60] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
/host/spi-builder-workspace/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/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/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/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/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/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:1:1: error: new Swift parser generated errors for code that C++ parser accepted
//
^
[30/61] Compiling MonetaryAmount MonetaryAmount.swift
[31/61] Compiling MonetaryAmount MonetaryAmount+Construction.swift
[32/61] Compiling MonetaryAmount MonetaryAmount+Negation.swift
[33/61] Compiling MonetaryAmount NumberFormatter+Currency.swift
[34/61] Emitting module Stencil
[35/63] Compiling Stencil Lexer.swift
[36/63] Compiling Stencil Loader.swift
[37/63] Compiling Stencil Include.swift
[38/63] Compiling Stencil Inheritence.swift
[39/63] Compiling Stencil KeyPath.swift
[40/63] Compiling Stencil Node.swift
[41/63] Compiling Stencil NowTag.swift
[42/63] Compiling Stencil Parser.swift
[43/63] Compiling Stencil Template.swift
[44/63] Compiling Stencil Context.swift
[45/63] Compiling Stencil Environment.swift
[46/63] Compiling Stencil Errors.swift
[47/63] Emitting module MonetaryAmount
[48/63] Compiling MonetaryAmount Currencies+Generated.swift
error: fatalError
[49/63] Compiling Stencil Expression.swift
[50/63] Compiling Stencil Extension.swift
[51/63] Compiling Stencil FilterTag.swift
[0/1] Planning build
Building for debugging...
[0/13] Write swift-version-24593BA9C3E375BF.txt
[2/16] Emitting module MonetaryAmount
[3/16] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
/host/spi-builder-workspace/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/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/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/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/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/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:1:1: error: new Swift parser generated errors for code that C++ parser accepted
//
^
error: fatalError
[4/16] Compiling Stencil Filters.swift
[5/16] Compiling Stencil Tokenizer.swift
[6/16] Emitting module Stencil
BUILD FAILURE 5.10 linux