Build Information
Failed to build DiasporaNodeInfo with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.41.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shadone/DiasporaNodeInfo.git
Reference: 1.2.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/shadone/DiasporaNodeInfo
* tag 1.2.0 -> FETCH_HEAD
HEAD is now at 48bfb66 Updated changelog
Cloned https://github.com/shadone/DiasporaNodeInfo.git
Revision (git rev-parse @):
48bfb66429fa4db7dbab033e1cdfbfeedecc0d4e
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/shadone/DiasporaNodeInfo.git at 1.2.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/shadone/DiasporaNodeInfo.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/apple/swift-argument-parser
[1/11861] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.80s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.4.0 (0.38s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.4.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/13] Write sources
[4/13] Copying PrivacyInfo.xcprivacy
[6/13] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/40] Emitting module DiasporaNodeInfo
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:38:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/DiasporaNodeInfo.build/DerivedSources/resource_bundle_accessor.swift:4:16: warning: static property 'module' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
static let module: Bundle = {
^
[9/43] Emitting module ArgumentParserToolInfo
[10/43] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/44] Wrapping AST for ArgumentParserToolInfo for debugging
[13/81] Emitting module ArgumentParser
[14/86] Compiling ArgumentParser Option.swift
[15/86] Compiling ArgumentParser OptionGroup.swift
[16/86] Compiling ArgumentParser AsyncParsableCommand.swift
[17/86] Compiling ArgumentParser CommandConfiguration.swift
[18/86] Compiling ArgumentParser EnumerableFlag.swift
[19/86] Compiling ArgumentParser ArgumentVisibility.swift
[20/86] Compiling ArgumentParser CompletionKind.swift
[21/86] Compiling ArgumentParser Errors.swift
[22/86] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:38:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:59:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:64:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, urlResponse) = try await session.data(for: request)
~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:116:67: error: cannot infer key path type from context; consider explicitly specifying a root type
let allSupportedSchemas = wellKnownNodeInfo.links.map(\.rel)
^
<#Root#>
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:131:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: nodeInfoUrl)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:141:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, urlResponse) = try await session.data(for: request)
~~~~~~~ ^~~~
[23/86] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:38:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:59:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:64:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, urlResponse) = try await session.data(for: request)
~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:116:67: error: cannot infer key path type from context; consider explicitly specifying a root type
let allSupportedSchemas = wellKnownNodeInfo.links.map(\.rel)
^
<#Root#>
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:131:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: nodeInfoUrl)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:141:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, urlResponse) = try await session.data(for: request)
~~~~~~~ ^~~~
[24/86] Compiling ArgumentParser CommandParser.swift
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:38:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(session: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(session: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:59:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:64:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, urlResponse) = try await session.data(for: request)
~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:116:67: error: cannot infer key path type from context; consider explicitly specifying a root type
let allSupportedSchemas = wellKnownNodeInfo.links.map(\.rel)
^
<#Root#>
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:131:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: nodeInfoUrl)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:141:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, urlResponse) = try await session.data(for: request)
~~~~~~~ ^~~~
[25/86] Compiling ArgumentParser ParsableArguments.swift
[26/86] Compiling ArgumentParser ParsableArgumentsValidation.swift
[27/86] Compiling ArgumentParser ParsableCommand.swift
[28/86] Compiling ArgumentParser ArgumentDecoder.swift
[29/86] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/DiasporaNodeInfo.build/DerivedSources/resource_bundle_accessor.swift:4:16: warning: static property 'module' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
static let module: Bundle = {
^
[30/86] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/DiasporaNodeInfo.build/DerivedSources/resource_bundle_accessor.swift:4:16: warning: static property 'module' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
static let module: Bundle = {
^
[31/86] Compiling ArgumentParser Name.swift
/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/DiasporaNodeInfo.build/DerivedSources/resource_bundle_accessor.swift:4:16: warning: static property 'module' is not concurrency-safe because it is not either conforming to 'Sendable' or isolated to a global actor; this is an error in Swift 6
static let module: Bundle = {
^
[32/86] Compiling ArgumentParser BashCompletionsGenerator.swift
[33/86] Compiling ArgumentParser CompletionsGenerator.swift
[34/86] Compiling ArgumentParser FishCompletionsGenerator.swift
[35/86] Compiling ArgumentParser ZshCompletionsGenerator.swift
[36/86] Compiling ArgumentParser Argument.swift
[37/86] Compiling ArgumentParser ArgumentHelp.swift
[43/86] Compiling ArgumentParser Flag.swift
[44/86] Compiling ArgumentParser NameSpecification.swift
[45/86] Compiling ArgumentParser ExpressibleByArgument.swift
error: fatalError
BUILD FAILURE 5.10 linux