This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SURL with Swift 5.9 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xLet/SURL.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
Cloned https://github.com/0xLet/SURL.git into /host/spi-builder-workspace
Revision (git rev-parse @):
SUCCESS checkout https://github.com/0xLet/SURL.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  /host/spi-builder-workspace
WARNING: No swap limit support
Client: Docker Engine - Community
 Version:    24.0.6
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 2
  Running: 2
  Paused: 0
  Stopped: 0
 Images: 7
 Server Version: 24.0.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
 runc version: v1.1.7-0-g860f061
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
 Kernel Version: 5.4.0-1109-azure
 Operating System: Ubuntu 18.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.36GiB
 Name: lb2
 ID: X5EK:3YD4:A3YZ:ZDGO:QKPP:IMHE:JW4M:LYD2:4EOG:KDF4:WDKJ:TGEE
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Labels:
  provider=azure
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] Compiling SURL String+.swift
[2/4] Emitting module SURL
/host/spi-builder-workspace/Sources/SURL/URL+.swift:14:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var dataTask: URLSessionDataTask {
                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(withHandler handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
                                                         ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:18:92: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(withHandler handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
                                                                                           ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:28:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:25:35: error: cannot find type 'URLRequest' in scope
        forHTTPMethod httpMethod: URLRequest.HTTPRequestMethod? = .GET,
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:26:22: error: cannot find type 'URLRequest' in scope
        cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:43:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:49:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (URLResponse?, Error?) -> Void
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:57:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:63:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:69:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (URLResponse?, Error?) -> Void
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:78:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:89:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (URLResponse?, Error?) -> Void
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:102:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:113:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URLRequest+.swift:10:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
                 ^~~~~~~~~~
[3/4] Compiling SURL URL+.swift
/host/spi-builder-workspace/Sources/SURL/URL+.swift:14:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var dataTask: URLSessionDataTask {
                  ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:18:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(withHandler handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
                                                         ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:18:92: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(withHandler handler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
                                                                                           ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:28:10: error: cannot find type 'URLRequest' in scope
    ) -> URLRequest {
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:25:35: error: cannot find type 'URLRequest' in scope
        forHTTPMethod httpMethod: URLRequest.HTTPRequestMethod? = .GET,
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:26:22: error: cannot find type 'URLRequest' in scope
        cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:43:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:49:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (URLResponse?, Error?) -> Void
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:57:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:63:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:69:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (URLResponse?, Error?) -> Void
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:78:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:89:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (URLResponse?, Error?) -> Void
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SURL/URL+.swift:102:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:113:48: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        withHandler handler: @escaping (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/SURL/URL+.swift:15:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        URLSession.shared.dataTask(with: self)
        ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:19:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        URLSession.shared.dataTask(with: self, completionHandler: handler)
        ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:29:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: self,
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:33:28: error: type of expression is ambiguous without a type annotation
        request.httpMethod = httpMethod?.rawValue
        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:45:36: error: cannot infer contextual base in reference to member 'GET'
        urlRequest(forHTTPMethod: .GET).dataTask(withHandler: handler).resume()
                                  ~^~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:51:36: error: cannot infer contextual base in reference to member 'HEAD'
        urlRequest(forHTTPMethod: .HEAD).dataTask { (data, response, error) in
                                  ~^~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:59:36: error: cannot infer contextual base in reference to member 'CONNECT'
        urlRequest(forHTTPMethod: .CONNECT).dataTask(withHandler: handler).resume()
                                  ~^~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:65:36: error: cannot infer contextual base in reference to member 'OPTIONS'
        urlRequest(forHTTPMethod: .OPTIONS).dataTask(withHandler: handler).resume()
                                  ~^~~~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:71:36: error: cannot infer contextual base in reference to member 'TRACE'
        urlRequest(forHTTPMethod: .TRACE).dataTask { (data, response, error) in
                                  ~^~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:80:50: error: cannot infer contextual base in reference to member 'POST'
        var request = urlRequest(forHTTPMethod: .POST)
                                                ~^~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:91:50: error: cannot infer contextual base in reference to member 'PUT'
        var request = urlRequest(forHTTPMethod: .PUT)
                                                ~^~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:104:50: error: cannot infer contextual base in reference to member 'PATCH'
        var request = urlRequest(forHTTPMethod: .PATCH)
                                                ~^~~~~
/host/spi-builder-workspace/Sources/SURL/URL+.swift:115:50: error: cannot infer contextual base in reference to member 'DELETE'
        var request = urlRequest(forHTTPMethod: .DELETE)
                                                ~^~~~~~
[4/4] Compiling SURL URLRequest+.swift
/host/spi-builder-workspace/Sources/SURL/URLRequest+.swift:10:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
                 ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.