Build Information
Failed to build SwiftEmailValidator with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ekscrypto/SwiftEmailValidator.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ekscrypto/SwiftEmailValidator
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/ekscrypto/SwiftEmailValidator.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/ekscrypto/SwiftPublicSuffixList.git
[1/147] Fetching swiftpublicsuffixlist
Fetched https://github.com/ekscrypto/SwiftPublicSuffixList.git from cache (0.28s)
Computing version for https://github.com/ekscrypto/SwiftPublicSuffixList.git
Computed https://github.com/ekscrypto/SwiftPublicSuffixList.git at 1.1.6 (0.45s)
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 resource_bundle_accessor.swift
[6/10] Compiling SwiftPublicSuffixList PublicSuffixRulesRegistry.swift
[7/10] Compiling SwiftPublicSuffixList PublicSuffixMatcher.swift
[8/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)
[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 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]]? {
BUILD FAILURE 6.0 linux