Build Information
Failed to build swift-tailscale-client, reference main (6602dd), with Swift 6.2 for Wasm on 28 Sep 2026 08:45:33 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dweekly/swift-tailscale-client.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/dweekly/swift-tailscale-client
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6602ddc Re-pin upstream LocalAPI capability to 148 (#42)
Cloned https://github.com/dweekly/swift-tailscale-client.git
Revision (git rev-parse @):
6602ddc8454ec7b5221b7df0d0816fce52b0283d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/dweekly/swift-tailscale-client.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/dweekly/swift-tailscale-client.git
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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/apple/swift-argument-parser
[1/2345] Fetching swift-docc-plugin
[236/21293] Fetching swift-docc-plugin, swift-argument-parser
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.78s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.78s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (1.67s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3831] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.54s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.75s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.15s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
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
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/16] Write sources
[9/16] Write swift-version-24593BA9C3E375BF.txt
[11/60] Compiling ArgumentParserToolInfo ToolInfo.swift
[12/60] Emitting module ArgumentParserToolInfo
[13/61] Wrapping AST for ArgumentParserToolInfo for debugging
[15/108] Compiling ArgumentParser ParentCommand.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
[16/108] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
[17/108] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
[18/108] Compiling ArgumentParser CommandGroup.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
[19/108] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
[20/108] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
[21/113] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[22/113] Compiling ArgumentParser Mutex.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[23/113] Compiling ArgumentParser Platform.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[24/113] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[25/113] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[26/113] Compiling ArgumentParser SwiftExtensions.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:78:10: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
76 | self.allowFunnel = allowFunnel
77 | self.foreground = foreground
78 | self.etag = etag
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
79 | self._unmodeledFields = unmodeledFields
80 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Models/ServeConfig.swift:116:5: warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
114 | foreground =
115 | try container.decodeIfPresent([String: ServeConfig].self, forKey: .foreground) ?? [:]
116 | etag = nil
| `- warning: 'etag' is deprecated: Use ServeConfigSnapshot.etag instead [#DeprecatedDeclaration]
117 |
118 | let dynamicContainer = try decoder.container(keyedBy: AnyCodingKey.self)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[32/113] Compiling ArgumentParser Tree.swift
[33/119] Compiling ArgumentParser Errors.swift
[34/119] Compiling ArgumentParser Flag.swift
[35/119] Compiling ArgumentParser NameSpecification.swift
[36/119] Compiling ArgumentParser Option.swift
[37/119] Compiling ArgumentParser OptionGroup.swift
[38/119] Compiling ArgumentParser HelpCommand.swift
[39/119] Compiling ArgumentParser ParsedValues.swift
[40/119] Compiling ArgumentParser ParserError.swift
[41/119] Compiling ArgumentParser SplitArguments.swift
[42/119] Compiling ArgumentParser DumpHelpGenerator.swift
[43/119] Compiling ArgumentParser ArgumentVisibility.swift
[44/119] Compiling ArgumentParser CompletionKind.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[45/119] Emitting module TailscaleClient
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
218 |
219 | /// Creates a new transport with the specified URLSession.
[46/119] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[47/119] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[48/119] Compiling ArgumentParser ArgumentDiscussion.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[49/119] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[50/119] Compiling ArgumentParser Name.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[51/119] Compiling ArgumentParser Parsed.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:90:23: error: cannot find 'socket' in scope
88 | sendFD = fd
89 | } else {
90 | let created = socket(candidate.ipv6 ? AF_INET6 : AF_INET, datagramSocketType, 0)
| `- error: cannot find 'socket' in scope
91 | guard created >= 0 else { continue }
92 | if candidate.ipv6 { socketV6 = created } else { socketV4 = created }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:100:11: error: cannot find 'sendto' in scope
98 | let sent = request.withUnsafeBytes { payload in
99 | address.withUnsafeBytes { raw in
100 | sendto(
| `- error: cannot find 'sendto' in scope
101 | sendFD, payload.baseAddress, payload.count, 0,
102 | raw.baseAddress!.assumingMemoryBound(to: sockaddr.self),
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:175:17: error: cannot find 'addrinfo' in scope
173 |
174 | private static func resolveHostname(_ host: String, port: Int, ipv6: Bool) -> [UInt8]? {
175 | var hints = addrinfo()
| `- error: cannot find 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:178:36: error: cannot find type 'addrinfo' in scope
176 | hints.ai_family = ipv6 ? AF_INET6 : AF_INET
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:179:11: error: cannot find 'getaddrinfo' in scope
177 | hints.ai_socktype = datagramSocketType
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
| `- error: cannot find 'getaddrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:180:13: error: cannot find 'freeaddrinfo' in scope
178 | var list: UnsafeMutablePointer<addrinfo>?
179 | guard getaddrinfo(host, String(port), &hints, &list) == 0, let first = list else { return nil }
180 | defer { freeaddrinfo(list) }
| `- error: cannot find 'freeaddrinfo' in scope
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:182:39: error: cannot find type 'addrinfo' in scope
180 | defer { freeaddrinfo(list) }
181 |
182 | var current: UnsafeMutablePointer<addrinfo>? = first
| `- error: cannot find type 'addrinfo' in scope
183 | while let node = current {
184 | if node.pointee.ai_family == hints.ai_family, let addr = node.pointee.ai_addr {
/host/spi-builder-workspace/Sources/TailscaleClient/Netcheck/NetcheckProbe.swift:196:14: error: cannot find 'SOCK_DGRAM' in scope
194 | return Int32(SOCK_DGRAM.rawValue)
195 | #else
196 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
197 | #endif
198 | }
[53/119] Compiling ArgumentParser ParsableCommand.swift
[54/119] Compiling ArgumentParser ArgumentDecoder.swift
[55/119] Compiling ArgumentParser ArgumentDefinition.swift
[56/119] Compiling ArgumentParser ArgumentSet.swift
[57/119] Compiling ArgumentParser CommandParser.swift
[58/119] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[59/119] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[60/119] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[61/119] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[62/119] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/TailscaleClient.swift:1464:37: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1462 | case 502: return "Bad Gateway"
1463 | case 503: return "Service Unavailable"
1464 | default: return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
1465 | }
1466 | }
[63/119] Compiling ArgumentParser AsyncCompletionsValidator.swift
[64/119] Compiling ArgumentParser CodingKeyValidator.swift
[65/119] Compiling ArgumentParser NonsenseFlagsValidator.swift
[66/119] Compiling ArgumentParser ParsableArgumentsValidation.swift
[67/119] Compiling ArgumentParser PositionalArgumentsValidator.swift
[68/119] Compiling ArgumentParser UniqueNamesValidator.swift
[84/119] Compiling TailscaleClient HTTPWireFormat.swift
[85/119] Compiling TailscaleClient StreamingResponse.swift
[86/119] Compiling TailscaleClient TailscaleTransport.swift
[87/119] Compiling TailscaleClient TransportByteBoundedQueue.swift
[88/119] Compiling TailscaleClient UnixSocketTransport.swift
[95/119] Emitting module ArgumentParser
[110/120] Wrapping AST for ArgumentParser for debugging
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |
219 | /// Creates a new transport with the specified URLSession.
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/TailscaleClient/Transport/TailscaleTransport.swift:222:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | self.session = session
224 | }
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/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: value of type '_' expected to be instance of class or class-constrained type
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:222:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
220 | ///
221 | /// - Parameter session: The URLSession to use for HTTP requests (defaults to `.shared`).
222 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
223 | self.session = session
224 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:338:15: error: cannot find type 'URLRequest' in scope
336 | private func buildURLRequest(
337 | for request: TailscaleRequest, configuration: TailscaleClientConfiguration
338 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
339 | let url: URL
340 | switch configuration.endpoint {
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:217:15: error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
215 | /// The transport automatically injects required headers including `Tailscale-Cap` and optional authentication.
216 | public struct URLSessionTailscaleTransport: TailscaleTransport {
217 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'URLSessionTailscaleTransport' has non-Sendable type 'URLSession' (aka 'AnyObject')
218 |
219 | /// Creates a new transport with the specified URLSession.
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:269:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
267 | for: enrich(request: request, configuration: configuration), configuration: configuration)
268 |
269 | let (bytes, response) = try await session.bytes(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
270 | guard let http = response as? HTTPURLResponse else {
271 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:320:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
318 | for: enrich(request: request, configuration: configuration), configuration: configuration)
319 | do {
320 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
321 | guard let http = response as? HTTPURLResponse else {
322 | throw TailscaleTransportError.networkFailure(underlying: URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/TailscaleTransport.swift:364:22: error: cannot find 'URLRequest' in scope
362 | }
363 |
364 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
365 | urlRequest.httpMethod = request.method
366 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:44:13: error: cannot find 'Darwin' in scope
42 | _ = Glibc.close(fdToClose)
43 | #else
44 | _ = Darwin.close(fdToClose)
| `- error: cannot find 'Darwin' in scope
45 | #endif
46 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:274:17: error: cannot find 'socket' in scope
272 | try Task.checkCancellation()
273 |
274 | let rawFD = socket(AF_UNIX, socketStreamType, 0)
| `- error: cannot find 'socket' in scope
275 | guard rawFD >= 0 else {
276 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:288:53: error: cannot find 'O_NONBLOCK' in scope
286 | // Configure non-blocking and close-on-exec flags.
287 | let flags = fcntl(rawFD, F_GETFL, 0)
288 | guard flags >= 0, fcntl(rawFD, F_SETFL, flags | O_NONBLOCK) >= 0 else {
| `- error: cannot find 'O_NONBLOCK' in scope
289 | managed.close()
290 | throw POSIXError(.init(rawValue: errno) ?? .EIO)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:299:57: error: value of type 'sockaddr_un' has no member 'sun_path'
297 | var addr = sockaddr_un()
298 | addr.sun_family = sa_family_t(AF_UNIX)
299 | let maxPathLength = MemoryLayout.size(ofValue: addr.sun_path) / MemoryLayout<CChar>.stride
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
300 | guard path.utf8.count < maxPathLength else {
301 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:304:38: error: value of type 'sockaddr_un' has no member 'sun_path'
302 | throw POSIXError(.ENAMETOOLONG)
303 | }
304 | withUnsafeMutableBytes(of: &addr.sun_path) { buffer in
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
305 | let base = buffer.baseAddress!.assumingMemoryBound(to: CChar.self)
306 | _ = strncpy(base, path, maxPathLength - 1)
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:309:74: error: value of type 'sockaddr_un' has no member 'sun_path'
307 | }
308 | let addrSize = socklen_t(
309 | MemoryLayout.size(ofValue: addr) - MemoryLayout.size(ofValue: addr.sun_path)
| `- error: value of type 'sockaddr_un' has no member 'sun_path'
310 | + path.utf8.count + 1)
311 |
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:314:9: error: cannot find 'connect' in scope
312 | let connectResult = withUnsafePointer(to: &addr) {
313 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { ptr in
314 | connect(rawFD, ptr, addrSize)
| `- error: cannot find 'connect' in scope
315 | }
316 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:359:50: error: cannot find 'SO_ERROR' in scope
357 | var errorValue: Int32 = 0
358 | var errorLength = socklen_t(MemoryLayout<Int32>.size)
359 | let status = getsockopt(rawFD, SOL_SOCKET, SO_ERROR, &errorValue, &errorLength)
| `- error: cannot find 'SO_ERROR' in scope
360 | guard status == 0 else {
361 | managed.close()
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:385:14: error: cannot find 'SOCK_STREAM' in scope
383 | return Int32(SOCK_STREAM.rawValue)
384 | #else
385 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
386 | #endif
387 | }
/host/spi-builder-workspace/Sources/TailscaleClient/Transport/UnixSocketTransport.swift:407:25: error: cannot find 'Darwin' in scope
405 | let written = Glibc.send(rawFD, currentPointer, bytesRemaining, Int32(MSG_NOSIGNAL))
406 | #else
407 | let written = Darwin.write(rawFD, currentPointer, bytesRemaining)
| `- error: cannot find 'Darwin' in scope
408 | #endif
409 |
BUILD FAILURE 6.2 wasm