Build Information
Successful build of swift-http-types-htmx, reference main (b14716
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 19:40:35 UTC.
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alephao/swift-http-types-htmx.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alephao/swift-http-types-htmx
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b14716d ci: fix swift 6 docker img ref
Cloned https://github.com/alephao/swift-http-types-htmx.git
Revision (git rev-parse @):
b14716db91e65f6ecb410ecdb6a847e5699ece77
SUCCESS checkout https://github.com/alephao/swift-http-types-htmx.git at main
Fetching https://github.com/apple/swift-http-types.git
[7/671] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.88s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.3.0 (2.85s)
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.3.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-http-types-htmx",
"name": "swift-http-types-htmx",
"url": "https://github.com/alephao/swift-http-types-htmx.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-http-types-htmx",
"dependencies": [
{
"identity": "swift-http-types",
"name": "swift-http-types",
"url": "https://github.com/apple/swift-http-types.git",
"version": "1.3.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-http-types",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/alephao/swift-http-types-htmx.git
[1/163] Fetching swift-http-types-htmx
Fetched https://github.com/alephao/swift-http-types-htmx.git from cache (1.02s)
Fetching https://github.com/apple/swift-http-types.git from cache
Fetched https://github.com/apple/swift-http-types.git from cache (0.49s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.3.1 (0.52s)
Creating working copy for https://github.com/alephao/swift-http-types-htmx.git
Working copy of https://github.com/alephao/swift-http-types-htmx.git resolved at main (b14716d)
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.3.1
warning: '.resolve-product-dependencies': dependency 'swift-http-types-htmx' is not used by any target
Found 1 product dependencies
- swift-http-types
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/alephao/swift-http-types-htmx.git
{
"dependencies" : [
{
"identity" : "swift-http-types",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-http-types.git"
}
],
"manifest_display_name" : "swift-http-types-htmx",
"name" : "swift-http-types-htmx",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HTTPTypesHtmx",
"targets" : [
"HTTPTypesHtmx"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HTTPTypesHtmxTests",
"module_type" : "SwiftTarget",
"name" : "HTTPTypesHtmxTests",
"path" : "Tests/HTTPTypesHtmxTests",
"product_dependencies" : [
"HTTPTypes"
],
"sources" : [
"HtmxRequestHeadersTests.swift",
"HtmxResponseHeadersTests.swift",
"HxTriggerHeaderTests.swift"
],
"target_dependencies" : [
"HTTPTypesHtmx"
],
"type" : "test"
},
{
"c99name" : "HTTPTypesHtmx",
"module_type" : "SwiftTarget",
"name" : "HTTPTypesHtmx",
"path" : "Sources/HTTPTypesHtmx",
"product_dependencies" : [
"HTTPTypes"
],
"product_memberships" : [
"HTTPTypesHtmx"
],
"sources" : [
"HtmxRequestHeaders.swift",
"HtmxResponseHeaders.swift",
"HxTriggerHeader.swift",
"Values/HxPushUrl.swift",
"Values/HxReplaceUrl.swift",
"Values/HxSwap.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/11] Compiling HTTPTypes ISOLatin1String.swift
[5/11] Compiling HTTPTypes HTTPRequest.swift
[6/11] Compiling HTTPTypes HTTPParsedFields.swift
[7/11] Compiling HTTPTypes HTTPFieldName.swift
[8/11] Compiling HTTPTypes HTTPResponse.swift
[9/11] Emitting module HTTPTypes
[10/11] Compiling HTTPTypes HTTPFields.swift
[11/11] Compiling HTTPTypes HTTPField.swift
[12/18] Compiling HTTPTypesHtmx HxSwap.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:18:21: warning: static property 'innerHTML' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
16 | extension HxSwap {
17 | /// Replace the inner html of the target element
18 | public static let innerHTML = HxSwap("innerHTML")
| |- warning: static property 'innerHTML' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'innerHTML' 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
19 |
20 | /// Replace the entire target element with the response
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:21:21: warning: static property 'outerHTML' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
19 |
20 | /// Replace the entire target element with the response
21 | public static let outerHTML = HxSwap("outerHTML")
| |- warning: static property 'outerHTML' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'outerHTML' 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 | /// Insert the response before the target element
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:24:21: warning: static property 'beforebegin' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
22 |
23 | /// Insert the response before the target element
24 | public static let beforebegin = HxSwap("beforebegin")
| |- warning: static property 'beforebegin' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'beforebegin' 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
25 |
26 | /// Insert the response before the first child of the target element
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:27:21: warning: static property 'afterbegin' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
25 |
26 | /// Insert the response before the first child of the target element
27 | public static let afterbegin = HxSwap("afterbegin")
| |- warning: static property 'afterbegin' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'afterbegin' 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
28 |
29 | /// Insert the response after the last child of the target element
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:30:21: warning: static property 'beforeend' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
28 |
29 | /// Insert the response after the last child of the target element
30 | public static let beforeend = HxSwap("beforeend")
| |- warning: static property 'beforeend' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'beforeend' 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
31 |
32 | /// Insert the response after the target element
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:33:21: warning: static property 'afterend' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
31 |
32 | /// Insert the response after the target element
33 | public static let afterend = HxSwap("afterend")
| |- warning: static property 'afterend' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'afterend' 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
34 |
35 | /// Deletes the target element regardless of the response
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:36:21: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
34 |
35 | /// Deletes the target element regardless of the response
36 | public static let delete = HxSwap("delete")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HxSwap' 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
37 |
38 | /// Does not append content from response (out of band items will still be processed).
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:39:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
37 |
38 | /// Does not append content from response (out of band items will still be processed).
39 | public static let none = HxSwap("none")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
40 | }
41 |
[13/18] Compiling HTTPTypesHtmx HxReplaceUrl.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxReplaceUrl.swift:12:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'HxReplaceUrl' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Possible values for the HX-Replace-URL header
2 | public struct HxReplaceUrl: Equatable, CustomStringConvertible {
| `- note: consider making struct 'HxReplaceUrl' conform to the 'Sendable' protocol
3 | public let description: String
4 |
:
10 | extension HxReplaceUrl {
11 | /// false, prevents the browser’s current URL from being updated.
12 | public static let `false` = HxReplaceUrl("false")
| |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'HxReplaceUrl' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'false' 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
13 |
14 | /// A URL to replace the current URL in the location bar. This may be relative or absolute, as per [`history.replaceState()`](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState), but must have the same origin as the current URL.
[14/18] Compiling HTTPTypesHtmx HxTriggerHeader.swift
[15/18] Compiling HTTPTypesHtmx HxPushUrl.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxPushUrl.swift:12:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'HxPushUrl' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Possible values for the HX-Push-URL header
2 | public struct HxPushUrl: Equatable, CustomStringConvertible {
| `- note: consider making struct 'HxPushUrl' conform to the 'Sendable' protocol
3 | public let description: String
4 |
:
10 | extension HxPushUrl {
11 | /// prevents the browser’s history from being updated.
12 | public static let `false` = HxPushUrl("false")
| |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'HxPushUrl' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'false' 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
13 |
14 | /// A URL to be pushed into the location bar. This may be relative or absolute, as per [`history.pushState()`](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState).
[16/18] Compiling HTTPTypesHtmx HtmxRequestHeaders.swift
[17/18] Emitting module HTTPTypesHtmx
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxPushUrl.swift:12:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'HxPushUrl' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Possible values for the HX-Push-URL header
2 | public struct HxPushUrl: Equatable, CustomStringConvertible {
| `- note: consider making struct 'HxPushUrl' conform to the 'Sendable' protocol
3 | public let description: String
4 |
:
10 | extension HxPushUrl {
11 | /// prevents the browser’s history from being updated.
12 | public static let `false` = HxPushUrl("false")
| |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'HxPushUrl' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'false' 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
13 |
14 | /// A URL to be pushed into the location bar. This may be relative or absolute, as per [`history.pushState()`](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState).
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxReplaceUrl.swift:12:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'HxReplaceUrl' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// Possible values for the HX-Replace-URL header
2 | public struct HxReplaceUrl: Equatable, CustomStringConvertible {
| `- note: consider making struct 'HxReplaceUrl' conform to the 'Sendable' protocol
3 | public let description: String
4 |
:
10 | extension HxReplaceUrl {
11 | /// false, prevents the browser’s current URL from being updated.
12 | public static let `false` = HxReplaceUrl("false")
| |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'HxReplaceUrl' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'false' 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
13 |
14 | /// A URL to replace the current URL in the location bar. This may be relative or absolute, as per [`history.replaceState()`](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState), but must have the same origin as the current URL.
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:18:21: warning: static property 'innerHTML' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
16 | extension HxSwap {
17 | /// Replace the inner html of the target element
18 | public static let innerHTML = HxSwap("innerHTML")
| |- warning: static property 'innerHTML' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'innerHTML' 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
19 |
20 | /// Replace the entire target element with the response
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:21:21: warning: static property 'outerHTML' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
19 |
20 | /// Replace the entire target element with the response
21 | public static let outerHTML = HxSwap("outerHTML")
| |- warning: static property 'outerHTML' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'outerHTML' 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 | /// Insert the response before the target element
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:24:21: warning: static property 'beforebegin' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
22 |
23 | /// Insert the response before the target element
24 | public static let beforebegin = HxSwap("beforebegin")
| |- warning: static property 'beforebegin' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'beforebegin' 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
25 |
26 | /// Insert the response before the first child of the target element
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:27:21: warning: static property 'afterbegin' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
25 |
26 | /// Insert the response before the first child of the target element
27 | public static let afterbegin = HxSwap("afterbegin")
| |- warning: static property 'afterbegin' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'afterbegin' 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
28 |
29 | /// Insert the response after the last child of the target element
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:30:21: warning: static property 'beforeend' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
28 |
29 | /// Insert the response after the last child of the target element
30 | public static let beforeend = HxSwap("beforeend")
| |- warning: static property 'beforeend' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'beforeend' 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
31 |
32 | /// Insert the response after the target element
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:33:21: warning: static property 'afterend' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
31 |
32 | /// Insert the response after the target element
33 | public static let afterend = HxSwap("afterend")
| |- warning: static property 'afterend' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'afterend' 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
34 |
35 | /// Deletes the target element regardless of the response
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:36:21: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
34 |
35 | /// Deletes the target element regardless of the response
36 | public static let delete = HxSwap("delete")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HxSwap' 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
37 |
38 | /// Does not append content from response (out of band items will still be processed).
/Users/admin/builder/spi-builder-workspace/Sources/HTTPTypesHtmx/Values/HxSwap.swift:39:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
2 | ///
3 | /// [https://htmx.org/attributes/hx-swap/](https://htmx.org/attributes/hx-swap/)
4 | public struct HxSwap: Equatable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making struct 'HxSwap' conform to the 'Sendable' protocol
5 | public let description: String
6 |
:
37 |
38 | /// Does not append content from response (out of band items will still be processed).
39 | public static let none = HxSwap("none")
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'HxSwap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
40 | }
41 |
[18/18] Compiling HTTPTypesHtmx HtmxResponseHeaders.swift
Build complete! (5.45s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-http-types",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-http-types.git"
}
],
"manifest_display_name" : "swift-http-types-htmx",
"name" : "swift-http-types-htmx",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HTTPTypesHtmx",
"targets" : [
"HTTPTypesHtmx"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HTTPTypesHtmxTests",
"module_type" : "SwiftTarget",
"name" : "HTTPTypesHtmxTests",
"path" : "Tests/HTTPTypesHtmxTests",
"product_dependencies" : [
"HTTPTypes"
],
"sources" : [
"HtmxRequestHeadersTests.swift",
"HtmxResponseHeadersTests.swift",
"HxTriggerHeaderTests.swift"
],
"target_dependencies" : [
"HTTPTypesHtmx"
],
"type" : "test"
},
{
"c99name" : "HTTPTypesHtmx",
"module_type" : "SwiftTarget",
"name" : "HTTPTypesHtmx",
"path" : "Sources/HTTPTypesHtmx",
"product_dependencies" : [
"HTTPTypes"
],
"product_memberships" : [
"HTTPTypesHtmx"
],
"sources" : [
"HtmxRequestHeaders.swift",
"HtmxResponseHeaders.swift",
"HxTriggerHeader.swift",
"Values/HxPushUrl.swift",
"Values/HxReplaceUrl.swift",
"Values/HxSwap.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.