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 LinkHeaderParser with Swift 5.8 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.28.9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Frizlab/LinkHeaderParser.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/Frizlab/LinkHeaderParser
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1c58f73 Dummy comment fixes
Cloned https://github.com/Frizlab/LinkHeaderParser.git
Revision (git rev-parse @):
1c58f73654b70ed1582cdbaca4e39e7256cc6254
SUCCESS checkout https://github.com/Frizlab/LinkHeaderParser.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $workDir
https://github.com/Frizlab/LinkHeaderParser.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module LinkHeaderParser
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:50: error: cannot find type 'URLRequest' in scope
        public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
                                                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[2/2] Compiling LinkHeaderParser LinkHeaderParser.swift
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:50: error: cannot find type 'URLRequest' in scope
        public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
                                                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:73:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
                                       ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:74:118: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
                                                                                                                          ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:74:162: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
                                                                                                                                                                      ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:75:95: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                return parseLinkHeader(linkHeader, defaultContext: context, contentLanguageHeader: response.allHeaderFields["Content-Language"] as? String, lax: lax)
                                                                                                   ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:134:13: warning: result of call to 'scanCharacters(from:into:)' is unused
                                scanner.scanCharacters(from: spaceCharacterSet, into: nil)
                                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:138:15: warning: result of call to 'scanCharacters(from:into:)' is unused
                                                scanner.scanCharacters(from: spaceCharacterSet, into: nil)
                                                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:149:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                        guard scanner.scanUpTo(">", into: &currentParsedString) else {return nil} /* ">" in a URI-Reference is forbidden (rfc3986). */
                                                          ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:149:38: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                        guard scanner.scanUpTo(">", into: &currentParsedString) else {return nil} /* ">" in a URI-Reference is forbidden (rfc3986). */
                                                          ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:156:13: warning: result of call to 'scanCharacters(from:into:)' is unused
                                scanner.scanCharacters(from: spaceCharacterSet, into: nil)
                                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:158:65: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                                guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
                                                                                            ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:158:65: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                                guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
                                                                                            ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:163:21: warning: result of call to 'scanCharacters(from:into:)' is unused
                                if lax {scanner.scanCharacters(from: spaceCharacterSet, into: nil)}
                                                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:170:21: warning: result of call to 'scanCharacters(from:into:)' is unused
                                if lax {scanner.scanCharacters(from: spaceCharacterSet, into: nil)}
                                                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:178:66: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                                        guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
                                                                                                    ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:178:66: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                                        guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
                                                                                                    ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:265:62: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                guard scanner.scanCharacters(from: mimeCharacterSet, into: &currentParsedString) else {return nil}
                                                                           ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:265:62: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                guard scanner.scanCharacters(from: mimeCharacterSet, into: &currentParsedString) else {return nil}
                                                                           ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:273:34: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                if scanner.scanUpTo("'", into: &currentParsedString) {language = currentParsedString! as String}
                                               ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:273:34: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                if scanner.scanUpTo("'", into: &currentParsedString) {language = currentParsedString! as String}
                                               ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:281:64: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                guard scanner.scanUpToCharacters(from: CharacterSet(), into: &currentParsedString) else {return nil}
                                                                             ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:281:64: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                guard scanner.scanUpToCharacters(from: CharacterSet(), into: &currentParsedString) else {return nil}
                                                                             ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:308:65: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                if scanner.scanCharacters(from: quotedTextCharacterSet, into: &currentParsedString) {
                                                                              ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:308:65: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                if scanner.scanCharacters(from: quotedTextCharacterSet, into: &currentParsedString) {
                                                                              ^
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module LinkHeaderParser
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:50: error: cannot find type 'URLRequest' in scope
        public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
                                                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[2/2] Compiling LinkHeaderParser LinkHeaderParser.swift
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:50: error: cannot find type 'URLRequest' in scope
        public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
                                                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:73:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
                                       ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:74:118: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
                                                                                                                          ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:74:162: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
                                                                                                                                                                      ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:75:95: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
                return parseLinkHeader(linkHeader, defaultContext: context, contentLanguageHeader: response.allHeaderFields["Content-Language"] as? String, lax: lax)
                                                                                                   ~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:134:13: warning: result of call to 'scanCharacters(from:into:)' is unused
                                scanner.scanCharacters(from: spaceCharacterSet, into: nil)
                                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:138:15: warning: result of call to 'scanCharacters(from:into:)' is unused
                                                scanner.scanCharacters(from: spaceCharacterSet, into: nil)
                                                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:149:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                        guard scanner.scanUpTo(">", into: &currentParsedString) else {return nil} /* ">" in a URI-Reference is forbidden (rfc3986). */
                                                          ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:149:38: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                        guard scanner.scanUpTo(">", into: &currentParsedString) else {return nil} /* ">" in a URI-Reference is forbidden (rfc3986). */
                                                          ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:156:13: warning: result of call to 'scanCharacters(from:into:)' is unused
                                scanner.scanCharacters(from: spaceCharacterSet, into: nil)
                                        ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:158:65: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                                guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
                                                                                            ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:158:65: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                                guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
                                                                                            ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:163:21: warning: result of call to 'scanCharacters(from:into:)' is unused
                                if lax {scanner.scanCharacters(from: spaceCharacterSet, into: nil)}
                                                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:170:21: warning: result of call to 'scanCharacters(from:into:)' is unused
                                if lax {scanner.scanCharacters(from: spaceCharacterSet, into: nil)}
                                                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:178:66: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                                        guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
                                                                                                    ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:178:66: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                                        guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
                                                                                                    ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:265:62: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                guard scanner.scanCharacters(from: mimeCharacterSet, into: &currentParsedString) else {return nil}
                                                                           ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:265:62: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                guard scanner.scanCharacters(from: mimeCharacterSet, into: &currentParsedString) else {return nil}
                                                                           ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:273:34: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                if scanner.scanUpTo("'", into: &currentParsedString) {language = currentParsedString! as String}
                                               ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:273:34: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                if scanner.scanUpTo("'", into: &currentParsedString) {language = currentParsedString! as String}
                                               ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:281:64: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                guard scanner.scanUpToCharacters(from: CharacterSet(), into: &currentParsedString) else {return nil}
                                                                             ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:281:64: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                guard scanner.scanUpToCharacters(from: CharacterSet(), into: &currentParsedString) else {return nil}
                                                                             ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:308:65: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
                if scanner.scanCharacters(from: quotedTextCharacterSet, into: &currentParsedString) {
                                                                              ^
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:308:65: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
                if scanner.scanCharacters(from: quotedTextCharacterSet, into: &currentParsedString) {
                                                                              ^
BUILD FAILURE 5.8 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.