Build Information
Failed to build SwiftEmailValidator, reference 1.0.4 (521eae
), with Swift 6.1 for Linux on 28 Apr 2025 12:15:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ekscrypto/SwiftEmailValidator.git
Reference: 1.0.4
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/SwiftEmailValidator
* tag 1.0.4 -> FETCH_HEAD
HEAD is now at 521eaed Merge pull request #9 from Aloisius/public-mailbox-vars
Cloned https://github.com/ekscrypto/SwiftEmailValidator.git
Revision (git rev-parse @):
521eaed505350164ae5a3ad80457fa8639d0c3a6
SUCCESS checkout https://github.com/ekscrypto/SwiftEmailValidator.git at 1.0.4
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/ekscrypto/SwiftEmailValidator.git
https://github.com/ekscrypto/SwiftEmailValidator.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swiftpublicsuffixlist",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.5",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ekscrypto/SwiftPublicSuffixList.git"
}
],
"manifest_display_name" : "SwiftEmailValidator",
"name" : "SwiftEmailValidator",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "SwiftEmailValidator",
"targets" : [
"SwiftEmailValidator"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftEmailValidatorTests",
"module_type" : "SwiftTarget",
"name" : "SwiftEmailValidatorTests",
"path" : "Tests/SwiftEmailValidatorTests",
"product_dependencies" : [
"SwiftPublicSuffixList"
],
"sources" : [
"EmailSyntaxValidatorTests.swift",
"IPAddressValidatorTests.swift",
"RFC2047CoderTests.swift"
],
"target_dependencies" : [
"SwiftEmailValidator"
],
"type" : "test"
},
{
"c99name" : "SwiftEmailValidator",
"module_type" : "SwiftTarget",
"name" : "SwiftEmailValidator",
"path" : "Sources/SwiftEmailValidator",
"product_dependencies" : [
"SwiftPublicSuffixList"
],
"product_memberships" : [
"SwiftEmailValidator"
],
"sources" : [
"EmailSyntaxValidator.swift",
"IPAddressSyntaxValidator.swift",
"RFC2047Coder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/ekscrypto/SwiftPublicSuffixList.git
[1/147] Fetching swiftpublicsuffixlist
Fetched https://github.com/ekscrypto/SwiftPublicSuffixList.git from cache (0.74s)
Computing version for https://github.com/ekscrypto/SwiftPublicSuffixList.git
Computed https://github.com/ekscrypto/SwiftPublicSuffixList.git at 1.1.6 (1.65s)
Creating working copy for https://github.com/ekscrypto/SwiftPublicSuffixList.git
Working copy of https://github.com/ekscrypto/SwiftPublicSuffixList.git resolved at 1.1.6
Building for debugging...
[0/4] Write sources
[2/4] Copying registry.json
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/10] Compiling SwiftPublicSuffixList PublicSuffixRulesRegistry.swift
[6/10] Compiling SwiftPublicSuffixList resource_bundle_accessor.swift
[7/10] Compiling SwiftPublicSuffixList PublicSuffixOnlineRegistryFetcher.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
19 | public static func fetch(
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
23 | ) async -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
19 | public typealias Logger = (String) -> Void
20 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:22:28: error: @escaping attribute only applies to function types
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
23 | ) async -> [[String]]? {
24 |
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | public static func fetch(
41 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
42 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
43 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
44 | ) -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:73:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | private static func rules(
72 | data: Data,
73 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | logger: (String) -> Void
75 | ) -> [[String]]? {
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/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:53:23: error: cannot find 'URLRequest' in scope
51 | dispatchGroup.enter()
52 | let publicSuffixUrl: URL = URL(string: "https://publicsuffix.org/list/public_suffix_list.dat")!
53 | var request = URLRequest(url: publicSuffixUrl)
| `- error: cannot find 'URLRequest' in scope
54 | if let cachePolicy = cachePolicyOrNil {
55 | request.cachePolicy = cachePolicy
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:64:60: error: argument type '_' expected to be an instance of a class or class-constrained type
62 | return
63 | }
64 | onlineRules = Self.rules(data: data, response: response, logger: logger)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
65 | dispatchGroup.leave()
66 | }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:77:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | ) -> [[String]]? {
76 |
77 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | (200...299).contains(httpResponse.statusCode)
79 | else {
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/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
76 |
77 | guard let httpResponse = response as? HTTPURLResponse,
78 | (200...299).contains(httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
79 | else {
80 | logger("Non-successful response received from server for Public List Suffix")
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Compiling SwiftPublicSuffixList PublicSuffixList.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | final public class PublicSuffixList {
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
19 | public typealias Logger = (String) -> Void
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/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
19 | public typealias Logger = (String) -> Void
20 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | case filePath(String)
35 | case rules([[String]])
36 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
37 | case embedded
38 | }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:87:28: error: @escaping attribute only applies to function types
85 | public static func list(
86 | from source: InitializerSource = .embedded,
87 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
88 | ) async -> PublicSuffixList {
89 | await withCheckedContinuation({ continuation in
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:98:29: error: @escaping attribute only applies to function types
96 | /// - Parameter source: Except for .rules() source, all other sources may block the current thread temporarily and will not be allowed to run on the main thread (for your own good)
97 | init(source: InitializerSource = .embedded,
98 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
99 | ) {
100 | switch source {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:145:56: error: cannot find type 'URLRequest' in scope
143 | /// - Parameter cachePolicy: URLRequest.CachePolicy to use, or nil to use URLSession default
144 | /// - Returns: True if succeeded, false otherwise
145 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
146 | await withCheckedContinuation { continuation in
147 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:158:22: error: cannot find type 'URLRequest' in scope
156 | /// - completion: Closure to call when completed, will receive True if succeeded and False otherwise
157 | public func updateUsingOnlineRegistry(
158 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
159 | completion: @escaping (Bool) -> Void = { _ in }
160 | ) {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
19 | public static func fetch(
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
23 | ) async -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:22:28: error: @escaping attribute only applies to function types
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
23 | ) async -> [[String]]? {
24 |
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | public static func fetch(
41 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
42 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
43 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
44 | ) -> [[String]]? {
[9/10] Emitting module SwiftPublicSuffixList
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | final public class PublicSuffixList {
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
19 | public typealias Logger = (String) -> Void
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/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
19 | public typealias Logger = (String) -> Void
20 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | case filePath(String)
35 | case rules([[String]])
36 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
37 | case embedded
38 | }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:87:28: error: @escaping attribute only applies to function types
85 | public static func list(
86 | from source: InitializerSource = .embedded,
87 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
88 | ) async -> PublicSuffixList {
89 | await withCheckedContinuation({ continuation in
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:98:29: error: @escaping attribute only applies to function types
96 | /// - Parameter source: Except for .rules() source, all other sources may block the current thread temporarily and will not be allowed to run on the main thread (for your own good)
97 | init(source: InitializerSource = .embedded,
98 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
99 | ) {
100 | switch source {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:145:56: error: cannot find type 'URLRequest' in scope
143 | /// - Parameter cachePolicy: URLRequest.CachePolicy to use, or nil to use URLSession default
144 | /// - Returns: True if succeeded, false otherwise
145 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
146 | await withCheckedContinuation { continuation in
147 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:158:22: error: cannot find type 'URLRequest' in scope
156 | /// - completion: Closure to call when completed, will receive True if succeeded and False otherwise
157 | public func updateUsingOnlineRegistry(
158 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
159 | completion: @escaping (Bool) -> Void = { _ in }
160 | ) {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
19 | public static func fetch(
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
23 | ) async -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:22:28: error: @escaping attribute only applies to function types
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
23 | ) async -> [[String]]? {
24 |
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | public static func fetch(
41 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
42 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
43 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
44 | ) -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:73:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | private static func rules(
72 | data: Data,
73 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | logger: (String) -> Void
75 | ) -> [[String]]? {
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
[10/10] Compiling SwiftPublicSuffixList PublicSuffixMatcher.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling SwiftPublicSuffixList PublicSuffixRulesRegistry.swift
[3/7] Compiling SwiftPublicSuffixList PublicSuffixOnlineRegistryFetcher.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
19 | public static func fetch(
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
23 | ) async -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
19 | public typealias Logger = (String) -> Void
20 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:22:28: error: @escaping attribute only applies to function types
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
23 | ) async -> [[String]]? {
24 |
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | public static func fetch(
41 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
42 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
43 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
44 | ) -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:73:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | private static func rules(
72 | data: Data,
73 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | logger: (String) -> Void
75 | ) -> [[String]]? {
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/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:53:23: error: cannot find 'URLRequest' in scope
51 | dispatchGroup.enter()
52 | let publicSuffixUrl: URL = URL(string: "https://publicsuffix.org/list/public_suffix_list.dat")!
53 | var request = URLRequest(url: publicSuffixUrl)
| `- error: cannot find 'URLRequest' in scope
54 | if let cachePolicy = cachePolicyOrNil {
55 | request.cachePolicy = cachePolicy
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:64:60: error: argument type '_' expected to be an instance of a class or class-constrained type
62 | return
63 | }
64 | onlineRules = Self.rules(data: data, response: response, logger: logger)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
65 | dispatchGroup.leave()
66 | }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:77:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | ) -> [[String]]? {
76 |
77 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | (200...299).contains(httpResponse.statusCode)
79 | else {
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/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:78:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
76 |
77 | guard let httpResponse = response as? HTTPURLResponse,
78 | (200...299).contains(httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
79 | else {
80 | logger("Non-successful response received from server for Public List Suffix")
[4/7] Compiling SwiftPublicSuffixList resource_bundle_accessor.swift
[5/7] Compiling SwiftPublicSuffixList PublicSuffixList.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | final public class PublicSuffixList {
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
19 | public typealias Logger = (String) -> Void
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/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
19 | public typealias Logger = (String) -> Void
20 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | case filePath(String)
35 | case rules([[String]])
36 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
37 | case embedded
38 | }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:87:28: error: @escaping attribute only applies to function types
85 | public static func list(
86 | from source: InitializerSource = .embedded,
87 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
88 | ) async -> PublicSuffixList {
89 | await withCheckedContinuation({ continuation in
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:98:29: error: @escaping attribute only applies to function types
96 | /// - Parameter source: Except for .rules() source, all other sources may block the current thread temporarily and will not be allowed to run on the main thread (for your own good)
97 | init(source: InitializerSource = .embedded,
98 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
99 | ) {
100 | switch source {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:145:56: error: cannot find type 'URLRequest' in scope
143 | /// - Parameter cachePolicy: URLRequest.CachePolicy to use, or nil to use URLSession default
144 | /// - Returns: True if succeeded, false otherwise
145 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
146 | await withCheckedContinuation { continuation in
147 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:158:22: error: cannot find type 'URLRequest' in scope
156 | /// - completion: Closure to call when completed, will receive True if succeeded and False otherwise
157 | public func updateUsingOnlineRegistry(
158 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
159 | completion: @escaping (Bool) -> Void = { _ in }
160 | ) {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
19 | public static func fetch(
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
23 | ) async -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:22:28: error: @escaping attribute only applies to function types
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
23 | ) async -> [[String]]? {
24 |
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | public static func fetch(
41 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
42 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
43 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
44 | ) -> [[String]]? {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/7] Emitting module SwiftPublicSuffixList
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:17:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | final public class PublicSuffixList {
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
19 | public typealias Logger = (String) -> Void
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/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:18:43: error: cannot find type 'URLRequest' in scope
16 |
17 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
18 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
19 | public typealias Logger = (String) -> Void
20 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:36:29: error: cannot find type 'URLRequest' in scope
34 | case filePath(String)
35 | case rules([[String]])
36 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
37 | case embedded
38 | }
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:87:28: error: @escaping attribute only applies to function types
85 | public static func list(
86 | from source: InitializerSource = .embedded,
87 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
88 | ) async -> PublicSuffixList {
89 | await withCheckedContinuation({ continuation in
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:98:29: error: @escaping attribute only applies to function types
96 | /// - Parameter source: Except for .rules() source, all other sources may block the current thread temporarily and will not be allowed to run on the main thread (for your own good)
97 | init(source: InitializerSource = .embedded,
98 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
99 | ) {
100 | switch source {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:145:56: error: cannot find type 'URLRequest' in scope
143 | /// - Parameter cachePolicy: URLRequest.CachePolicy to use, or nil to use URLSession default
144 | /// - Returns: True if succeeded, false otherwise
145 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
146 | await withCheckedContinuation { continuation in
147 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:158:22: error: cannot find type 'URLRequest' in scope
156 | /// - completion: Closure to call when completed, will receive True if succeeded and False otherwise
157 | public func updateUsingOnlineRegistry(
158 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
159 | completion: @escaping (Bool) -> Void = { _ in }
160 | ) {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:21:22: error: cannot find type 'URLRequest' in scope
19 | public static func fetch(
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
23 | ) async -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:22:28: error: @escaping attribute only applies to function types
20 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
21 | cachePolicy: URLRequest.CachePolicy?,
22 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
23 | ) async -> [[String]]? {
24 |
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | public static func fetch(
41 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
42 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
43 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
44 | ) -> [[String]]? {
/host/spi-builder-workspace/.build/checkouts/SwiftPublicSuffixList/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:73:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | private static func rules(
72 | data: Data,
73 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | logger: (String) -> Void
75 | ) -> [[String]]? {
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
[7/7] Compiling SwiftPublicSuffixList PublicSuffixMatcher.swift
BUILD FAILURE 6.1 linux