The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build MonetaryAmount, reference 1.1.1 (344205), with Swift 6.2 (beta) for Linux on 17 Jun 2025 21:35:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Reference: 1.1.1
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
 * tag               1.1.1      -> FETCH_HEAD
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 1.1.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Fetching https://github.com/stencilproject/Stencil.git
Fetching https://github.com/SoftwareEngineerChris/Consolidate.git
[1/141] Fetching consolidate
[99/355] Fetching consolidate, roundeddecimal
[311/5648] Fetching consolidate, roundeddecimal, stencil
Fetched https://github.com/SoftwareEngineerChris/Consolidate.git from cache (0.65s)
Fetched https://github.com/SoftwareEngineerChris/RoundedDecimal.git from cache (0.71s)
Fetched https://github.com/stencilproject/Stencil.git from cache (0.71s)
Computing version for https://github.com/SoftwareEngineerChris/Consolidate.git
Computed https://github.com/SoftwareEngineerChris/Consolidate.git at 1.2.1 (1.20s)
Computing version for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Computed https://github.com/SoftwareEngineerChris/RoundedDecimal.git at 2.2.2 (0.40s)
Computing version for https://github.com/stencilproject/Stencil.git
Computed https://github.com/stencilproject/Stencil.git at 0.15.1 (0.39s)
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
[1022/2432] Fetching spectre, pathkit
Fetched https://github.com/kylef/Spectre.git from cache (0.22s)
Fetched https://github.com/kylef/PathKit.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.60s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (3.16s)
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/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
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/RoundedDecimal.git
Working copy of https://github.com/SoftwareEngineerChris/RoundedDecimal.git resolved at 2.2.2
Building for debugging...
[0/21] Write sources
[6/21] Write swift-version-24593BA9C3E375BF.txt
[8/30] Compiling RoundedDecimal DecimalTypes.swift
[9/30] Emitting module RoundedDecimal
[10/30] Compiling RoundedDecimal Decimal+Rounding.swift
[11/30] Emitting module Consolidate
[12/30] Compiling Consolidate Consolidatable.swift
[14/31] Compiling RoundedDecimal DynamicRoundedDecimal.swift
[15/31] Compiling RoundedDecimal RoundedDecimal.swift
[16/32] Wrapping AST for Consolidate for debugging
[17/32] Write Objects.LinkFileList
[18/32] Wrapping AST for RoundedDecimal for debugging
[19/32] Write Objects.LinkFileList
[20/32] Archiving libConsolidate.a
[21/32] Archiving libRoundedDecimal.a
[23/40] Emitting module PathKit
[24/40] Compiling PathKit PathKit.swift
[26/41] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: error: '$0' is not a valid identifier
 34 |     func consolidated() -> [MonetaryAmount] {
 35 |
 36 |         return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
    |                                                |- error: '$0' is not a valid identifier
    |                                                `- note: if this name is unavoidable, use backticks to escape it
 37 |     }
 38 |
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:50: error: unexpected code '.value + $1.value' in parameter clause
 34 |     func consolidated() -> [MonetaryAmount] {
 35 |
 36 |         return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
    |                                                  `- error: unexpected code '.value + $1.value' in parameter clause
 37 |     }
 38 |
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: error: unexpected code '.' in closure signature
 34 |     func consolidated() -> [MonetaryAmount] {
 35 |
 36 |         return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
    |                                                                    `- error: unexpected code '.' in closure signature
 37 |     }
 38 |
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:1:1: error: new Swift parser generated errors for code that C++ parser accepted
  1 | //
    | `- error: new Swift parser generated errors for code that C++ parser accepted
  2 | //  MonetaryAmount+Consolidation.swift
  3 | //  MonetaryAmount
[26/42] Wrapping AST for PathKit for debugging
[28/64] Compiling MonetaryAmount MonetaryAmount+Negation.swift
[29/64] Compiling MonetaryAmount MonetaryAmount+Construction.swift
[30/64] Compiling MonetaryAmount MonetaryAmount.swift
[31/64] Compiling MonetaryAmount NumberFormatter+Currency.swift
[32/64] Compiling MonetaryAmount Currency.swift
[33/64] Compiling MonetaryAmount Currencies+Generated.swift
[34/64] Emitting module MonetaryAmount
[35/64] Compiling MonetaryAmount MonetaryAmount+Arithmetic.swift
[36/64] Compiling Stencil Context.swift
[37/64] Compiling Stencil DynamicMemberLookup.swift
[38/64] Compiling Stencil Environment.swift
BUILD FAILURE 6.2 linux