Build Information
Failed to build Swiftgger with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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: 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/mczachurski/swiftgger
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
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 master
========================================
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-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.26s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.38s)
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
[2/14] Copying URLSession.template
[2/14] Write sources
[5/14] Write swift-version-24593BA9C3E375BF.txt
[7/18] Compiling AnyCodable AnyEncodable.swift
[8/18] Compiling AnyCodable AnyDecodable.swift
[9/18] Emitting module AnyCodable
[10/18] Compiling AnyCodable AnyCodable.swift
[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/86] Compiling Swiftgger OpenAPIMediaTypeBuilder.swift
[23/86] Compiling Swiftgger OpenAPIOperationBuilder.swift
[24/86] Compiling Swiftgger OpenAPIParametersBuilder.swift
[25/86] Compiling Swiftgger OpenAPIPathsBuilder.swift
[26/86] Compiling Swiftgger OpenAPIRequestBuilder.swift
[27/86] Compiling Swiftgger OpenAPIResponsesBuilder.swift
[28/86] Compiling Swiftgger OpenAPISchemasBuilder.swift
[29/86] 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 OpenAPIContact.swift
[40/86] Compiling Swiftgger OpenAPIDiscriminator.swift
[41/86] Compiling Swiftgger OpenAPIDocument.swift
[42/86] Compiling Swiftgger OpenAPIEncoding.swift
[43/86] Compiling Swiftgger OpenAPIExample.swift
[44/86] Compiling Swiftgger OpenAPIExternalDocumentation.swift
[45/86] Compiling Swiftgger OpenAPIHeader.swift
[46/86] Compiling Swiftgger OpenAPIInfo.swift
[47/86] Compiling Swiftgger OpenAPISecurityBuilder.swift
[48/86] Compiling Swiftgger OpenAPIServersBuilder.swift
[49/86] Compiling Swiftgger OpenAPITagsBuilder.swift
[50/86] Compiling Swiftgger APIDataType.swift
[51/86] Compiling Swiftgger APIHttpMethod.swift
[52/86] Compiling Swiftgger APILocation.swift
[53/86] Compiling Swiftgger MirrorHelper.swift
[54/86] Compiling Swiftgger OpenAPISchemaConverter.swift
[55/86] Compiling Swiftgger OpenAPILicense.swift
[56/86] Compiling Swiftgger OpenAPILink.swift
[57/86] Compiling Swiftgger OpenAPIMediaType.swift
[58/86] Compiling Swiftgger OpenAPIOAuthFlow.swift
[59/86] Compiling Swiftgger OpenAPIOAuthFlows.swift
[60/86] Compiling Swiftgger OpenAPIOperation.swift
[61/86] Compiling Swiftgger OpenAPIParameter.swift
[62/86] Compiling Swiftgger OpenAPIPathItem.swift
[63/86] Compiling Swiftgger OpenAPISchemaEncoder.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[64/86] Compiling Swiftgger OpenAPISchemaKeyedEncodingContainer.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[65/86] Compiling Swiftgger OpenAPISchemaStorage.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[66/86] Compiling Swiftgger OpenAPISchemaUnkeyedEncodingContainer.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[67/86] Compiling Swiftgger PropertyKey.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[68/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:
^
[69/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:
^
[70/86] Compiling Swiftgger OpenAPIComponents.swift
/host/spi-builder-workspace/Sources/Swiftgger/Encoder/OpenAPISchemaKeyedEncodingContainer.swift:266:9: warning: default will never be executed
@unknown default:
^
[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 SwiftggerTestApp Fuel.swift
[85/107] Compiling SwiftggerTestApp Species.swift
[86/107] Emitting module SwiftggerTestApp
[87/107] Compiling SwiftggerGenerator TemplateFileGenerator.swift
[88/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)
~~~~~~~~~~ ^~~~~~
[89/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)
~~~~~~~~~~ ^~~~~~
[90/107] Compiling SwiftggerTestApp Program.swift
[91/107] Compiling SwiftggerTestApp Vehicle.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[92/108] Compiling SwiftggerGenerator ConsoleIO.swift
[93/108] Compiling SwiftggerGenerator OutputType.swift
[94/108] 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 {
^ ~~~~~~~~~~
[95/108] Compiling SwiftggerGenerator resource_bundle_accessor.swift
[96/108] Compiling SwiftggerGenerator OpenAPISchema.swift
[97/108] Compiling SwiftggerGenerator String.swift
[99/108] Compiling SwiftggerGenerator ModelSerializer.swift
[100/108] Compiling SwiftggerGenerator OptionType.swift
[101/108] 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?) {
^~~~~~~~~~
[102/108] 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?) {
^~~~~~~~~~
error: fatalError
[102/108] 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
[3/12] Linking swiftgger-test-app
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Compiling SwiftggerGenerator SwiftggerError.swift
[6/12] Compiling SwiftggerGenerator HttpClientGenerator.swift
[7/12] 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 {
^ ~~~~~~~~~~
[8/12] 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?) {
^~~~~~~~~~
[9/12] 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)
~~~~~~~~~~ ^~~~~~
[10/14] Compiling SwiftggerGenerator main.swift
[11/14] Compiling SwiftggerGenerator String.swift
error: fatalError
BUILD FAILURE 5.10 linux