The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build DiasporaNodeInfo, reference 1.2.0 (48bfb6), with Swift 6.0 for Linux on 1 Dec 2024 04:25:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
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: $PWD/.spi.yml
SUCCESS checkout https://github.com/shadone/DiasporaNodeInfo.git at 1.2.0
========================================
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-4609320-0":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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/12395] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.98s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.42s)
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
[2/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.
 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] Emitting module ArgumentParser
[14/87] Compiling ArgumentParser ParsedValues.swift
[15/87] Compiling ArgumentParser ParserError.swift
[16/87] Compiling ArgumentParser SplitArguments.swift
[17/87] Compiling ArgumentParser BashCompletionsGenerator.swift
[18/87] Compiling ArgumentParser CompletionsGenerator.swift
[19/87] Compiling ArgumentParser FishCompletionsGenerator.swift
[20/87] Compiling ArgumentParser ZshCompletionsGenerator.swift
[21/87] Compiling ArgumentParser AsyncParsableCommand.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")
[22/87] Compiling ArgumentParser CommandConfiguration.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")
[23/87] Compiling ArgumentParser CommandGroup.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")
[24/87] Compiling ArgumentParser NameSpecification.swift
[25/87] Compiling ArgumentParser Option.swift
[26/87] Compiling ArgumentParser Name.swift
[27/87] Compiling ArgumentParser Parsed.swift
[28/87] Compiling ArgumentParser ParsableArgumentsValidation.swift
[29/87] Compiling ArgumentParser ParsableCommand.swift
[30/87] Compiling ArgumentParser ArgumentDecoder.swift
[31/87] Compiling ArgumentParser ArgumentVisibility.swift
[32/87] Compiling ArgumentParser CompletionKind.swift
[33/87] Compiling ArgumentParser Errors.swift
[34/87] Compiling ArgumentParser Flag.swift
[35/87] Compiling ArgumentParser EnumerableFlag.swift
[36/87] Compiling ArgumentParser ExpressibleByArgument.swift
[37/87] Compiling ArgumentParser ParsableArguments.swift
[38/87] Compiling ArgumentParser Argument.swift
[39/87] Compiling ArgumentParser ArgumentHelp.swift
[40/87] Compiling ArgumentParser OptionGroup.swift
[68/87] Compiling ArgumentParser DumpHelpGenerator.swift
[69/87] Compiling ArgumentParser HelpCommand.swift
[70/87] Compiling ArgumentParser HelpGenerator.swift
[71/87] Compiling ArgumentParser MessageInfo.swift
[72/87] Compiling ArgumentParser UsageGenerator.swift
BUILD FAILURE 6.0 linux