Build Information
Failed to build Swiftgger 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/mczachurski/swiftgger.git
Reference: 2.0.0-rc2
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 2.0.0-rc2 -> FETCH_HEAD
HEAD is now at afd6e6c Merge branch 'master' of github.com:mczachurski/Swiftgger
Cloned https://github.com/mczachurski/swiftgger.git
Revision (git rev-parse @):
afd6e6ccd9e7200484f0eda30aa5781125e7585f
SUCCESS checkout https://github.com/mczachurski/swiftgger.git at 2.0.0-rc2
========================================
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-4609320-0":/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.22s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.46s)
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] Copying URLSession.template
[0/14] Write sources
[5/14] Write swift-version-24593BA9C3E375BF.txt
[7/18] Compiling AnyCodable AnyEncodable.swift
[8/18] Compiling AnyCodable AnyDecodable.swift
[9/18] Compiling AnyCodable AnyCodable.swift
[10/18] Emitting module AnyCodable
[11/19] Wrapping AST for AnyCodable for debugging
[13/78] Compiling Swiftgger APIAction.swift
[14/78] Compiling Swiftgger APIAuthorizationFlow.swift
[15/78] Compiling Swiftgger APIAuthorizationOAuth2Type.swift
[16/78] Compiling Swiftgger APIAuthorizationType.swift
[17/78] Compiling Swiftgger APIBodyType.swift
[18/78] Compiling Swiftgger APIContact.swift
[19/78] Compiling Swiftgger APIController.swift
[20/78] Compiling Swiftgger APILicense.swift
[21/78] Compiling Swiftgger APILink.swift
[22/78] Compiling Swiftgger OpenAPIMediaTypeBuilder.swift
[23/78] Compiling Swiftgger OpenAPIOperationBuilder.swift
[24/78] Compiling Swiftgger OpenAPIParametersBuilder.swift
[25/78] Compiling Swiftgger OpenAPIPathsBuilder.swift
[26/78] Compiling Swiftgger OpenAPIRequestBuilder.swift
[27/78] Compiling Swiftgger OpenAPIResponsesBuilder.swift
[28/78] Compiling Swiftgger OpenAPISchemasBuilder.swift
[29/78] Compiling Swiftgger OpenAPISecurityActionsBuilder.swift
[30/86] Compiling Swiftgger APIObject.swift
[31/86] Compiling Swiftgger APIObjectEncodable.swift
[32/86] Compiling Swiftgger APIParameter.swift
[33/86] Compiling Swiftgger APIRequest.swift
[34/86] Compiling Swiftgger APIResponse.swift
[35/86] Compiling Swiftgger APIServer.swift
[36/86] Compiling Swiftgger APIVariable.swift
[37/86] Compiling Swiftgger OpenAPIBuilder.swift
[38/86] Compiling Swiftgger OpenAPIInfoBuilder.swift
[39/86] Compiling Swiftgger OpenAPISchemaEncoder.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[40/86] Compiling Swiftgger OpenAPISchemaKeyedEncodingContainer.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[41/86] Compiling Swiftgger OpenAPISchemaStorage.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[42/86] Compiling Swiftgger OpenAPISchemaUnkeyedEncodingContainer.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[43/86] Compiling Swiftgger PropertyKey.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[44/86] Compiling Swiftgger Encodable+openEncode.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[45/86] Compiling Swiftgger String+snakeCase.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[46/86] Compiling Swiftgger OpenAPIComponents.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[47/86] Compiling Swiftgger OpenAPIContact.swift
[48/86] Compiling Swiftgger OpenAPIDiscriminator.swift
[49/86] Compiling Swiftgger OpenAPIDocument.swift
[50/86] Compiling Swiftgger OpenAPIEncoding.swift
[51/86] Compiling Swiftgger OpenAPIExample.swift
[52/86] Compiling Swiftgger OpenAPIExternalDocumentation.swift
[53/86] Compiling Swiftgger OpenAPIHeader.swift
[54/86] Compiling Swiftgger OpenAPIInfo.swift
[55/86] Compiling Swiftgger OpenAPISecurityBuilder.swift
[56/86] Compiling Swiftgger OpenAPIServersBuilder.swift
[57/86] Compiling Swiftgger OpenAPITagsBuilder.swift
[58/86] Compiling Swiftgger APIDataType.swift
[59/86] Compiling Swiftgger APIHttpMethod.swift
[60/86] Compiling Swiftgger APILocation.swift
[61/86] Compiling Swiftgger MirrorHelper.swift
[62/86] Compiling Swiftgger OpenAPISchemaConverter.swift
[63/86] Compiling Swiftgger OpenAPILicense.swift
[64/86] Compiling Swiftgger OpenAPILink.swift
[65/86] Compiling Swiftgger OpenAPIMediaType.swift
[66/86] Compiling Swiftgger OpenAPIOAuthFlow.swift
[67/86] Compiling Swiftgger OpenAPIOAuthFlows.swift
[68/86] Compiling Swiftgger OpenAPIOperation.swift
[69/86] Compiling Swiftgger OpenAPIParameter.swift
[70/86] Compiling Swiftgger OpenAPIPathItem.swift
[71/86] Compiling Swiftgger OpenAPIRequestBody.swift
[72/86] Compiling Swiftgger OpenAPIResponse.swift
[73/86] Compiling Swiftgger OpenAPISchema.swift
[74/86] Compiling Swiftgger OpenAPISecurityScheme.swift
[75/86] Compiling Swiftgger OpenAPIServer.swift
[76/86] Compiling Swiftgger OpenAPIServerVariable.swift
[77/86] Compiling Swiftgger OpenAPITag.swift
[78/86] Compiling Swiftgger OpenAPIXML.swift
[79/86] Emitting module Swiftgger
[80/87] Wrapping AST for Swiftgger for debugging
[82/106] Compiling SwiftggerTestApp main.swift
[83/106] Compiling SwiftggerGenerator main.swift
[84/107] Compiling SwiftggerGenerator TemplateFileGenerator.swift
[85/107] Compiling SwiftggerGenerator Program.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:59:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:60:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let response = URLSession.shared.synchronousDataTask(urlrequest: request)
~~~~~~~~~~ ^~~~~~
[86/107] Compiling SwiftggerGenerator SwiftggerError.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:59:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:60:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let response = URLSession.shared.synchronousDataTask(urlrequest: request)
~~~~~~~~~~ ^~~~~~
[87/107] Compiling SwiftggerGenerator resource_bundle_accessor.swift
[88/107] Compiling SwiftggerGenerator OpenAPISchema.swift
[89/107] Compiling SwiftggerGenerator String.swift
[90/107] Compiling SwiftggerTestApp Fuel.swift
[91/107] Emitting module SwiftggerTestApp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[92/107] Compiling SwiftggerGenerator ConsoleIO.swift
[93/107] Compiling SwiftggerGenerator OutputType.swift
[94/107] Compiling SwiftggerGenerator ModelSerializer.swift
[95/107] Compiling SwiftggerGenerator OptionType.swift
[96/107] Emitting module SwiftggerGenerator
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
[97/107] Compiling SwiftggerGenerator URLSession.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:10:42: error: cannot find type 'URLRequest' in scope
func synchronousDataTask(urlrequest: URLRequest) -> (data: Data?, response: URLResponse?, error: Error?) {
^~~~~~~~~~
[98/107] Compiling SwiftggerGenerator HttpClientGenerator.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:10:42: error: cannot find type 'URLRequest' in scope
func synchronousDataTask(urlrequest: URLRequest) -> (data: Data?, response: URLResponse?, error: Error?) {
^~~~~~~~~~
[99/107] Compiling SwiftggerTestApp Program.swift
[100/107] Compiling SwiftggerTestApp Vehicle.swift
[101/107] Compiling SwiftggerTestApp Species.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/9] Write swift-version-24593BA9C3E375BF.txt
[2/13] Compiling SwiftggerGenerator SwiftggerError.swift
[3/14] Emitting module SwiftggerTestApp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/15] Compiling SwiftggerGenerator HttpClientGenerator.swift
[6/15] Emitting module SwiftggerGenerator
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
[7/15] Compiling SwiftggerGenerator URLSession.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Extensions/URLSession.swift:10:42: error: cannot find type 'URLRequest' in scope
func synchronousDataTask(urlrequest: URLRequest) -> (data: Data?, response: URLResponse?, error: Error?) {
^~~~~~~~~~
[8/15] Compiling SwiftggerGenerator Program.swift
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:59:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftggerGenerator/Program.swift:60:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let response = URLSession.shared.synchronousDataTask(urlrequest: request)
~~~~~~~~~~ ^~~~~~
[8/16] Wrapping AST for SwiftggerTestApp for debugging
[9/16] Write Objects.LinkFileList
[11/16] Compiling SwiftggerGenerator String.swift
[12/16] Compiling SwiftggerGenerator main.swift
error: fatalError
[12/16] Linking swiftgger-test-app
BUILD FAILURE 5.10 linux