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 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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/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:             6.0
Building package at path:  $workDir
https://github.com/Frizlab/LinkHeaderParser.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module LinkHeaderParser
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:50: error: cannot find type 'URLRequest' in scope
 70 | public struct LinkHeaderParser {
 71 |
 72 | 	public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
    |                                                  `- error: cannot find type 'URLRequest' in scope
 73 | 		guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
 74 | 		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:72:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 | public struct LinkHeaderParser {
 71 |
 72 | 	public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
    |                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 		guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
 74 | 		let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
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/Sources/LinkHeaderParser/LinkHeaderParser.swift:352:21: warning: static property 'digitCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
350 | 	}
351 |
352 | 	private static let digitCharacterSet = CharacterSet(charactersIn: "0123456789")
    |                     `- warning: static property 'digitCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 22 | SOFTWARE. */
 23 |
 24 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 25 |
 26 |
    :
350 | 	}
351 |
352 | 	private static let digitCharacterSet = CharacterSet(charactersIn: "0123456789")
    |                     |- note: annotate 'digitCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:353:21: warning: static property 'alphaCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
351 |
352 | 	private static let digitCharacterSet = CharacterSet(charactersIn: "0123456789")
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
    |                     |- warning: static property 'alphaCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'alphaCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
355 | 	private static let spaceCharacterSet = CharacterSet(charactersIn: " \t")
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:354:21: warning: static property 'tokenCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
352 | 	private static let digitCharacterSet = CharacterSet(charactersIn: "0123456789")
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
    |                     |- warning: static property 'tokenCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'tokenCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
355 | 	private static let spaceCharacterSet = CharacterSet(charactersIn: " \t")
356 |
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:355:21: warning: static property 'spaceCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
355 | 	private static let spaceCharacterSet = CharacterSet(charactersIn: " \t")
    |                     |- warning: static property 'spaceCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'spaceCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
356 |
357 | 	private static let quotedTextCharacterSet = spaceCharacterSet
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:357:21: warning: static property 'quotedTextCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
355 | 	private static let spaceCharacterSet = CharacterSet(charactersIn: " \t")
356 |
357 | 	private static let quotedTextCharacterSet = spaceCharacterSet
    |                     |- warning: static property 'quotedTextCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'quotedTextCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
358 | 		.union(CharacterSet(arrayLiteral: Unicode.Scalar(0x21)))
359 | 		.union(CharacterSet(charactersIn: Unicode.Scalar(0x23)...Unicode.Scalar(0x5b)))
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:361:21: warning: static property 'quotedPairSecondCharCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
359 | 		.union(CharacterSet(charactersIn: Unicode.Scalar(0x23)...Unicode.Scalar(0x5b)))
360 | 		.union(CharacterSet(charactersIn: Unicode.Scalar(0x5d)...Unicode.Scalar(0x7e)))
361 | 	private static let quotedPairSecondCharCharacterSet = spaceCharacterSet
    |                     |- warning: static property 'quotedPairSecondCharCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'quotedPairSecondCharCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | 		.union(CharacterSet(charactersIn: Unicode.Scalar(0x21)...Unicode.Scalar(0x7e)))
363 |
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:365:21: warning: static property 'mimeCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
363 |
364 | 	/* For RFC 8187. */
365 | 	private static let mimeCharacterSet = CharacterSet(charactersIn: "!#$%&+-^_`{}~").union(digitCharacterSet).union(alphaCharacterSet)
    |                     |- warning: static property 'mimeCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'mimeCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
366 | 	private static let attrCharacterSet = CharacterSet(charactersIn: "!#$&+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
367 |
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:366:21: warning: static property 'attrCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
364 | 	/* For RFC 8187. */
365 | 	private static let mimeCharacterSet = CharacterSet(charactersIn: "!#$%&+-^_`{}~").union(digitCharacterSet).union(alphaCharacterSet)
366 | 	private static let attrCharacterSet = CharacterSet(charactersIn: "!#$&+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
    |                     |- warning: static property 'attrCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'attrCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
367 |
368 | }
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
[4/4] Compiling LinkHeaderParser LinkHeaderParser.swift
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:72:50: error: cannot find type 'URLRequest' in scope
 70 | public struct LinkHeaderParser {
 71 |
 72 | 	public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
    |                                                  `- error: cannot find type 'URLRequest' in scope
 73 | 		guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
 74 | 		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:72:72: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 | public struct LinkHeaderParser {
 71 |
 72 | 	public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
    |                                                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 		guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
 74 | 		let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
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/Sources/LinkHeaderParser/LinkHeaderParser.swift:352:21: warning: static property 'digitCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
350 | 	}
351 |
352 | 	private static let digitCharacterSet = CharacterSet(charactersIn: "0123456789")
    |                     `- warning: static property 'digitCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 22 | SOFTWARE. */
 23 |
 24 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 25 |
 26 |
    :
350 | 	}
351 |
352 | 	private static let digitCharacterSet = CharacterSet(charactersIn: "0123456789")
    |                     |- note: annotate 'digitCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:353:21: warning: static property 'alphaCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
351 |
352 | 	private static let digitCharacterSet = CharacterSet(charactersIn: "0123456789")
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
    |                     |- warning: static property 'alphaCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'alphaCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
355 | 	private static let spaceCharacterSet = CharacterSet(charactersIn: " \t")
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:354:21: warning: static property 'tokenCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
352 | 	private static let digitCharacterSet = CharacterSet(charactersIn: "0123456789")
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
    |                     |- warning: static property 'tokenCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'tokenCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
355 | 	private static let spaceCharacterSet = CharacterSet(charactersIn: " \t")
356 |
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:355:21: warning: static property 'spaceCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
353 | 	private static let alphaCharacterSet = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
354 | 	private static let tokenCharacterSet = CharacterSet(charactersIn: "!#$%&'*+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
355 | 	private static let spaceCharacterSet = CharacterSet(charactersIn: " \t")
    |                     |- warning: static property 'spaceCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'spaceCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
356 |
357 | 	private static let quotedTextCharacterSet = spaceCharacterSet
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:357:21: warning: static property 'quotedTextCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
355 | 	private static let spaceCharacterSet = CharacterSet(charactersIn: " \t")
356 |
357 | 	private static let quotedTextCharacterSet = spaceCharacterSet
    |                     |- warning: static property 'quotedTextCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'quotedTextCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
358 | 		.union(CharacterSet(arrayLiteral: Unicode.Scalar(0x21)))
359 | 		.union(CharacterSet(charactersIn: Unicode.Scalar(0x23)...Unicode.Scalar(0x5b)))
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:361:21: warning: static property 'quotedPairSecondCharCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
359 | 		.union(CharacterSet(charactersIn: Unicode.Scalar(0x23)...Unicode.Scalar(0x5b)))
360 | 		.union(CharacterSet(charactersIn: Unicode.Scalar(0x5d)...Unicode.Scalar(0x7e)))
361 | 	private static let quotedPairSecondCharCharacterSet = spaceCharacterSet
    |                     |- warning: static property 'quotedPairSecondCharCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'quotedPairSecondCharCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
362 | 		.union(CharacterSet(charactersIn: Unicode.Scalar(0x21)...Unicode.Scalar(0x7e)))
363 |
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:365:21: warning: static property 'mimeCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
363 |
364 | 	/* For RFC 8187. */
365 | 	private static let mimeCharacterSet = CharacterSet(charactersIn: "!#$%&+-^_`{}~").union(digitCharacterSet).union(alphaCharacterSet)
    |                     |- warning: static property 'mimeCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'mimeCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
366 | 	private static let attrCharacterSet = CharacterSet(charactersIn: "!#$&+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
367 |
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:366:21: warning: static property 'attrCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
364 | 	/* For RFC 8187. */
365 | 	private static let mimeCharacterSet = CharacterSet(charactersIn: "!#$%&+-^_`{}~").union(digitCharacterSet).union(alphaCharacterSet)
366 | 	private static let attrCharacterSet = CharacterSet(charactersIn: "!#$&+-.^_`|~").union(digitCharacterSet).union(alphaCharacterSet)
    |                     |- warning: static property 'attrCharacterSet' is not concurrency-safe because non-'Sendable' type 'CharacterSet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'attrCharacterSet' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
367 |
368 | }
Foundation.CharacterSet:1:15: note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 1 | public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgebra {
   |               `- note: struct 'CharacterSet' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSCharacterSet
 3 |     public init()
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:73:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 71 |
 72 | 	public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
 73 | 		guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
    |                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 74 | 		let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
 75 | 		return parseLinkHeader(linkHeader, defaultContext: context, contentLanguageHeader: response.allHeaderFields["Content-Language"] as? String, lax: lax)
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:74:118: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 72 | 	public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
 73 | 		guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
 74 | 		let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
    |                                                                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 75 | 		return parseLinkHeader(linkHeader, defaultContext: context, contentLanguageHeader: response.allHeaderFields["Content-Language"] as? String, lax: lax)
 76 | 	}
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:74:162: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 72 | 	public static func parseLinkHeaderFrom(request: URLRequest, response: HTTPURLResponse, lax: Bool = true) -> [LinkValue]? {
 73 | 		guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
 74 | 		let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
    |                                                                                                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 75 | 		return parseLinkHeader(linkHeader, defaultContext: context, contentLanguageHeader: response.allHeaderFields["Content-Language"] as? String, lax: lax)
 76 | 	}
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:75:95: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 73 | 		guard let linkHeader = response.allHeaderFields["Link"] as? String else {return nil}
 74 | 		let context = contextFrom(requestURL: request.url, requestMethod: request.httpMethod, responseStatusCode: response.statusCode, contentLocationHeader: response.allHeaderFields["Content-Location"] as? String)
 75 | 		return parseLinkHeader(linkHeader, defaultContext: context, contentLanguageHeader: response.allHeaderFields["Content-Language"] as? String, lax: lax)
    |                                                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 76 | 	}
 77 |
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:134:13: warning: result of call to 'scanCharacters(from:into:)' is unused
132 | 			if !first || lax {
133 | 				foundComma = scanner.scanString(",", into: nil)
134 | 				scanner.scanCharacters(from: spaceCharacterSet, into: nil)
    |             `- warning: result of call to 'scanCharacters(from:into:)' is unused
135 | 				if lax {
136 | 					/* Let’s consume all the commas we can find. */
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:138:15: warning: result of call to 'scanCharacters(from:into:)' is unused
136 | 					/* Let’s consume all the commas we can find. */
137 | 					while scanner.scanString(",", into: nil) {
138 | 						scanner.scanCharacters(from: spaceCharacterSet, into: nil)
    |               `- warning: result of call to 'scanCharacters(from:into:)' is unused
139 | 					}
140 | 				}
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:149:38: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
147 |
148 | 			guard scanner.scanString("<", into: nil) else {return nil}
149 | 			guard scanner.scanUpTo(">", into: &currentParsedString) else {return nil} /* ">" in a URI-Reference is forbidden (rfc3986). */
    |                                      |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                      `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
150 | 			guard scanner.scanString(">", into: nil) else {return nil}
151 | 			let uriReference = currentParsedString! as String
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:156:13: warning: result of call to 'scanCharacters(from:into:)' is unused
154 | 			finishedWithWhites = scanner.scanCharacters(from: spaceCharacterSet, into: nil)
155 | 			while scanner.scanString(";", into: nil) {
156 | 				scanner.scanCharacters(from: spaceCharacterSet, into: nil)
    |             `- warning: result of call to 'scanCharacters(from:into:)' is unused
157 |
158 | 				guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return 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?>'
156 | 				scanner.scanCharacters(from: spaceCharacterSet, into: nil)
157 |
158 | 				guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
    |                                                                 |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                                                 `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
159 | 				let key = currentParsedString! as String
160 | 				guard !key.isEmpty else {return nil}
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:163:21: warning: result of call to 'scanCharacters(from:into:)' is unused
161 |
162 | 				/* There shouldn’t be any spaces after the key, but we allow it in lax mode (the RFC says there might be “bad” spaces). */
163 | 				if lax {scanner.scanCharacters(from: spaceCharacterSet, into: nil)}
    |                     `- warning: result of call to 'scanCharacters(from:into:)' is unused
164 | 				guard scanner.scanString("=", into: nil) else {
165 | 					/* ABNF says the “=value” part is optional.
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:170:21: warning: result of call to 'scanCharacters(from:into:)' is unused
168 | 					continue
169 | 				}
170 | 				if lax {scanner.scanCharacters(from: spaceCharacterSet, into: nil)}
    |                     `- warning: result of call to 'scanCharacters(from:into:)' is unused
171 |
172 | 				let value: String
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:178:66: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
176 | 					value = v
177 | 				} else {
178 | 					guard scanner.scanCharacters(from: tokenCharacterSet, into: &currentParsedString) else {return nil}
    |                                                                  |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                                                  `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
179 | 					value = currentParsedString! as String
180 | 					guard !value.isEmpty 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?>'
263 | 		scanner.charactersToBeSkipped = CharacterSet()
264 |
265 | 		guard scanner.scanCharacters(from: mimeCharacterSet, into: &currentParsedString) else {return nil}
    |                                                              |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                                              `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
266 | 		let charset = currentParsedString! as String
267 | 		guard charset.uppercased() == "UTF-8" else {return nil} /* We only support UTF-8 */
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:273:34: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
271 | 		/* The language cannot contain a single-quote, so we simply parse the language by reading the string up to the next single-quote.
272 | 		 * In theory we should parse a Language-Tag (rfc5646, section 2.1). */
273 | 		if scanner.scanUpTo("'", into: &currentParsedString) {language = currentParsedString! as String}
    |                                  |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                  `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
274 | 		else                                                 {language = defaultLanguage}
275 | 		guard scanner.scanString("'", into: nil) else {return nil}
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:281:64: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
279 | 		}
280 |
281 | 		guard scanner.scanUpToCharacters(from: CharacterSet(), into: &currentParsedString) else {return nil}
    |                                                                |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                                                `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
282 | 		let percentEncodedValue = currentParsedString! as String
283 | 		/* Note: Theorically, we should validate percentEncodedValue.
/host/spi-builder-workspace/Sources/LinkHeaderParser/LinkHeaderParser.swift:308:65: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
306 | 		/* Let’s try and parse whatever legal characters we can from the quoted string.
307 | 		 * The backslash and double-quote chars are not in the set we parse here, so the scanner will stop at these (among other). */
308 | 		if scanner.scanCharacters(from: quotedTextCharacterSet, into: &currentParsedString) {
    |                                                                 |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                                                 `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
309 | 			parsedString += currentParsedString! as String
310 | 		}
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.