Build Information
Failed to build swift-argument-parser, reference main (72bf21
), with Swift 5.8 for Linux on 7 Oct 2024 20:16:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/swift-argument-parser.git
Reference: main
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/apple/swift-argument-parser
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 72bf212 extend ToolInfoV0 with command visibility (#669)
Cloned https://github.com/apple/swift-argument-parser.git
Revision (git rev-parse @):
72bf21248fb6fbc146dc992fbf01c2e935377455
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-argument-parser.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD
https://github.com/apple/swift-argument-parser.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.8-latest: Pulling from finestructure/spi-images
Digest: sha256:5112a149cbb5cb7c4578603c13e2541eac53725a20fec231c9f83c98beab2b47
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.8-latest
[1/1] Compiling plugin GenerateManual
Building for debugging...
[2/15] Emitting module ArgumentParserToolInfo
[3/15] Compiling ArgumentParserToolInfo ToolInfo.swift
/host/spi-builder-workspace/Sources/ArgumentParserToolInfo/ToolInfo.swift:189:35: error: expected initial value after '='
let discussion: Discussion? = if let discussion { .init(discussion) } else { nil }
^
/host/spi-builder-workspace/Sources/ArgumentParserToolInfo/ToolInfo.swift:189:34: error: consecutive statements on a line must be separated by ';'
let discussion: Discussion? = if let discussion { .init(discussion) } else { nil }
^
;
/host/spi-builder-workspace/Sources/ArgumentParserToolInfo/ToolInfo.swift:352:35: error: expected initial value after '='
let discussion: Discussion? = if let discussion { .init(discussion) } else { nil }
^
/host/spi-builder-workspace/Sources/ArgumentParserToolInfo/ToolInfo.swift:352:34: error: consecutive statements on a line must be separated by ';'
let discussion: Discussion? = if let discussion { .init(discussion) } else { nil }
^
;
/host/spi-builder-workspace/Sources/ArgumentParserToolInfo/ToolInfo.swift:189:56: error: reference to member 'init' cannot be resolved without a contextual type
let discussion: Discussion? = if let discussion { .init(discussion) } else { nil }
~^~~~
/host/spi-builder-workspace/Sources/ArgumentParserToolInfo/ToolInfo.swift:189:82: error: 'nil' requires a contextual type
let discussion: Discussion? = if let discussion { .init(discussion) } else { nil }
^
/host/spi-builder-workspace/Sources/ArgumentParserToolInfo/ToolInfo.swift:352:56: error: reference to member 'init' cannot be resolved without a contextual type
let discussion: Discussion? = if let discussion { .init(discussion) } else { nil }
~^~~~
/host/spi-builder-workspace/Sources/ArgumentParserToolInfo/ToolInfo.swift:352:82: error: 'nil' requires a contextual type
let discussion: Discussion? = if let discussion { .init(discussion) } else { nil }
^
BUILD FAILURE 5.8 linux