Build Information
Failed to build Swiftgger with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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/mczachurski/swiftgger.git
Reference: 1.5.0
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/mczachurski/swiftgger
* tag 1.5.0 -> FETCH_HEAD
HEAD is now at 25d9ea8 Merge pull request #22 from mczachurski/feature/swift-generator
Cloned https://github.com/mczachurski/swiftgger.git
Revision (git rev-parse @):
25d9ea884067764ab314cd3bf7e0ca19867b3f45
SUCCESS checkout https://github.com/mczachurski/swiftgger.git at 1.5.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/mczachurski/swiftgger.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/Flight-School/AnyCodable
[1/756] Fetching anycodable
Fetched https://github.com/Flight-School/AnyCodable from cache (0.59s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.43s)
Creating working copy for https://github.com/Flight-School/AnyCodable
Working copy of https://github.com/Flight-School/AnyCodable resolved at 0.6.7
Building for debugging...
[0/14] Write sources
[4/14] Copying URLSession.template
[5/14] Write swift-version-24593BA9C3E375BF.txt
[7/18] Compiling AnyCodable AnyDecodable.swift
[8/18] Compiling AnyCodable AnyCodable.swift
[9/18] Emitting module AnyCodable
[10/18] Compiling AnyCodable AnyEncodable.swift
[11/19] Wrapping AST for AnyCodable for debugging
[13/69] Compiling Swiftgger APIAction.swift
[14/69] Compiling Swiftgger APIAuthorizationFlow.swift
[15/69] Compiling Swiftgger APIAuthorizationOAuth2Type.swift
[16/69] Compiling Swiftgger APIAuthorizationType.swift
[17/69] Compiling Swiftgger APIContact.swift
[18/69] Compiling Swiftgger APIController.swift
[19/69] Compiling Swiftgger APILicense.swift
[20/75] Compiling Swiftgger APILink.swift
[21/75] Compiling Swiftgger APIObject.swift
[22/75] Compiling Swiftgger APIParameter.swift
[23/75] Compiling Swiftgger APIRequest.swift
[24/75] Compiling Swiftgger APIResponse.swift
[25/75] Compiling Swiftgger APIServer.swift
[26/75] Compiling Swiftgger APIVariable.swift
[27/75] Compiling Swiftgger APIHttpMethod.swift
[28/75] Compiling Swiftgger APILocation.swift
[29/75] Compiling Swiftgger OpenAPIComponents.swift
[30/75] Compiling Swiftgger OpenAPIContact.swift
[31/75] Compiling Swiftgger OpenAPIDiscriminator.swift
[32/75] Compiling Swiftgger OpenAPIDocument.swift
[33/75] Compiling Swiftgger OpenAPIEncoding.swift
[34/75] Compiling Swiftgger OpenAPIExample.swift
[35/75] Compiling Swiftgger OpenAPIExternalDocumentation.swift
[36/75] Compiling Swiftgger OpenAPIHeader.swift
[37/75] Compiling Swiftgger OpenAPIInfo.swift
[38/75] Compiling Swiftgger OpenAPILicense.swift
[39/75] Compiling Swiftgger OpenAPILink.swift
[40/75] Compiling Swiftgger OpenAPIMediaType.swift
[41/75] Compiling Swiftgger OpenAPIResponsesBuilder.swift
[42/75] Compiling Swiftgger OpenAPISchemasBuilder.swift
[43/75] Compiling Swiftgger OpenAPISecurityActionsBuilder.swift
[44/75] Compiling Swiftgger OpenAPISecurityBuilder.swift
[45/75] Compiling Swiftgger OpenAPIServersBuilder.swift
[46/75] Compiling Swiftgger OpenAPITagsBuilder.swift
[47/75] Compiling Swiftgger APIDataType.swift
[48/75] Compiling Swiftgger OpenAPIBuilder.swift
[49/75] Compiling Swiftgger OpenAPIInfoBuilder.swift
[50/75] Compiling Swiftgger OpenAPIMediaTypeBuilder.swift
[51/75] Compiling Swiftgger OpenAPIOperationBuilder.swift
[52/75] Compiling Swiftgger OpenAPIParametersBuilder.swift
[53/75] Compiling Swiftgger OpenAPIPathsBuilder.swift
[54/75] Compiling Swiftgger OpenAPIRequestBuilder.swift
[55/75] Compiling Swiftgger OpenAPIOAuthFlow.swift
[56/75] Compiling Swiftgger OpenAPIOAuthFlows.swift
[57/75] Compiling Swiftgger OpenAPIOperation.swift
[58/75] Compiling Swiftgger OpenAPIParameter.swift
[59/75] Compiling Swiftgger OpenAPIPathItem.swift
[60/75] Compiling Swiftgger OpenAPIRequestBody.swift
[61/75] Compiling Swiftgger OpenAPIResponse.swift
[62/75] Compiling Swiftgger OpenAPISchema.swift
[63/75] Compiling Swiftgger OpenAPISecurityScheme.swift
[64/75] Compiling Swiftgger OpenAPIServer.swift
[65/75] Compiling Swiftgger OpenAPIServerVariable.swift
[66/75] Compiling Swiftgger OpenAPITag.swift
[67/75] Compiling Swiftgger OpenAPIXML.swift
[68/75] Emitting module Swiftgger
[69/76] Wrapping AST for Swiftgger for debugging
[71/94] Compiling SwiftggerTestApp main.swift
[72/94] Compiling SwiftggerTestApp Vehicle.swift
[73/94] Emitting module SwiftggerTestApp
[74/94] Compiling SwiftggerTestApp Fuel.swift
[75/94] Compiling SwiftggerTestApp Program.swift
[76/94] Compiling SwiftggerGenerator main.swift
[77/96] Compiling SwiftggerGenerator TemplateFileGenerator.swift
[78/96] Compiling SwiftggerGenerator Program.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:61:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:62:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let response = URLSession.shared.synchronousDataTask(urlrequest: request)
~~~~~~~~~~ ^~~~~~
[79/96] Compiling SwiftggerGenerator SwiftggerError.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:61:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:62:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let response = URLSession.shared.synchronousDataTask(urlrequest: request)
~~~~~~~~~~ ^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[80/96] Compiling SwiftggerGenerator ConsoleIO.swift
[81/96] Compiling SwiftggerGenerator OutputType.swift
[82/96] Emitting module SwiftggerGenerator
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
[84/96] Compiling SwiftggerGenerator URLSession.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:12:42: error: cannot find type 'URLRequest' in scope
func synchronousDataTask(urlrequest: URLRequest) -> (data: Data?, response: URLResponse?, error: Error?) {
^~~~~~~~~~
[85/96] Compiling SwiftggerGenerator HttpClientGenerator.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:12:42: error: cannot find type 'URLRequest' in scope
func synchronousDataTask(urlrequest: URLRequest) -> (data: Data?, response: URLResponse?, error: Error?) {
^~~~~~~~~~
[86/96] Compiling SwiftggerGenerator ModelSerializer.swift
[87/96] Compiling SwiftggerGenerator OptionType.swift
[88/96] Compiling SwiftggerGenerator OpenAPISchema.swift
[89/96] Compiling SwiftggerGenerator String.swift
[90/96] Compiling SwiftggerGenerator resource_bundle_accessor.swift
error: fatalError
[90/96] Wrapping AST for SwiftggerTestApp for debugging
[0/1] Planning build
Building for debugging...
[0/9] Write swift-version-24593BA9C3E375BF.txt
[1/7] Wrapping AST for SwiftggerTestApp for debugging
[2/7] Write Objects.LinkFileList
[4/12] Compiling SwiftggerGenerator SwiftggerError.swift
[4/13] Linking swiftgger-test-app
[6/13] Compiling SwiftggerGenerator Program.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:61:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:62:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let response = URLSession.shared.synchronousDataTask(urlrequest: request)
~~~~~~~~~~ ^~~~~~
[7/13] Compiling SwiftggerGenerator String.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/13] Compiling SwiftggerGenerator HttpClientGenerator.swift
[9/13] Emitting module SwiftggerGenerator
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
[10/13] Compiling SwiftggerGenerator URLSession.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:11:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:12:42: error: cannot find type 'URLRequest' in scope
func synchronousDataTask(urlrequest: URLRequest) -> (data: Data?, response: URLResponse?, error: Error?) {
^~~~~~~~~~
[11/14] Compiling SwiftggerGenerator main.swift
error: fatalError
BUILD FAILURE 5.10 linux