The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DiasporaNodeInfo, reference 2.0.0 (05fa35), with Swift 6.1 for Wasm on 16 Jul 2026 10:12:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shadone/DiasporaNodeInfo.git
Reference: 2.0.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               2.0.0      -> FETCH_HEAD
HEAD is now at 05fa35d docs: note encode-shape change in changelog, unify error existential spelling
Cloned https://github.com/shadone/DiasporaNodeInfo.git
Revision (git rev-parse @):
05fa35dd84c3891eb3f63df27d51079a62d200a9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/shadone/DiasporaNodeInfo.git at 2.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/shadone/DiasporaNodeInfo.git
https://github.com/shadone/DiasporaNodeInfo.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
[1/18024] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.66s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.90s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/14] Write sources
[3/14] Copying PrivacyInfo.xcprivacy
[3/14] Write sources
[7/14] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/42] Emitting module DiasporaNodeInfo
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
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:56:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         self.session = session
 58 |     }
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:56:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         self.session = session
 58 |     }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:17: error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
[10/45] Emitting module ArgumentParserToolInfo
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/45] Compiling ArgumentParserToolInfo ToolInfo.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/46] Wrapping AST for ArgumentParserToolInfo for debugging
[14/93] Emitting module ArgumentParser
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/99] Compiling ArgumentParser ParsableCommand.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/99] Compiling ArgumentParser ArgumentDecoder.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/99] Compiling ArgumentParser ArgumentDefinition.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/99] Compiling ArgumentParser CollectionExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/99] Compiling ArgumentParser Foundation.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/99] Compiling ArgumentParser ArgumentVisibility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/99] Compiling ArgumentParser CompletionKind.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/99] Compiling ArgumentParser StringExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
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:56:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         self.session = session
 58 |     }
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:56:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         self.session = session
 58 |     }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:17: error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:70:23: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 71 |         request.allHTTPHeaderFields = [
 72 |             "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:75:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         ]
 74 |         let data: Data
 75 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:77:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 75 |         let urlResponse: URLResponse
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 78 |         } catch {
 79 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 82 |             throw Error.nonHTTPResponse
 83 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |             throw Error.nonHTTPResponse
 83 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:85:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
 85 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 86 |
 87 |         /// Spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:152:23: error: cannot find 'URLRequest' in scope
150 |         let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
151 |
152 |         var request = URLRequest(url: nodeInfoUrl)
    |                       `- error: cannot find 'URLRequest' in scope
153 |
154 |         /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:163:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |
162 |         let data: Data
163 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:165:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |         let urlResponse: URLResponse
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |         } catch {
167 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
170 |             throw Error.nonHTTPResponse
171 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |             throw Error.nonHTTPResponse
171 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:181:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |         // This is not defined in the spec but we choose to validate the status code the same
180 |         // way it is validated when retrieving the list of supported documents via Link elements.
181 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
182 |         if statusCode == 404 || statusCode == 400 {
183 |             throw Error.unsupported
[23/99] Compiling ArgumentParser SwiftExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
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:56:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         self.session = session
 58 |     }
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:56:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         self.session = session
 58 |     }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:17: error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:70:23: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 71 |         request.allHTTPHeaderFields = [
 72 |             "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:75:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         ]
 74 |         let data: Data
 75 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:77:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 75 |         let urlResponse: URLResponse
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 78 |         } catch {
 79 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 82 |             throw Error.nonHTTPResponse
 83 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |             throw Error.nonHTTPResponse
 83 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:85:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
 85 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 86 |
 87 |         /// Spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:152:23: error: cannot find 'URLRequest' in scope
150 |         let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
151 |
152 |         var request = URLRequest(url: nodeInfoUrl)
    |                       `- error: cannot find 'URLRequest' in scope
153 |
154 |         /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:163:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |
162 |         let data: Data
163 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:165:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |         let urlResponse: URLResponse
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |         } catch {
167 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
170 |             throw Error.nonHTTPResponse
171 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |             throw Error.nonHTTPResponse
171 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:181:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |         // This is not defined in the spec but we choose to validate the status code the same
180 |         // way it is validated when retrieving the list of supported documents via Link elements.
181 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
182 |         if statusCode == 404 || statusCode == 400 {
183 |             throw Error.unsupported
[24/99] Compiling ArgumentParser Tree.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
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:56:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         self.session = session
 58 |     }
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:56:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         self.session = session
 58 |     }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:17: error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:70:23: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 71 |         request.allHTTPHeaderFields = [
 72 |             "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:75:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         ]
 74 |         let data: Data
 75 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:77:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 75 |         let urlResponse: URLResponse
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 78 |         } catch {
 79 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 82 |             throw Error.nonHTTPResponse
 83 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |             throw Error.nonHTTPResponse
 83 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:85:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
 85 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 86 |
 87 |         /// Spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:152:23: error: cannot find 'URLRequest' in scope
150 |         let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
151 |
152 |         var request = URLRequest(url: nodeInfoUrl)
    |                       `- error: cannot find 'URLRequest' in scope
153 |
154 |         /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:163:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |
162 |         let data: Data
163 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:165:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |         let urlResponse: URLResponse
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |         } catch {
167 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
170 |             throw Error.nonHTTPResponse
171 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |             throw Error.nonHTTPResponse
171 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:181:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |         // This is not defined in the spec but we choose to validate the status code the same
180 |         // way it is validated when retrieving the list of supported documents via Link elements.
181 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
182 |         if statusCode == 404 || statusCode == 400 {
183 |             throw Error.unsupported
[25/99] Compiling ArgumentParser Mutex.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[26/99] Compiling ArgumentParser Platform.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/99] Compiling ArgumentParser SequenceExtensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/99] Compiling ArgumentParser ParserError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[29/99] Compiling ArgumentParser SplitArguments.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[30/99] Compiling ArgumentParser DumpHelpGenerator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[31/99] Compiling ArgumentParser OptionGroup.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[32/99] Compiling ArgumentParser Name.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[33/99] Compiling ArgumentParser Parsed.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[34/99] Compiling ArgumentParser ParsedValues.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[35/99] Compiling ArgumentParser HelpCommand.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[36/99] Compiling ArgumentParser HelpGenerator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[37/99] Compiling ArgumentParser MessageInfo.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[38/99] Compiling ArgumentParser UsageGenerator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[39/99] Compiling ArgumentParser Errors.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[40/99] Compiling ArgumentParser Flag.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[41/99] Compiling ArgumentParser NameSpecification.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[42/99] Compiling ArgumentParser Option.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/9] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/37] Emitting module DiasporaNodeInfo
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
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:56:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         self.session = session
 58 |     }
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:56:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         self.session = session
 58 |     }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:17: error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
[5/40] Compiling DiasporaNodeInfo 2.1-Users.swift
[6/40] Compiling DiasporaNodeInfo 2.1.swift
[7/40] Compiling DiasporaNodeInfo DiasporaNodeInfo.swift
[8/40] Compiling DiasporaNodeInfo JSON.swift
[9/40] Compiling DiasporaNodeInfo LenientDecoding.swift
[10/40] Compiling DiasporaNodeInfo ValueOrUnknown.swift
[11/40] Compiling DiasporaNodeInfo 2.0.swift
[12/40] Compiling DiasporaNodeInfo 2.1-InboundSite.swift
[13/40] Compiling DiasporaNodeInfo 2.1-NodeInfo.swift
[14/40] Compiling DiasporaNodeInfo 2.1-OutboundSite.swift
[15/40] Compiling DiasporaNodeInfo 2.0-Services.swift
[16/40] Compiling DiasporaNodeInfo 2.0-Software.swift
[17/40] Compiling DiasporaNodeInfo 2.0-Usage.swift
[18/40] Compiling DiasporaNodeInfo 2.0-Users.swift
[19/40] Compiling DiasporaNodeInfo 2.1-Protocol.swift
[20/40] Compiling DiasporaNodeInfo 2.1-Services.swift
[21/40] Compiling DiasporaNodeInfo 2.1-Software.swift
[22/40] Compiling DiasporaNodeInfo 2.1-Usage.swift
[23/40] Compiling DiasporaNodeInfo NodeInfo+Convenience.swift
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
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:56:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         self.session = session
 58 |     }
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:56:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         self.session = session
 58 |     }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:17: error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:70:23: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 71 |         request.allHTTPHeaderFields = [
 72 |             "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:75:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         ]
 74 |         let data: Data
 75 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:77:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 75 |         let urlResponse: URLResponse
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 78 |         } catch {
 79 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 82 |             throw Error.nonHTTPResponse
 83 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |             throw Error.nonHTTPResponse
 83 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:85:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
 85 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 86 |
 87 |         /// Spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:152:23: error: cannot find 'URLRequest' in scope
150 |         let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
151 |
152 |         var request = URLRequest(url: nodeInfoUrl)
    |                       `- error: cannot find 'URLRequest' in scope
153 |
154 |         /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:163:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |
162 |         let data: Data
163 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:165:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |         let urlResponse: URLResponse
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |         } catch {
167 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
170 |             throw Error.nonHTTPResponse
171 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |             throw Error.nonHTTPResponse
171 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:181:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |         // This is not defined in the spec but we choose to validate the status code the same
180 |         // way it is validated when retrieving the list of supported documents via Link elements.
181 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
182 |         if statusCode == 404 || statusCode == 400 {
183 |             throw Error.unsupported
[24/40] Compiling DiasporaNodeInfo NodeInfo.swift
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
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:56:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         self.session = session
 58 |     }
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:56:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         self.session = session
 58 |     }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:17: error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:70:23: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 71 |         request.allHTTPHeaderFields = [
 72 |             "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:75:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         ]
 74 |         let data: Data
 75 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:77:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 75 |         let urlResponse: URLResponse
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 78 |         } catch {
 79 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 82 |             throw Error.nonHTTPResponse
 83 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |             throw Error.nonHTTPResponse
 83 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:85:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
 85 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 86 |
 87 |         /// Spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:152:23: error: cannot find 'URLRequest' in scope
150 |         let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
151 |
152 |         var request = URLRequest(url: nodeInfoUrl)
    |                       `- error: cannot find 'URLRequest' in scope
153 |
154 |         /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:163:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |
162 |         let data: Data
163 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:165:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |         let urlResponse: URLResponse
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |         } catch {
167 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
170 |             throw Error.nonHTTPResponse
171 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |             throw Error.nonHTTPResponse
171 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:181:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |         // This is not defined in the spec but we choose to validate the status code the same
180 |         // way it is validated when retrieving the list of supported documents via Link elements.
181 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
182 |         if statusCode == 404 || statusCode == 400 {
183 |             throw Error.unsupported
[25/40] Compiling DiasporaNodeInfo NodeInfoManager.swift
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
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:56:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         self.session = session
 58 |     }
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:56:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |     /// Create a manager for fetching node info using the given network session.
 55 |     /// - Parameter session: optional ``URLSession`` that will be used for fetching node info.
 56 |     public init(session: URLSession = .shared) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 57 |         self.session = session
 58 |     }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:49:17: error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 47 |     // MARK: Private
 48 |
 49 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'NodeInfoManager' has non-sendable type 'URLSession' (aka 'AnyObject')
 50 |     private let jsonDecoder = JSONDecoder()
 51 |
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:70:23: error: cannot find 'URLRequest' in scope
 68 |         }
 69 |
 70 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 71 |         request.allHTTPHeaderFields = [
 72 |             "Accept": "application/json",
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:75:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         ]
 74 |         let data: Data
 75 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:77:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 75 |         let urlResponse: URLResponse
 76 |         do {
 77 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 78 |         } catch {
 79 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 82 |             throw Error.nonHTTPResponse
 83 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:81:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |             throw Error.network(underlyingError: error)
 80 |         }
 81 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |             throw Error.nonHTTPResponse
 83 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:85:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
 85 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 86 |
 87 |         /// Spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:152:23: error: cannot find 'URLRequest' in scope
150 |         let nodeInfoUrl = try await discoverNodeInfoUrlFromWellKnownNodeInfo(for: domain)
151 |
152 |         var request = URLRequest(url: nodeInfoUrl)
    |                       `- error: cannot find 'URLRequest' in scope
153 |
154 |         /// The spec: http://nodeinfo.diaspora.software/protocol.html
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:163:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |
162 |         let data: Data
163 |         let urlResponse: URLResponse
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:165:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
163 |         let urlResponse: URLResponse
164 |         do {
165 |             (data, urlResponse) = try await session.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
166 |         } catch {
167 |             throw Error.network(underlyingError: error)
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:49: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
170 |             throw Error.nonHTTPResponse
171 |         }
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:169:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |             throw Error.network(underlyingError: error)
168 |         }
169 |         guard let httpUrlResponse = urlResponse as? HTTPURLResponse else {
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |             throw Error.nonHTTPResponse
171 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/DiasporaNodeInfo/NodeInfoManager.swift:181:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
179 |         // This is not defined in the spec but we choose to validate the status code the same
180 |         // way it is validated when retrieving the list of supported documents via Link elements.
181 |         let statusCode = httpUrlResponse.statusCode
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
182 |         if statusCode == 404 || statusCode == 400 {
183 |             throw Error.unsupported
[26/40] Compiling DiasporaNodeInfo 2.0-InboundSite.swift
[27/40] Compiling DiasporaNodeInfo 2.0-NodeInfo.swift
[28/40] Compiling DiasporaNodeInfo 2.0-OutboundSite.swift
[29/40] Compiling DiasporaNodeInfo 2.0-Protocol.swift
[30/40] Compiling DiasporaNodeInfo WellKnownNodeInfo.swift
[31/40] Compiling DiasporaNodeInfo WellKnownNodeInfoSchema.swift
[32/40] Compiling DiasporaNodeInfo resource_bundle_accessor.swift
[33/40] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.1 wasm