Build Information
Successful build of PostgREST with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/supabase-community/postgrest-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/supabase-community/postgrest-swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7ab9a30 Update README.md
Cloned https://github.com/supabase-community/postgrest-swift.git
Revision (git rev-parse @):
7ab9a30af9ca6235c6b4131774f0c5ee370716e5
SUCCESS checkout https://github.com/supabase-community/postgrest-swift.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/supabase-community/postgrest-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/10] Compiling Get Request.swift
[6/10] Compiling Get APIClient.swift
[7/10] Compiling Get DataLoader.swift
[8/10] Compiling Get Response.swift
[9/10] Compiling Get APIClientDelegate.swift
[10/10] Emitting module Get
[11/12] Emitting module GetExtensions
[12/12] Compiling GetExtensions MultiAPIClientDelegate.swift
[13/25] Compiling PostgREST PostgrestRpcBuilder.swift
[14/26] Compiling PostgREST PostgrestReturningOptions.swift
[15/26] Compiling PostgREST PostgrestFilterBuilder.swift
[16/26] Compiling PostgREST PostgrestQueryBuilder.swift
[17/26] Compiling PostgREST PostgrestResponse.swift
[18/26] Compiling PostgREST CountOption.swift
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestBuilder.swift:63:41: warning: non-sendable type 'Response<T>' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
56 |
57 | @discardableResult
58 | public func execute<T: Decodable>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
59 | head: Bool = false,
60 | count: CountOption? = nil
61 | ) async throws -> PostgrestResponse<T> {
62 | adaptRequest(head: head, count: count)
63 | let response = try await client.api.send(request.withResponse(T.self))
| `- warning: non-sendable type 'Response<T>' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | return PostgrestResponse(underlyingResponse: response)
65 | }
[19/26] Compiling PostgREST PostgrestBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestBuilder.swift:63:41: warning: non-sendable type 'Response<T>' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
56 |
57 | @discardableResult
58 | public func execute<T: Decodable>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
59 | head: Bool = false,
60 | count: CountOption? = nil
61 | ) async throws -> PostgrestResponse<T> {
62 | adaptRequest(head: head, count: count)
63 | let response = try await client.api.send(request.withResponse(T.self))
| `- warning: non-sendable type 'Response<T>' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
64 | return PostgrestResponse(underlyingResponse: response)
65 | }
[20/26] Emitting module PostgREST
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:145:13: warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
143 | }
144 |
145 | private let supportedDateFormatters: [ISO8601DateFormatter] = [
| |- warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'supportedDateFormatters' 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
146 | { () -> ISO8601DateFormatter in
147 | let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[21/26] Compiling PostgREST Version.swift
[22/26] Compiling PostgREST URLQueryRepresentable.swift
[23/26] Compiling PostgREST PostgrestTransformBuilder.swift
[24/26] Compiling PostgREST PostgrestClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:145:13: warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
143 | }
144 |
145 | private let supportedDateFormatters: [ISO8601DateFormatter] = [
| |- warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'supportedDateFormatters' 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
146 | { () -> ISO8601DateFormatter in
147 | let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:31:31: warning: capture of 'apiClientDelegate' with non-sendable type '(any APIClientDelegate)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | $0.decoder = .postgrest
30 | $0.encoder = .postgrest
31 | if let customDelegate = apiClientDelegate {
| `- warning: capture of 'apiClientDelegate' with non-sendable type '(any APIClientDelegate)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | $0.delegate = MultiAPIClientDelegate([customDelegate, PostgrestAPIClientDelegate()])
33 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:11:17: note: protocol 'APIClientDelegate' does not conform to the 'Sendable' protocol
9 |
10 | /// Allows you to modify ``APIClient`` behavior.
11 | public protocol APIClientDelegate {
| `- note: protocol 'APIClientDelegate' does not conform to the 'Sendable' protocol
12 | /// Allows you to modify the request right before it is sent.
13 | ///
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Get'
1 | import Foundation
2 | import Get
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Get'
3 | import GetExtensions
4 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:124:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | public struct HTTPMethod: RawRepresentable, Hashable, ExpressibleByStringLiteral {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
113 | public let rawValue: String
114 |
:
122 |
123 | public static let get: HTTPMethod = "GET"
124 | public static let post: HTTPMethod = "POST"
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type '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
125 | public static let patch: HTTPMethod = "PATCH"
126 | public static let put: HTTPMethod = "PUT"
[25/26] Compiling PostgREST PostgrestError.swift
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:145:13: warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
143 | }
144 |
145 | private let supportedDateFormatters: [ISO8601DateFormatter] = [
| |- warning: let 'supportedDateFormatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'supportedDateFormatters' 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
146 | { () -> ISO8601DateFormatter in
147 | let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
| `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:31:31: warning: capture of 'apiClientDelegate' with non-sendable type '(any APIClientDelegate)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | $0.decoder = .postgrest
30 | $0.encoder = .postgrest
31 | if let customDelegate = apiClientDelegate {
| `- warning: capture of 'apiClientDelegate' with non-sendable type '(any APIClientDelegate)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | $0.delegate = MultiAPIClientDelegate([customDelegate, PostgrestAPIClientDelegate()])
33 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:11:17: note: protocol 'APIClientDelegate' does not conform to the 'Sendable' protocol
9 |
10 | /// Allows you to modify ``APIClient`` behavior.
11 | public protocol APIClientDelegate {
| `- note: protocol 'APIClientDelegate' does not conform to the 'Sendable' protocol
12 | /// Allows you to modify the request right before it is sent.
13 | ///
/Users/admin/builder/spi-builder-workspace/Sources/PostgREST/PostgrestClient.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Get'
1 | import Foundation
2 | import Get
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Get'
3 | import GetExtensions
4 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Get/Sources/Get/Request.swift:124:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 |
112 | public struct HTTPMethod: RawRepresentable, Hashable, ExpressibleByStringLiteral {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
113 | public let rawValue: String
114 |
:
122 |
123 | public static let get: HTTPMethod = "GET"
124 | public static let post: HTTPMethod = "POST"
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type '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
125 | public static let patch: HTTPMethod = "PATCH"
126 | public static let put: HTTPMethod = "PUT"
[26/26] Compiling PostgREST TextSearchType.swift
Build complete! (28.63s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/kean/Get
Fetching https://github.com/binaryscraping/GetExtensions
[1/2329] Fetching get
[537/13578] Fetching get, swift-snapshot-testing
[762/13611] Fetching get, swift-snapshot-testing, getextensions
[3257/74518] Fetching get, swift-snapshot-testing, getextensions, swift-syntax
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.90s)
Fetched https://github.com/kean/Get from cache (3.38s)
Fetched https://github.com/apple/swift-syntax.git from cache (3.38s)
Fetched https://github.com/binaryscraping/GetExtensions from cache (3.38s)
Computing version for https://github.com/binaryscraping/GetExtensions
Computed https://github.com/binaryscraping/GetExtensions at 1.0.0 (0.73s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.1.6 (0.69s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.14.0 (0.67s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (0.82s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.1.6
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.14.0
Creating working copy for https://github.com/binaryscraping/GetExtensions
Working copy of https://github.com/binaryscraping/GetExtensions resolved at 1.0.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-snapshot-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "1.8.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-snapshot-testing"
},
{
"identity" : "get",
"requirement" : {
"range" : [
{
"lower_bound" : "2.1.4",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kean/Get"
},
{
"identity" : "getextensions",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/binaryscraping/GetExtensions"
}
],
"manifest_display_name" : "PostgREST",
"name" : "PostgREST",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "PostgREST",
"targets" : [
"PostgREST"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PostgRESTTests",
"module_type" : "SwiftTarget",
"name" : "PostgRESTTests",
"path" : "Tests/PostgRESTTests",
"product_dependencies" : [
"SnapshotTesting"
],
"sources" : [
"BuildURLRequestTests.swift",
"URLQueryRepresentableTests.swift"
],
"target_dependencies" : [
"PostgREST"
],
"type" : "test"
},
{
"c99name" : "PostgRESTIntegrationTests",
"module_type" : "SwiftTarget",
"name" : "PostgRESTIntegrationTests",
"path" : "Tests/PostgRESTIntegrationTests",
"sources" : [
"IntegrationTests.swift"
],
"target_dependencies" : [
"PostgREST"
],
"type" : "test"
},
{
"c99name" : "PostgREST",
"module_type" : "SwiftTarget",
"name" : "PostgREST",
"path" : "Sources/PostgREST",
"product_dependencies" : [
"Get",
"GetExtensions"
],
"product_memberships" : [
"PostgREST"
],
"sources" : [
"CountOption.swift",
"PostgrestBuilder.swift",
"PostgrestClient.swift",
"PostgrestError.swift",
"PostgrestFilterBuilder.swift",
"PostgrestQueryBuilder.swift",
"PostgrestResponse.swift",
"PostgrestReturningOptions.swift",
"PostgrestRpcBuilder.swift",
"PostgrestTransformBuilder.swift",
"TextSearchType.swift",
"URLQueryRepresentable.swift",
"Version.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.