The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftPackageAudit, reference v1.1.0 (65a11a), with Swift 6.3 for Wasm on 16 Jul 2026 07:45:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crleonard/swift-package-audit.git
Reference: v1.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/crleonard/swift-package-audit
 * tag               v1.1.0     -> FETCH_HEAD
HEAD is now at 65a11a9 Document license check configuration
Cloned https://github.com/crleonard/swift-package-audit.git
Revision (git rev-parse @):
65a11a9a9e2daaa054e3051c4d31ee4fa72f42c3
SUCCESS checkout https://github.com/crleonard/swift-package-audit.git at v1.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/crleonard/swift-package-audit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:501b6bfc4ca8a27c305c68f9d5c778f996de82635741ab45476a03ffa6fa26d2
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-argument-parser.git
[1/18024] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.70s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.87s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/13] Write sources
[6/13] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/38] Emitting module SwiftPackageAuditCore
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:170:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private final class URLSessionResultBox: @unchecked Sendable {
169 |     private let lock = NSLock()
170 |     private var result: Result<(Data, URLResponse?), Error>?
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:172:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     private var result: Result<(Data, URLResponse?), Error>?
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         lock.lock()
174 |         self.result = result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:178:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |     }
177 |
178 |     func load() -> Result<(Data, URLResponse?), Error>? {
    |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |         lock.lock()
180 |         defer { lock.unlock() }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[9/41] Compiling ArgumentParserToolInfo ToolInfo.swift
[10/41] Emitting module ArgumentParserToolInfo
[11/42] Wrapping AST for ArgumentParserToolInfo for debugging
[13/89] Compiling ArgumentParser ArgumentVisibility.swift
[14/89] Compiling ArgumentParser CompletionKind.swift
[15/89] Compiling ArgumentParser Errors.swift
[16/89] Compiling ArgumentParser DumpHelpGenerator.swift
[17/89] Compiling ArgumentParser Mutex.swift
[18/89] Compiling ArgumentParser Platform.swift
[19/89] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:89:23: error: cannot find 'Process' in scope
 87 |     public func tags(for repositoryURL: String) throws -> [String] {
 88 |         let normalizedURL = PackageURLNormalizer.normalize(repositoryURL).normalizedURL
 89 |         let process = Process()
    |                       `- error: cannot find 'Process' in scope
 90 |         process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
 91 |         process.arguments = ["git", "ls-remote", "--tags", "--refs", normalizedURL]
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:103:25: error: cannot find 'DispatchSemaphore' in scope
101 |
102 |         try process.run()
103 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
104 |         DispatchQueue.global().async {
105 |             process.waitUntilExit()
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:104:9: error: cannot find 'DispatchQueue' in scope
102 |         try process.run()
103 |         let semaphore = DispatchSemaphore(value: 0)
104 |         DispatchQueue.global().async {
    |         `- error: cannot find 'DispatchQueue' in scope
105 |             process.waitUntilExit()
106 |             semaphore.signal()
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:109:37: error: cannot call value of non-function type 'Date'
107 |         }
108 |
109 |         if semaphore.wait(timeout: .now() + timeoutSeconds) == .timedOut {
    |                                     `- error: cannot call value of non-function type 'Date'
110 |             process.terminate()
111 |             throw VersionCheckError.timedOut(repositoryURL)
[20/89] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:89:23: error: cannot find 'Process' in scope
 87 |     public func tags(for repositoryURL: String) throws -> [String] {
 88 |         let normalizedURL = PackageURLNormalizer.normalize(repositoryURL).normalizedURL
 89 |         let process = Process()
    |                       `- error: cannot find 'Process' in scope
 90 |         process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
 91 |         process.arguments = ["git", "ls-remote", "--tags", "--refs", normalizedURL]
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:103:25: error: cannot find 'DispatchSemaphore' in scope
101 |
102 |         try process.run()
103 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
104 |         DispatchQueue.global().async {
105 |             process.waitUntilExit()
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:104:9: error: cannot find 'DispatchQueue' in scope
102 |         try process.run()
103 |         let semaphore = DispatchSemaphore(value: 0)
104 |         DispatchQueue.global().async {
    |         `- error: cannot find 'DispatchQueue' in scope
105 |             process.waitUntilExit()
106 |             semaphore.signal()
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:109:37: error: cannot call value of non-function type 'Date'
107 |         }
108 |
109 |         if semaphore.wait(timeout: .now() + timeoutSeconds) == .timedOut {
    |                                     `- error: cannot call value of non-function type 'Date'
110 |             process.terminate()
111 |             throw VersionCheckError.timedOut(repositoryURL)
[21/89] Compiling ArgumentParser SwiftExtensions.swift
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:89:23: error: cannot find 'Process' in scope
 87 |     public func tags(for repositoryURL: String) throws -> [String] {
 88 |         let normalizedURL = PackageURLNormalizer.normalize(repositoryURL).normalizedURL
 89 |         let process = Process()
    |                       `- error: cannot find 'Process' in scope
 90 |         process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
 91 |         process.arguments = ["git", "ls-remote", "--tags", "--refs", normalizedURL]
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:103:25: error: cannot find 'DispatchSemaphore' in scope
101 |
102 |         try process.run()
103 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
104 |         DispatchQueue.global().async {
105 |             process.waitUntilExit()
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:104:9: error: cannot find 'DispatchQueue' in scope
102 |         try process.run()
103 |         let semaphore = DispatchSemaphore(value: 0)
104 |         DispatchQueue.global().async {
    |         `- error: cannot find 'DispatchQueue' in scope
105 |             process.waitUntilExit()
106 |             semaphore.signal()
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/VersionChecking/PackageVersionChecker.swift:109:37: error: cannot call value of non-function type 'Date'
107 |         }
108 |
109 |         if semaphore.wait(timeout: .now() + timeoutSeconds) == .timedOut {
    |                                     `- error: cannot call value of non-function type 'Date'
110 |             process.terminate()
111 |             throw VersionCheckError.timedOut(repositoryURL)
[22/89] Compiling ArgumentParser Argument.swift
[23/89] Compiling ArgumentParser ArgumentDiscussion.swift
[24/89] Compiling ArgumentParser ArgumentHelp.swift
[25/89] Compiling ArgumentParser ParsedValues.swift
[26/89] Compiling ArgumentParser ParserError.swift
[27/89] Compiling ArgumentParser SplitArguments.swift
[28/89] Compiling ArgumentParser OptionGroup.swift
[29/89] Compiling ArgumentParser Name.swift
[30/89] Compiling ArgumentParser Parsed.swift
[31/89] Compiling ArgumentParser Flag.swift
[32/89] Compiling ArgumentParser NameSpecification.swift
[33/89] Compiling ArgumentParser Option.swift
[34/89] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/Baseline/DiagnosticBaseline.swift:83:47: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
81 |                 withIntermediateDirectories: true
82 |             )
83 |             try data.write(to: url, options: .atomic)
   |                                               `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
84 |         } catch {
85 |             throw DiagnosticBaselineError.unwritable(path, error.localizedDescription)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:170:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private final class URLSessionResultBox: @unchecked Sendable {
169 |     private let lock = NSLock()
170 |     private var result: Result<(Data, URLResponse?), Error>?
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:172:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     private var result: Result<(Data, URLResponse?), Error>?
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         lock.lock()
174 |         self.result = result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:178:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |     }
177 |
178 |     func load() -> Result<(Data, URLResponse?), Error>? {
    |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |         lock.lock()
180 |         defer { lock.unlock() }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:72:23: error: cannot find 'URLRequest' in scope
 70 |
 71 |     private func fetch(url: URL) throws -> Data {
 72 |         var request = URLRequest(url: url, timeoutInterval: timeoutSeconds)
    |                       `- error: cannot find 'URLRequest' in scope
 73 |         request.setValue("application/vnd.github+json", forHTTPHeaderField: "Accept")
 74 |         request.setValue("swift-package-audit", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:77:25: error: cannot find 'DispatchSemaphore' in scope
 75 |
 76 |         let box = URLSessionResultBox()
 77 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
 78 |         URLSession.shared.dataTask(with: request) { data, response, error in
 79 |             if let error {
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:78:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         let box = URLSessionResultBox()
 77 |         let semaphore = DispatchSemaphore(value: 0)
 78 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             if let error {
 80 |                 box.store(.failure(error))
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:87:37: error: cannot call value of non-function type 'Date'
 85 |         }.resume()
 86 |
 87 |         if semaphore.wait(timeout: .now() + timeoutSeconds) == .timedOut {
    |                                     `- error: cannot call value of non-function type 'Date'
 88 |             throw LicenseCheckError.timedOut(url.absoluteString)
 89 |         }
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 90 |
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
    |                                        `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:93:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
 93 |             !(200..<300).contains(httpResponse.statusCode) {
    |                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
 95 |         }
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:94:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |         if let httpResponse = response as? HTTPURLResponse,
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |         }
 96 |         return data
[35/89] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/Baseline/DiagnosticBaseline.swift:83:47: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
81 |                 withIntermediateDirectories: true
82 |             )
83 |             try data.write(to: url, options: .atomic)
   |                                               `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
84 |         } catch {
85 |             throw DiagnosticBaselineError.unwritable(path, error.localizedDescription)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:170:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private final class URLSessionResultBox: @unchecked Sendable {
169 |     private let lock = NSLock()
170 |     private var result: Result<(Data, URLResponse?), Error>?
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:172:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     private var result: Result<(Data, URLResponse?), Error>?
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         lock.lock()
174 |         self.result = result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:178:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |     }
177 |
178 |     func load() -> Result<(Data, URLResponse?), Error>? {
    |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |         lock.lock()
180 |         defer { lock.unlock() }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:72:23: error: cannot find 'URLRequest' in scope
 70 |
 71 |     private func fetch(url: URL) throws -> Data {
 72 |         var request = URLRequest(url: url, timeoutInterval: timeoutSeconds)
    |                       `- error: cannot find 'URLRequest' in scope
 73 |         request.setValue("application/vnd.github+json", forHTTPHeaderField: "Accept")
 74 |         request.setValue("swift-package-audit", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:77:25: error: cannot find 'DispatchSemaphore' in scope
 75 |
 76 |         let box = URLSessionResultBox()
 77 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
 78 |         URLSession.shared.dataTask(with: request) { data, response, error in
 79 |             if let error {
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:78:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         let box = URLSessionResultBox()
 77 |         let semaphore = DispatchSemaphore(value: 0)
 78 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             if let error {
 80 |                 box.store(.failure(error))
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:87:37: error: cannot call value of non-function type 'Date'
 85 |         }.resume()
 86 |
 87 |         if semaphore.wait(timeout: .now() + timeoutSeconds) == .timedOut {
    |                                     `- error: cannot call value of non-function type 'Date'
 88 |             throw LicenseCheckError.timedOut(url.absoluteString)
 89 |         }
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 90 |
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
    |                                        `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:93:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
 93 |             !(200..<300).contains(httpResponse.statusCode) {
    |                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
 95 |         }
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:94:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |         if let httpResponse = response as? HTTPURLResponse,
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |         }
 96 |         return data
[36/89] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/Baseline/DiagnosticBaseline.swift:83:47: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
81 |                 withIntermediateDirectories: true
82 |             )
83 |             try data.write(to: url, options: .atomic)
   |                                               `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
84 |         } catch {
85 |             throw DiagnosticBaselineError.unwritable(path, error.localizedDescription)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:170:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private final class URLSessionResultBox: @unchecked Sendable {
169 |     private let lock = NSLock()
170 |     private var result: Result<(Data, URLResponse?), Error>?
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:172:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     private var result: Result<(Data, URLResponse?), Error>?
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         lock.lock()
174 |         self.result = result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:178:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |     }
177 |
178 |     func load() -> Result<(Data, URLResponse?), Error>? {
    |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |         lock.lock()
180 |         defer { lock.unlock() }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:72:23: error: cannot find 'URLRequest' in scope
 70 |
 71 |     private func fetch(url: URL) throws -> Data {
 72 |         var request = URLRequest(url: url, timeoutInterval: timeoutSeconds)
    |                       `- error: cannot find 'URLRequest' in scope
 73 |         request.setValue("application/vnd.github+json", forHTTPHeaderField: "Accept")
 74 |         request.setValue("swift-package-audit", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:77:25: error: cannot find 'DispatchSemaphore' in scope
 75 |
 76 |         let box = URLSessionResultBox()
 77 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
 78 |         URLSession.shared.dataTask(with: request) { data, response, error in
 79 |             if let error {
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:78:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         let box = URLSessionResultBox()
 77 |         let semaphore = DispatchSemaphore(value: 0)
 78 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             if let error {
 80 |                 box.store(.failure(error))
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:87:37: error: cannot call value of non-function type 'Date'
 85 |         }.resume()
 86 |
 87 |         if semaphore.wait(timeout: .now() + timeoutSeconds) == .timedOut {
    |                                     `- error: cannot call value of non-function type 'Date'
 88 |             throw LicenseCheckError.timedOut(url.absoluteString)
 89 |         }
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 90 |
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
    |                                        `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:93:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
 93 |             !(200..<300).contains(httpResponse.statusCode) {
    |                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
 95 |         }
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:94:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |         if let httpResponse = response as? HTTPURLResponse,
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |         }
 96 |         return data
[37/89] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/Baseline/DiagnosticBaseline.swift:83:47: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
81 |                 withIntermediateDirectories: true
82 |             )
83 |             try data.write(to: url, options: .atomic)
   |                                               `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
84 |         } catch {
85 |             throw DiagnosticBaselineError.unwritable(path, error.localizedDescription)
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:170:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | private final class URLSessionResultBox: @unchecked Sendable {
169 |     private let lock = NSLock()
170 |     private var result: Result<(Data, URLResponse?), Error>?
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:172:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     private var result: Result<(Data, URLResponse?), Error>?
171 |
172 |     func store(_ result: Result<(Data, URLResponse?), Error>) {
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         lock.lock()
174 |         self.result = result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:178:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |     }
177 |
178 |     func load() -> Result<(Data, URLResponse?), Error>? {
    |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |         lock.lock()
180 |         defer { lock.unlock() }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:72:23: error: cannot find 'URLRequest' in scope
 70 |
 71 |     private func fetch(url: URL) throws -> Data {
 72 |         var request = URLRequest(url: url, timeoutInterval: timeoutSeconds)
    |                       `- error: cannot find 'URLRequest' in scope
 73 |         request.setValue("application/vnd.github+json", forHTTPHeaderField: "Accept")
 74 |         request.setValue("swift-package-audit", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:77:25: error: cannot find 'DispatchSemaphore' in scope
 75 |
 76 |         let box = URLSessionResultBox()
 77 |         let semaphore = DispatchSemaphore(value: 0)
    |                         `- error: cannot find 'DispatchSemaphore' in scope
 78 |         URLSession.shared.dataTask(with: request) { data, response, error in
 79 |             if let error {
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:78:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         let box = URLSessionResultBox()
 77 |         let semaphore = DispatchSemaphore(value: 0)
 78 |         URLSession.shared.dataTask(with: request) { data, response, error in
    |                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             if let error {
 80 |                 box.store(.failure(error))
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:87:37: error: cannot call value of non-function type 'Date'
 85 |         }.resume()
 86 |
 87 |         if semaphore.wait(timeout: .now() + timeoutSeconds) == .timedOut {
    |                                     `- error: cannot call value of non-function type 'Date'
 88 |             throw LicenseCheckError.timedOut(url.absoluteString)
 89 |         }
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 90 |
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
    |                                        `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:93:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 91 |         let (data, response) = try box.load()?.get() ?? (Data(), nil)
 92 |         if let httpResponse = response as? HTTPURLResponse,
 93 |             !(200..<300).contains(httpResponse.statusCode) {
    |                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
 95 |         }
/host/spi-builder-workspace/Sources/SwiftPackageAuditCore/LicenseChecking/PackageLicenseChecker.swift:94:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |         if let httpResponse = response as? HTTPURLResponse,
 93 |             !(200..<300).contains(httpResponse.statusCode) {
 94 |             throw LicenseCheckError.httpFailed(httpResponse.statusCode)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 95 |         }
 96 |         return data
[38/89] Emitting module ArgumentParser
error: cancelled
BUILD FAILURE 6.3 wasm