Build Information
Failed to build SwiftPublicSuffixList with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ekscrypto/SwiftPublicSuffixList.git
Reference: 1.1.6
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/ekscrypto/SwiftPublicSuffixList
* tag 1.1.6 -> FETCH_HEAD
HEAD is now at e59868f Update 2022-07-12 19:31
Cloned https://github.com/ekscrypto/SwiftPublicSuffixList.git
Revision (git rev-parse @):
e59868f29739bb82e5f0db5fcb494e834802403b
SUCCESS checkout https://github.com/ekscrypto/SwiftPublicSuffixList.git at 1.1.6
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/ekscrypto/SwiftPublicSuffixList.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/3] Write sources
[1/3] Copying registry.json
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling SwiftPublicSuffixList PublicSuffixRulesRegistry.swift
[5/9] Compiling SwiftPublicSuffixList resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Compiling SwiftPublicSuffixList PublicSuffixMatcher.swift
[7/9] Emitting module SwiftPublicSuffixList
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:36:29: error: cannot find type 'URLRequest' in scope
case onlineRegistry(URLRequest.CachePolicy?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:145:56: error: cannot find type 'URLRequest' in scope
public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:158:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy? = nil,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:73:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[8/9] Compiling SwiftPublicSuffixList PublicSuffixOnlineRegistryFetcher.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:73:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:53:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: publicSuffixUrl)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:64:60: error: argument type '_' expected to be an instance of a class or class-constrained type
onlineRules = Self.rules(data: data, response: response, logger: logger)
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:77:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse,
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:77:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(200...299).contains(httpResponse.statusCode)
~~~~~~~~~~~~ ^~~~~~~~~~
[9/9] Compiling SwiftPublicSuffixList PublicSuffixList.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:36:29: error: cannot find type 'URLRequest' in scope
case onlineRegistry(URLRequest.CachePolicy?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:145:56: error: cannot find type 'URLRequest' in scope
public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:158:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy? = nil,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module SwiftPublicSuffixList
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:36:29: error: cannot find type 'URLRequest' in scope
case onlineRegistry(URLRequest.CachePolicy?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:145:56: error: cannot find type 'URLRequest' in scope
public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:158:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy? = nil,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:73:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[3/4] Compiling SwiftPublicSuffixList PublicSuffixOnlineRegistryFetcher.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:73:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
response: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:53:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: publicSuffixUrl)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:64:60: error: argument type '_' expected to be an instance of a class or class-constrained type
onlineRules = Self.rules(data: data, response: response, logger: logger)
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:77:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
guard let httpResponse = response as? HTTPURLResponse,
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:77:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let httpResponse = response as? HTTPURLResponse,
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(200...299).contains(httpResponse.statusCode)
~~~~~~~~~~~~ ^~~~~~~~~~
[4/4] Compiling SwiftPublicSuffixList PublicSuffixList.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:36:29: error: cannot find type 'URLRequest' in scope
case onlineRegistry(URLRequest.CachePolicy?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:145:56: error: cannot find type 'URLRequest' in scope
public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:158:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy? = nil,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy?,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux