Build Information
Successful build of Relax, reference main (30de4b
), with Swift 6.0 for Linux on 30 Nov 2024 13:48:18 UTC.
Swift 6 data race errors: 23
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tdeleon/Relax.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/tdeleon/Relax
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 30de4b5 Merge pull request #60 from tdeleon/develop
Cloned https://github.com/tdeleon/Relax.git
Revision (git rev-parse @):
30de4b526965f008ab776baac3325a98ce6787f0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/tdeleon/Relax.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/tdeleon/Relax.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/18] Compiling Relax Body.swift
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:54:27: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
52 |
53 | /// Header name `Accept`
54 | public static let accept = Name("Accept")
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' 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
55 | /// Header name `Accept-Language`
56 | public static let acceptLanguage = Name("Accept-Language")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:56:27: warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
54 | public static let accept = Name("Accept")
55 | /// Header name `Accept-Language`
56 | public static let acceptLanguage = Name("Accept-Language")
| |- warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'acceptLanguage' 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
57 | /// Header name `Authorization`
58 | public static let authorization = Name("Authorization")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:58:27: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
56 | public static let acceptLanguage = Name("Accept-Language")
57 | /// Header name `Authorization`
58 | public static let authorization = Name("Authorization")
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' 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
59 | /// Header name `Cache-Control`
60 | public static let cacheControl = Name("Cache-Control")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:60:27: warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
58 | public static let authorization = Name("Authorization")
59 | /// Header name `Cache-Control`
60 | public static let cacheControl = Name("Cache-Control")
| |- warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cacheControl' 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
61 | /// Header name `Content-Type`
62 | public static let contentType = Name("Content-Type")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:62:27: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
60 | public static let cacheControl = Name("Cache-Control")
61 | /// Header name `Content-Type`
62 | public static let contentType = Name("Content-Type")
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' 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
63 | }
64 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:80:27: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
78 |
79 | /// Authorization type `Basic`
80 | public static let basic = AuthorizationType("Basic")
| |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basic' 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
81 | /// Authorization type `Bearer`
82 | public static let bearer = AuthorizationType("Bearer")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:82:27: warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
80 | public static let basic = AuthorizationType("Basic")
81 | /// Authorization type `Bearer`
82 | public static let bearer = AuthorizationType("Bearer")
| |- warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bearer' 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
83 | /// Authorization type `Digest`
84 | public static let digest = AuthorizationType("Digest")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:84:27: warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
82 | public static let bearer = AuthorizationType("Bearer")
83 | /// Authorization type `Digest`
84 | public static let digest = AuthorizationType("Digest")
| |- warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'digest' 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
85 | }
86 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:103:27: warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
88 | ///
89 | /// Additional content types may be added as needed.
90 | public struct ContentType: RawRepresentable, Hashable {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
91 | public var rawValue: String
92 |
:
101 |
102 | /// Content type of `application/json`
103 | public static let applicationJSON = ContentType("application/json")
| |- warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'applicationJSON' 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
104 | /// Content type of `text/plain`
105 | public static let textPlain = ContentType("text/plain")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:105:27: warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
88 | ///
89 | /// Additional content types may be added as needed.
90 | public struct ContentType: RawRepresentable, Hashable {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
91 | public var rawValue: String
92 |
:
103 | public static let applicationJSON = ContentType("application/json")
104 | /// Content type of `text/plain`
105 | public static let textPlain = ContentType("text/plain")
| |- warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'textPlain' 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
106 |
107 | }
[5/18] Compiling Relax Headers.swift
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:54:27: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
52 |
53 | /// Header name `Accept`
54 | public static let accept = Name("Accept")
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' 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
55 | /// Header name `Accept-Language`
56 | public static let acceptLanguage = Name("Accept-Language")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:56:27: warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
54 | public static let accept = Name("Accept")
55 | /// Header name `Accept-Language`
56 | public static let acceptLanguage = Name("Accept-Language")
| |- warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'acceptLanguage' 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
57 | /// Header name `Authorization`
58 | public static let authorization = Name("Authorization")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:58:27: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
56 | public static let acceptLanguage = Name("Accept-Language")
57 | /// Header name `Authorization`
58 | public static let authorization = Name("Authorization")
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' 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
59 | /// Header name `Cache-Control`
60 | public static let cacheControl = Name("Cache-Control")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:60:27: warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
58 | public static let authorization = Name("Authorization")
59 | /// Header name `Cache-Control`
60 | public static let cacheControl = Name("Cache-Control")
| |- warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cacheControl' 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
61 | /// Header name `Content-Type`
62 | public static let contentType = Name("Content-Type")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:62:27: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
60 | public static let cacheControl = Name("Cache-Control")
61 | /// Header name `Content-Type`
62 | public static let contentType = Name("Content-Type")
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' 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
63 | }
64 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:80:27: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
78 |
79 | /// Authorization type `Basic`
80 | public static let basic = AuthorizationType("Basic")
| |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basic' 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
81 | /// Authorization type `Bearer`
82 | public static let bearer = AuthorizationType("Bearer")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:82:27: warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
80 | public static let basic = AuthorizationType("Basic")
81 | /// Authorization type `Bearer`
82 | public static let bearer = AuthorizationType("Bearer")
| |- warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bearer' 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
83 | /// Authorization type `Digest`
84 | public static let digest = AuthorizationType("Digest")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:84:27: warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
82 | public static let bearer = AuthorizationType("Bearer")
83 | /// Authorization type `Digest`
84 | public static let digest = AuthorizationType("Digest")
| |- warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'digest' 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
85 | }
86 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:103:27: warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
88 | ///
89 | /// Additional content types may be added as needed.
90 | public struct ContentType: RawRepresentable, Hashable {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
91 | public var rawValue: String
92 |
:
101 |
102 | /// Content type of `application/json`
103 | public static let applicationJSON = ContentType("application/json")
| |- warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'applicationJSON' 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
104 | /// Content type of `text/plain`
105 | public static let textPlain = ContentType("text/plain")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:105:27: warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
88 | ///
89 | /// Additional content types may be added as needed.
90 | public struct ContentType: RawRepresentable, Hashable {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
91 | public var rawValue: String
92 |
:
103 | public static let applicationJSON = ContentType("application/json")
104 | /// Content type of `text/plain`
105 | public static let textPlain = ContentType("text/plain")
| |- warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'textPlain' 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
106 |
107 | }
[6/18] Emitting module Relax
/host/spi-builder-workspace/Sources/Relax/Errors.swift:27:10: warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
25 |
26 | /// A `URLError` occurred with the request
27 | case urlError(request: Request, error: URLError)
| `- warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
28 | /// A `DecodingError` occurred when decoding data from the request
29 | case decoding(request: Request, error: DecodingError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:29:10: warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
27 | case urlError(request: Request, error: URLError)
28 | /// A `DecodingError` occurred when decoding data from the request
29 | case decoding(request: Request, error: DecodingError)
| `- warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
30 | /// Other error occurred
31 | case other(request: Request, message: String)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:31:10: warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
29 | case decoding(request: Request, error: DecodingError)
30 | /// Other error occurred
31 | case other(request: Request, message: String)
| `- warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
32 | /// HTTP status code error
33 | case httpStatus(request: Request, error: HTTPError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:33:10: warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
31 | case other(request: Request, message: String)
32 | /// HTTP status code error
33 | case httpStatus(request: Request, error: HTTPError)
| `- warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
34 |
35 | public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:84:20: warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
60 | }
61 |
62 | public enum ErrorType {
| `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
63 | /// 400 Bad request
64 | case badRequest
:
82 | public let statusCode: Int
83 | /// The http error type
84 | public let type: ErrorType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
85 | /// The response received
86 | public let response: Request.Response
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: HTTPURLResponse, data: Data)'); this is an error in the Swift 6 language mode
84 | public let type: ErrorType
85 | /// The response received
86 | public let response: Request.Response
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: HTTPURLResponse, data: Data)'); this is an error in the Swift 6 language mode
87 | /// A localized description of the error
88 | public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:54:27: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
52 |
53 | /// Header name `Accept`
54 | public static let accept = Name("Accept")
| |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'accept' 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
55 | /// Header name `Accept-Language`
56 | public static let acceptLanguage = Name("Accept-Language")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:56:27: warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
54 | public static let accept = Name("Accept")
55 | /// Header name `Accept-Language`
56 | public static let acceptLanguage = Name("Accept-Language")
| |- warning: static property 'acceptLanguage' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'acceptLanguage' 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
57 | /// Header name `Authorization`
58 | public static let authorization = Name("Authorization")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:58:27: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
56 | public static let acceptLanguage = Name("Accept-Language")
57 | /// Header name `Authorization`
58 | public static let authorization = Name("Authorization")
| |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'authorization' 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
59 | /// Header name `Cache-Control`
60 | public static let cacheControl = Name("Cache-Control")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:60:27: warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
58 | public static let authorization = Name("Authorization")
59 | /// Header name `Cache-Control`
60 | public static let cacheControl = Name("Cache-Control")
| |- warning: static property 'cacheControl' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cacheControl' 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
61 | /// Header name `Content-Type`
62 | public static let contentType = Name("Content-Type")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:62:27: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
41 | ///
42 | /// Common header names are provided, but additional can be added through an extension.
43 | public struct Name: RawRepresentable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
44 | public var rawValue: String
45 |
:
60 | public static let cacheControl = Name("Cache-Control")
61 | /// Header name `Content-Type`
62 | public static let contentType = Name("Content-Type")
| |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'Header.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'contentType' 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
63 | }
64 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:80:27: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
78 |
79 | /// Authorization type `Basic`
80 | public static let basic = AuthorizationType("Basic")
| |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'basic' 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
81 | /// Authorization type `Bearer`
82 | public static let bearer = AuthorizationType("Bearer")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:82:27: warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
80 | public static let basic = AuthorizationType("Basic")
81 | /// Authorization type `Bearer`
82 | public static let bearer = AuthorizationType("Bearer")
| |- warning: static property 'bearer' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bearer' 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
83 | /// Authorization type `Digest`
84 | public static let digest = AuthorizationType("Digest")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:84:27: warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
66 | ///
67 | /// Common authorization types are provided, but additional can be added through an extension.
68 | public struct AuthorizationType: RawRepresentable, Hashable {
| `- note: consider making struct 'AuthorizationType' conform to the 'Sendable' protocol
69 | public var rawValue: String
70 |
:
82 | public static let bearer = AuthorizationType("Bearer")
83 | /// Authorization type `Digest`
84 | public static let digest = AuthorizationType("Digest")
| |- warning: static property 'digest' is not concurrency-safe because non-'Sendable' type 'Header.AuthorizationType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'digest' 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
85 | }
86 |
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:103:27: warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
88 | ///
89 | /// Additional content types may be added as needed.
90 | public struct ContentType: RawRepresentable, Hashable {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
91 | public var rawValue: String
92 |
:
101 |
102 | /// Content type of `application/json`
103 | public static let applicationJSON = ContentType("application/json")
| |- warning: static property 'applicationJSON' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'applicationJSON' 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
104 | /// Content type of `text/plain`
105 | public static let textPlain = ContentType("text/plain")
/host/spi-builder-workspace/Sources/Relax/Request/Properties/Headers.swift:105:27: warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
88 | ///
89 | /// Additional content types may be added as needed.
90 | public struct ContentType: RawRepresentable, Hashable {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
91 | public var rawValue: String
92 |
:
103 | public static let applicationJSON = ContentType("application/json")
104 | /// Content type of `text/plain`
105 | public static let textPlain = ContentType("text/plain")
| |- warning: static property 'textPlain' is not concurrency-safe because non-'Sendable' type 'Header.ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'textPlain' 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
106 |
107 | }
/host/spi-builder-workspace/Sources/Relax/Request/Properties/RequestProperty.swift:53:27: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
31 | extension Request {
32 | /// A structure that groups properties of a request
33 | public struct Properties: Hashable {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
34 | public var headers: Headers = Headers(value: [:])
35 | public var queryItems: QueryItems = QueryItems(value: [])
:
51 |
52 | /// Provides an instance with no property values set
53 | public static let empty: Properties = .init()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
54 |
55 | internal static func from(_ requestProperty: some RequestProperty) -> Request.Properties {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:271:27: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
269 |
270 | /// `GET` request type
271 | public static let get = HTTPMethod("GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' 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
272 | /// `POST` request type
273 | public static let post = HTTPMethod("POST")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:273:27: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
271 | public static let get = HTTPMethod("GET")
272 | /// `POST` request type
273 | public static let post = HTTPMethod("POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' 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
274 | /// `PUT` request type
275 | public static let put = HTTPMethod("PUT")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:275:27: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
273 | public static let post = HTTPMethod("POST")
274 | /// `PUT` request type
275 | public static let put = HTTPMethod("PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' 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
276 | /// `PATCH` request type
277 | public static let patch = HTTPMethod("PATCH")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:277:27: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
275 | public static let put = HTTPMethod("PUT")
276 | /// `PATCH` request type
277 | public static let patch = HTTPMethod("PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' 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
278 | /// `DELETE` request type
279 | public static let delete = HTTPMethod("DELETE")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:279:27: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
277 | public static let patch = HTTPMethod("PATCH")
278 | /// `DELETE` request type
279 | public static let delete = HTTPMethod("DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' 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
280 | }
281 | }
[7/18] Compiling Relax APIComponent.swift
/host/spi-builder-workspace/Sources/Relax/Request/Properties/RequestProperty.swift:53:27: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
31 | extension Request {
32 | /// A structure that groups properties of a request
33 | public struct Properties: Hashable {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
34 | public var headers: Headers = Headers(value: [:])
35 | public var queryItems: QueryItems = QueryItems(value: [])
:
51 |
52 | /// Provides an instance with no property values set
53 | public static let empty: Properties = .init()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
54 |
55 | internal static func from(_ requestProperty: some RequestProperty) -> Request.Properties {
[8/18] Compiling Relax Endpoint.swift
/host/spi-builder-workspace/Sources/Relax/Request/Properties/RequestProperty.swift:53:27: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
31 | extension Request {
32 | /// A structure that groups properties of a request
33 | public struct Properties: Hashable {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
34 | public var headers: Headers = Headers(value: [:])
35 | public var queryItems: QueryItems = QueryItems(value: [])
:
51 |
52 | /// Provides an instance with no property values set
53 | public static let empty: Properties = .init()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
54 |
55 | internal static func from(_ requestProperty: some RequestProperty) -> Request.Properties {
[9/18] Compiling Relax Service.swift
/host/spi-builder-workspace/Sources/Relax/Errors.swift:27:10: warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
25 |
26 | /// A `URLError` occurred with the request
27 | case urlError(request: Request, error: URLError)
| `- warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
28 | /// A `DecodingError` occurred when decoding data from the request
29 | case decoding(request: Request, error: DecodingError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:29:10: warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
27 | case urlError(request: Request, error: URLError)
28 | /// A `DecodingError` occurred when decoding data from the request
29 | case decoding(request: Request, error: DecodingError)
| `- warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
30 | /// Other error occurred
31 | case other(request: Request, message: String)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:31:10: warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
29 | case decoding(request: Request, error: DecodingError)
30 | /// Other error occurred
31 | case other(request: Request, message: String)
| `- warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
32 | /// HTTP status code error
33 | case httpStatus(request: Request, error: HTTPError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:33:10: warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
31 | case other(request: Request, message: String)
32 | /// HTTP status code error
33 | case httpStatus(request: Request, error: HTTPError)
| `- warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
34 |
35 | public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:84:20: warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
60 | }
61 |
62 | public enum ErrorType {
| `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
63 | /// 400 Bad request
64 | case badRequest
:
82 | public let statusCode: Int
83 | /// The http error type
84 | public let type: ErrorType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
85 | /// The response received
86 | public let response: Request.Response
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: HTTPURLResponse, data: Data)'); this is an error in the Swift 6 language mode
84 | public let type: ErrorType
85 | /// The response received
86 | public let response: Request.Response
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: HTTPURLResponse, data: Data)'); this is an error in the Swift 6 language mode
87 | /// A localized description of the error
88 | public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
[10/18] Compiling Relax Errors.swift
/host/spi-builder-workspace/Sources/Relax/Errors.swift:27:10: warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
25 |
26 | /// A `URLError` occurred with the request
27 | case urlError(request: Request, error: URLError)
| `- warning: associated value 'urlError(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
28 | /// A `DecodingError` occurred when decoding data from the request
29 | case decoding(request: Request, error: DecodingError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:29:10: warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
27 | case urlError(request: Request, error: URLError)
28 | /// A `DecodingError` occurred when decoding data from the request
29 | case decoding(request: Request, error: DecodingError)
| `- warning: associated value 'decoding(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
30 | /// Other error occurred
31 | case other(request: Request, message: String)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:31:10: warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
29 | case decoding(request: Request, error: DecodingError)
30 | /// Other error occurred
31 | case other(request: Request, message: String)
| `- warning: associated value 'other(request:message:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
32 | /// HTTP status code error
33 | case httpStatus(request: Request, error: HTTPError)
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:33:10: warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
31 | case other(request: Request, message: String)
32 | /// HTTP status code error
33 | case httpStatus(request: Request, error: HTTPError)
| `- warning: associated value 'httpStatus(request:error:)' of 'Sendable'-conforming enum 'RequestError' has non-sendable type 'Request'; this is an error in the Swift 6 language mode
34 |
35 | public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
/host/spi-builder-workspace/Sources/Relax/Errors.swift:84:20: warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
60 | }
61 |
62 | public enum ErrorType {
| `- note: consider making enum 'ErrorType' conform to the 'Sendable' protocol
63 | /// 400 Bad request
64 | case badRequest
:
82 | public let statusCode: Int
83 | /// The http error type
84 | public let type: ErrorType
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'RequestError.HTTPError.ErrorType'; this is an error in the Swift 6 language mode
85 | /// The response received
86 | public let response: Request.Response
/host/spi-builder-workspace/Sources/Relax/Errors.swift:86:20: warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: HTTPURLResponse, data: Data)'); this is an error in the Swift 6 language mode
84 | public let type: ErrorType
85 | /// The response received
86 | public let response: Request.Response
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'Request.Response' (aka '(request: Request, urlResponse: HTTPURLResponse, data: Data)'); this is an error in the Swift 6 language mode
87 | /// A localized description of the error
88 | public var localizedDescription: String {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
[11/19] Compiling Relax Request+Modifiers.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:55:28: warning: capture of 'completion' with non-sendable type 'Request.Completion' (aka '(Result<(request: Request, urlResponse: HTTPURLResponse, data: Data), RequestError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | // Check for URLErrors
54 | if let urlError = error as? URLError {
55 | return completion(.failure(.urlError(request: self, error: urlError)))
| |- warning: capture of 'completion' with non-sendable type 'Request.Completion' (aka '(Result<(request: Request, urlResponse: HTTPURLResponse, data: Data), RequestError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | }
57 | // Any other error
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:55:67: warning: capture of 'self' with non-sendable type 'Request' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | // Check for URLErrors
54 | if let urlError = error as? URLError {
55 | return completion(.failure(.urlError(request: self, error: urlError)))
| `- warning: capture of 'self' with non-sendable type 'Request' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | }
57 | // Any other error
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
[12/19] Compiling Relax Request+Send.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:55:28: warning: capture of 'completion' with non-sendable type 'Request.Completion' (aka '(Result<(request: Request, urlResponse: HTTPURLResponse, data: Data), RequestError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | // Check for URLErrors
54 | if let urlError = error as? URLError {
55 | return completion(.failure(.urlError(request: self, error: urlError)))
| |- warning: capture of 'completion' with non-sendable type 'Request.Completion' (aka '(Result<(request: Request, urlResponse: HTTPURLResponse, data: Data), RequestError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
56 | }
57 | // Any other error
/host/spi-builder-workspace/Sources/Relax/Request/Request+Send.swift:55:67: warning: capture of 'self' with non-sendable type 'Request' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | // Check for URLErrors
54 | if let urlError = error as? URLError {
55 | return completion(.failure(.urlError(request: self, error: urlError)))
| `- warning: capture of 'self' with non-sendable type 'Request' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | }
57 | // Any other error
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:51:15: note: consider making struct 'Request' conform to the 'Sendable' protocol
49 | /// <doc:SendingRequestsPublisher>, or <doc:SendingRequestsHandler>.
50 | ///
51 | public struct Request {
| `- note: consider making struct 'Request' conform to the 'Sendable' protocol
52 | /// The HTTP method of the request
53 | public var httpMethod: HTTPMethod
[13/19] Compiling Relax Request+SendAsync.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:53:13: warning: capture of 'onCancel' with non-sendable type '() -> ()?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 | }
52 | } onCancel: {
53 | onCancel()
| |- warning: capture of 'onCancel' with non-sendable type '() -> ()?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
54 | }
55 | }
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:46:42: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
44 | switch result {
45 | case .success(let success):
46 | continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
47 | case .failure(let failure):
48 | continuation.resume(throwing: failure)
[14/19] Compiling Relax Request+SendPublisher.swift
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:53:13: warning: capture of 'onCancel' with non-sendable type '() -> ()?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 | }
52 | } onCancel: {
53 | onCancel()
| |- warning: capture of 'onCancel' with non-sendable type '() -> ()?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
54 | }
55 | }
/host/spi-builder-workspace/Sources/Relax/Request/Request+SendAsync.swift:46:42: warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
44 | switch result {
45 | case .success(let success):
46 | continuation.resume(returning: success)
| |- warning: sending 'success' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'success' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
47 | case .failure(let failure):
48 | continuation.resume(throwing: failure)
[15/19] Compiling Relax PathComponents.swift
[16/19] Compiling Relax QueryItems.swift
[17/19] Compiling Relax RequestProperty.swift
/host/spi-builder-workspace/Sources/Relax/Request/Properties/RequestProperty.swift:53:27: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
31 | extension Request {
32 | /// A structure that groups properties of a request
33 | public struct Properties: Hashable {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
34 | public var headers: Headers = Headers(value: [:])
35 | public var queryItems: QueryItems = QueryItems(value: [])
:
51 |
52 | /// Provides an instance with no property values set
53 | public static let empty: Properties = .init()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
54 |
55 | internal static func from(_ requestProperty: some RequestProperty) -> Request.Properties {
[18/19] Compiling Relax Request+Configuration.swift
/host/spi-builder-workspace/Sources/Relax/Request/Properties/RequestProperty.swift:53:27: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
31 | extension Request {
32 | /// A structure that groups properties of a request
33 | public struct Properties: Hashable {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
34 | public var headers: Headers = Headers(value: [:])
35 | public var queryItems: QueryItems = QueryItems(value: [])
:
51 |
52 | /// Provides an instance with no property values set
53 | public static let empty: Properties = .init()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
54 |
55 | internal static func from(_ requestProperty: some RequestProperty) -> Request.Properties {
[19/19] Compiling Relax Request.swift
/host/spi-builder-workspace/Sources/Relax/Request/Properties/RequestProperty.swift:53:27: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
31 | extension Request {
32 | /// A structure that groups properties of a request
33 | public struct Properties: Hashable {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
34 | public var headers: Headers = Headers(value: [:])
35 | public var queryItems: QueryItems = QueryItems(value: [])
:
51 |
52 | /// Provides an instance with no property values set
53 | public static let empty: Properties = .init()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Request.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
54 |
55 | internal static func from(_ requestProperty: some RequestProperty) -> Request.Properties {
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:271:27: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
269 |
270 | /// `GET` request type
271 | public static let get = HTTPMethod("GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' 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
272 | /// `POST` request type
273 | public static let post = HTTPMethod("POST")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:273:27: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
271 | public static let get = HTTPMethod("GET")
272 | /// `POST` request type
273 | public static let post = HTTPMethod("POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' 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
274 | /// `PUT` request type
275 | public static let put = HTTPMethod("PUT")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:275:27: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
273 | public static let post = HTTPMethod("POST")
274 | /// `PUT` request type
275 | public static let put = HTTPMethod("PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' 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
276 | /// `PATCH` request type
277 | public static let patch = HTTPMethod("PATCH")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:277:27: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
275 | public static let put = HTTPMethod("PUT")
276 | /// `PATCH` request type
277 | public static let patch = HTTPMethod("PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' 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
278 | /// `DELETE` request type
279 | public static let delete = HTTPMethod("DELETE")
/host/spi-builder-workspace/Sources/Relax/Request/Request.swift:279:27: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
257 | ///
258 | /// The main request types are provided (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`); additional ones can be added as static properties in an extension.
259 | public struct HTTPMethod: RawRepresentable, Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
260 | public var rawValue: String
261 |
:
277 | public static let patch = HTTPMethod("PATCH")
278 | /// `DELETE` request type
279 | public static let delete = HTTPMethod("DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'Request.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' 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
280 | }
281 | }
[21/25] Emitting module URLMock
/host/spi-builder-workspace/Sources/URLMock/URLMock.swift:21:23: warning: static property 'response' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | /// Set this property to provide the response you want to be returned to `URLSession` clients using ``URLMock``.
20 | /// - Important: Setting this property will apply to all instances of `URLSession` using ``URLMock``.
21 | public static var response: MockResponse = .mock()
| |- warning: static property 'response' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'response' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'response' 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
22 |
23 | override public class func canInit(with request: URLRequest) -> Bool { true }
[22/25] Compiling URLMock URLMock.swift
/host/spi-builder-workspace/Sources/URLMock/URLMock.swift:21:23: warning: static property 'response' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | /// Set this property to provide the response you want to be returned to `URLSession` clients using ``URLMock``.
20 | /// - Important: Setting this property will apply to all instances of `URLSession` using ``URLMock``.
21 | public static var response: MockResponse = .mock()
| |- warning: static property 'response' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'response' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'response' 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
22 |
23 | override public class func canInit(with request: URLRequest) -> Bool { true }
[23/25] Compiling URLMock Response.swift
[24/25] Compiling URLMock URLRequestValidation.swift
[25/25] Compiling URLMock MockResponse.swift
Build complete! (12.22s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Relax",
"name" : "Relax",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Relax",
"targets" : [
"Relax"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "URLMock",
"targets" : [
"URLMock"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "URLMock",
"module_type" : "SwiftTarget",
"name" : "URLMock",
"path" : "Sources/URLMock",
"product_memberships" : [
"URLMock"
],
"sources" : [
"MockResponse/MockResponse.swift",
"MockResponse/Response.swift",
"URLMock.swift",
"URLRequestValidation.swift"
],
"target_dependencies" : [
"Relax"
],
"type" : "library"
},
{
"c99name" : "RelaxTests",
"module_type" : "SwiftTarget",
"name" : "RelaxTests",
"path" : "Tests/RelaxTests",
"sources" : [
"AsyncTests/AsyncCancellationTests.swift",
"AsyncTests/AsyncCodableTests.swift",
"AsyncTests/AsyncErrorTests.swift",
"AsyncTests/AsyncRequestTests.swift",
"CombineTests/CombineCodableTests.swift",
"CombineTests/CombineErrorTests.swift",
"CombineTests/CombineRequestTests.swift",
"CompletionTests/CompletionErrorTests.swift",
"CompletionTests/CompletionRequestTests.swift",
"Errors/HTTPErrorTests.swift",
"Errors/RequestErrorTests.swift",
"Helpers/ErrorTest.swift",
"Helpers/MockError.swift",
"Helpers/MockServices.swift",
"Helpers/Service+Testing.swift",
"Request/Properties/BodyTests.swift",
"Request/Properties/ConfigurationTests.swift",
"Request/Properties/HeaderTests.swift",
"Request/Properties/HeaderTypeTests.swift",
"Request/Properties/PathComponentsTests.swift",
"Request/Properties/QueryItemTests.swift",
"Request/Properties/RequestPropertiesBuilderTests.swift",
"Request/Properties/RequestPropertiesTests.swift",
"Request/RequestModifiersTests.swift",
"Request/RequestTests.swift",
"Request/ServiceTests.swift"
],
"target_dependencies" : [
"Relax",
"URLMock"
],
"type" : "test"
},
{
"c99name" : "Relax",
"module_type" : "SwiftTarget",
"name" : "Relax",
"path" : "Sources/Relax",
"product_memberships" : [
"Relax",
"URLMock"
],
"sources" : [
"API Structure/APIComponent.swift",
"API Structure/Endpoint.swift",
"API Structure/Service.swift",
"Errors.swift",
"Request/Properties/Body.swift",
"Request/Properties/Headers.swift",
"Request/Properties/PathComponents.swift",
"Request/Properties/QueryItems.swift",
"Request/Properties/RequestProperty.swift",
"Request/Request+Configuration.swift",
"Request/Request+Modifiers.swift",
"Request/Request+Send.swift",
"Request/Request+SendAsync.swift",
"Request/Request+SendPublisher.swift",
"Request/Request.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.