Build Information
Failed to build DiasporaNodeInfo, reference main (48bfb6
), with Swift 6.0 for Linux on 5 Nov 2024 04:18:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shadone/DiasporaNodeInfo.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/shadone/DiasporaNodeInfo
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 48bfb66 Updated changelog
Cloned https://github.com/shadone/DiasporaNodeInfo.git
Revision (git rev-parse @):
48bfb66429fa4db7dbab033e1cdfbfeedecc0d4e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/shadone/DiasporaNodeInfo.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/shadone/DiasporaNodeInfo.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-argument-parser
[1/12353] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.71s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.45s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/13] Write sources
[1/13] Copying PrivacyInfo.xcprivacy
[5/13] Write sources
[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.
36 | // MARK: Private
37 |
38 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | private let jsonDecoder = JSONDecoder()
40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/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.
43 | /// Create a manager for fetching node info using the given network session.
44 | /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
45 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.session = session
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | /// Create a manager for fetching node info using the given network session.
44 | /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
45 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.session = session
47 | }
[9/43] Emitting module ArgumentParserToolInfo
[10/43] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/44] Wrapping AST for ArgumentParserToolInfo for debugging
[13/82] Compiling ArgumentParser OptionGroup.swift
[14/82] Compiling ArgumentParser AsyncParsableCommand.swift
[15/82] Compiling ArgumentParser CommandConfiguration.swift
[16/82] Compiling ArgumentParser CommandGroup.swift
[17/82] Compiling ArgumentParser EnumerableFlag.swift
[18/87] Compiling ArgumentParser ArgumentVisibility.swift
[19/87] Compiling ArgumentParser CompletionKind.swift
[20/87] Compiling ArgumentParser Errors.swift
[21/87] Compiling ArgumentParser Flag.swift
[22/87] Compiling ArgumentParser NameSpecification.swift
[23/87] Compiling ArgumentParser Option.swift
[24/87] Compiling ArgumentParser BashCompletionsGenerator.swift
[25/87] Compiling ArgumentParser CompletionsGenerator.swift
[26/87] Compiling ArgumentParser FishCompletionsGenerator.swift
[27/87] Compiling ArgumentParser ZshCompletionsGenerator.swift
[28/87] Compiling ArgumentParser Argument.swift
[29/87] Compiling ArgumentParser ArgumentHelp.swift
[30/87] Emitting module ArgumentParser
[31/87] Compiling ArgumentParser CollectionExtensions.swift
[32/87] Compiling ArgumentParser Platform.swift
[33/87] Compiling ArgumentParser SequenceExtensions.swift
[34/87] Compiling ArgumentParser StringExtensions.swift
[35/87] Compiling ArgumentParser Tree.swift
[44/87] Compiling ArgumentParser ParsableArgumentsValidation.swift
[45/87] Compiling ArgumentParser ParsableCommand.swift
[46/87] Compiling ArgumentParser ArgumentDecoder.swift
[50/87] Compiling ArgumentParser ArgumentSet.swift
[51/87] Compiling ArgumentParser CommandParser.swift
[52/87] Compiling ArgumentParser InputKey.swift
[57/87] Compiling ArgumentParser InputOrigin.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.
36 | // MARK: Private
37 |
38 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | private let jsonDecoder = JSONDecoder()
40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/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.
43 | /// Create a manager for fetching node info using the given network session.
44 | /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
45 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.session = session
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | /// Create a manager for fetching node info using the given network session.
44 | /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
45 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.session = session
47 | }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:59:23: error: cannot find 'URLRequest' in scope
57 | }
58 |
59 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
60 | request.allHTTPHeaderFields = [
61 | "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:64:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | ]
63 | do {
64 | let (data, urlResponse) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 | guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
66 | fatalError("Huh")
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:116:67: error: cannot infer key path type from context; consider explicitly specifying a root type
114 | }
115 |
116 | let allSupportedSchemas = wellKnownNodeInfo.links.map(\.rel)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
117 | throw Error.supportedNodeInfoSchemaNotFound(schemas: allSupportedSchemas)
118 | } catch {
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:131:23: error: cannot find 'URLRequest' in scope
129 | let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
130 |
131 | var request = URLRequest(url: nodeInfoUrl)
| `- error: cannot find 'URLRequest' in scope
132 |
133 | /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:141:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
139 | ]
140 |
141 | let (data, urlResponse) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
142 | guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
143 | fatalError("Huh")
[58/87] Compiling ArgumentParser ExpressibleByArgument.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.
36 | // MARK: Private
37 |
38 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | private let jsonDecoder = JSONDecoder()
40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/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.
43 | /// Create a manager for fetching node info using the given network session.
44 | /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
45 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.session = session
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | /// Create a manager for fetching node info using the given network session.
44 | /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
45 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.session = session
47 | }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:59:23: error: cannot find 'URLRequest' in scope
57 | }
58 |
59 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
60 | request.allHTTPHeaderFields = [
61 | "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:64:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | ]
63 | do {
64 | let (data, urlResponse) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 | guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
66 | fatalError("Huh")
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:116:67: error: cannot infer key path type from context; consider explicitly specifying a root type
114 | }
115 |
116 | let allSupportedSchemas = wellKnownNodeInfo.links.map(\.rel)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
117 | throw Error.supportedNodeInfoSchemaNotFound(schemas: allSupportedSchemas)
118 | } catch {
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:131:23: error: cannot find 'URLRequest' in scope
129 | let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
130 |
131 | var request = URLRequest(url: nodeInfoUrl)
| `- error: cannot find 'URLRequest' in scope
132 |
133 | /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:141:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
139 | ]
140 |
141 | let (data, urlResponse) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
142 | guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
143 | fatalError("Huh")
[59/87] Compiling ArgumentParser ParsableArguments.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.
36 | // MARK: Private
37 |
38 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | private let jsonDecoder = JSONDecoder()
40 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/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.
43 | /// Create a manager for fetching node info using the given network session.
44 | /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
45 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.session = session
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | /// Create a manager for fetching node info using the given network session.
44 | /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
45 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.session = session
47 | }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:59:23: error: cannot find 'URLRequest' in scope
57 | }
58 |
59 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
60 | request.allHTTPHeaderFields = [
61 | "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:64:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | ]
63 | do {
64 | let (data, urlResponse) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 | guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
66 | fatalError("Huh")
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:116:67: error: cannot infer key path type from context; consider explicitly specifying a root type
114 | }
115 |
116 | let allSupportedSchemas = wellKnownNodeInfo.links.map(\.rel)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
117 | throw Error.supportedNodeInfoSchemaNotFound(schemas: allSupportedSchemas)
118 | } catch {
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:131:23: error: cannot find 'URLRequest' in scope
129 | let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
130 |
131 | var request = URLRequest(url: nodeInfoUrl)
| `- error: cannot find 'URLRequest' in scope
132 |
133 | /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:141:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
139 | ]
140 |
141 | let (data, urlResponse) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
142 | guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
143 | fatalError("Huh")
[62/87] Compiling ArgumentParser ArgumentDefinition.swift
[63/87] Compiling ArgumentParser Name.swift
[64/87] Compiling ArgumentParser Parsed.swift
[65/87] Compiling ArgumentParser ParsedValues.swift
[66/87] Compiling ArgumentParser ParserError.swift
[67/87] Compiling ArgumentParser SplitArguments.swift
BUILD FAILURE 6.0 linux