Build Information
Successful build of PostgresClientKit, reference master (c2768c
), with Swift 6.0 for Linux on 2 Nov 2024 19:27:33 UTC.
Swift 6 data race errors: 7
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/codewinsdotcom/PostgresClientKit.git
Reference: master
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/codewinsdotcom/PostgresClientKit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c2768c8 README: using from an Xcode project
Cloned https://github.com/codewinsdotcom/PostgresClientKit.git
Revision (git rev-parse @):
c2768c8ebe708b1c5937431972c7882b33f4ea49
SUCCESS checkout https://github.com/codewinsdotcom/PostgresClientKit.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/codewinsdotcom/PostgresClientKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 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
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/Kitura/BlueSSLService
[1/2088] Fetching bluesslservice
[2089/5030] Fetching bluesslservice, bluesocket
Fetched https://github.com/Kitura/BlueSSLService from cache (0.27s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.27s)
Computing version for https://github.com/Kitura/BlueSSLService
Computed https://github.com/Kitura/BlueSSLService at 2.0.2 (0.42s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.15s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.78s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.42s)
Creating working copy for https://github.com/Kitura/BlueSSLService
Working copy of https://github.com/Kitura/BlueSSLService resolved at 2.0.2
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 2.0.4
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/10] Compiling Socket SocketUtils.swift
[6/10] Compiling Socket SocketProtocols.swift
[7/10] Compiling Socket Socket+Hashable.swift
[8/10] Compiling Socket Socket+Equatable.swift
[9/10] Emitting module Socket
[10/10] Compiling Socket Socket.swift
[12/14] Compiling SSLService SSLPointerTricks.swift
[13/14] Compiling SSLService SSLService.swift
[14/14] Emitting module SSLService
[16/77] Compiling PostgresClientKit AuthenticationResponse.swift
[17/77] Compiling PostgresClientKit AuthenticationSASLContinueResponse.swift
[18/77] Compiling PostgresClientKit AuthenticationSASLFinalResponse.swift
[19/77] Compiling PostgresClientKit AuthenticationSASLResponse.swift
[20/77] Compiling PostgresClientKit BackendKeyDataResponse.swift
[21/77] Compiling PostgresClientKit BindCompleteResponse.swift
[22/77] Compiling PostgresClientKit CloseCompleteResponse.swift
[23/77] Compiling PostgresClientKit CommandCompleteResponse.swift
[24/77] Compiling PostgresClientKit DataRowResponse.swift
[25/77] Compiling PostgresClientKit EmptyQueryResponse.swift
[26/77] Compiling PostgresClientKit ErrorResponse.swift
[27/77] Compiling PostgresClientKit NoDataResponse.swift
[28/77] Compiling PostgresClientKit NoticeResponse.swift
[29/77] Compiling PostgresClientKit NotificationResponse.swift
[30/77] Compiling PostgresClientKit ParameterStatusResponse.swift
[31/77] Compiling PostgresClientKit ParseCompleteResponse.swift
[32/77] Compiling PostgresClientKit SASLInitialRequest.swift
[33/77] Compiling PostgresClientKit SASLRequest.swift
[34/77] Compiling PostgresClientKit SSLRequest.swift
[35/77] Compiling PostgresClientKit StartupRequest.swift
[36/77] Compiling PostgresClientKit SyncRequest.swift
[37/77] Compiling PostgresClientKit TerminateRequest.swift
[38/77] Compiling PostgresClientKit AuthenticationCleartextPasswordResponse.swift
[39/77] Compiling PostgresClientKit AuthenticationMD5PasswordResponse.swift
[40/77] Compiling PostgresClientKit AuthenticationOKResponse.swift
[41/85] Emitting module PostgresClientKit
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
[42/85] Compiling PostgresClientKit PostgresByteA.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[43/85] Compiling PostgresClientKit PostgresDate.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[44/85] Compiling PostgresClientKit PostgresError.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[45/85] Compiling PostgresClientKit PostgresTime.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[46/85] Compiling PostgresClientKit PostgresTimeWithTimeZone.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[47/85] Compiling PostgresClientKit PostgresTimestamp.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[48/85] Compiling PostgresClientKit PostgresTimestampWithTimeZone.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[49/85] Compiling PostgresClientKit PostgresValue.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[50/85] Compiling PostgresClientKit PostgresValueConvertible.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:60:10: warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
58 |
59 | /// The Postgres server reported a SQL error.
60 | case sqlError(notice: Notice)
| `- warning: associated value 'sqlError(notice:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'Notice'; this is an error in the Swift 6 language mode
61 |
62 | /// An error occurred in establishing SSL/TLS encryption.
/host/spi-builder-workspace/Sources/PostgresClientKit/Notice.swift:21:15: note: consider making struct 'Notice' conform to the 'Sendable' protocol
19 |
20 | /// A notice received from the Postgres server.
21 | public struct Notice: CustomStringConvertible {
| `- note: consider making struct 'Notice' conform to the 'Sendable' protocol
22 |
23 | internal init(fields: [Character: String]) {
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresError.swift:90:10: warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
88 |
89 | /// The value could not be converted to the requested type.
90 | case valueConversionError(value: PostgresValue, type: Any.Type)
| `- warning: associated value 'valueConversionError(value:type:)' of 'Sendable'-conforming enum 'PostgresError' has non-sendable type 'PostgresValue'; this is an error in the Swift 6 language mode
91 |
92 | /// The value is `nil`.
/host/spi-builder-workspace/Sources/PostgresClientKit/PostgresValue.swift:51:15: note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
49 | /// try scoreValue.int() // throws PostgresError.valueIsNil
50 | ///
51 | public struct PostgresValue: PostgresValueConvertible, Equatable, CustomStringConvertible {
| `- note: consider making struct 'PostgresValue' conform to the 'Sendable' protocol
52 |
53 | /// Creates a `PostgresValue` from the raw value used in the Postgres network protocol.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
[51/85] Compiling PostgresClientKit BindRequest.swift
[52/85] Compiling PostgresClientKit ClosePortalRequest.swift
[53/85] Compiling PostgresClientKit CloseStatementRequest.swift
[54/85] Compiling PostgresClientKit DescribePortalRequest.swift
[55/85] Compiling PostgresClientKit ExecuteRequest.swift
[56/85] Compiling PostgresClientKit FlushRequest.swift
[57/85] Compiling PostgresClientKit ParseRequest.swift
[58/85] Compiling PostgresClientKit PasswordMessageRequest.swift
[59/85] Compiling PostgresClientKit Request.swift
[60/85] Compiling PostgresClientKit Cursor.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[61/85] Compiling PostgresClientKit ISO8601.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[62/85] Compiling PostgresClientKit LogHandler.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[63/85] Compiling PostgresClientKit LogLevel.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[64/85] Compiling PostgresClientKit LogRecord.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[65/85] Compiling PostgresClientKit Logger.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[66/85] Compiling PostgresClientKit Notice.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[67/85] Compiling PostgresClientKit Parameter.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[68/85] Compiling PostgresClientKit Postgres.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:617:24: warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
615 | //
616 |
617 | private static var timeZones = [Int : TimeZone]()
| |- warning: static property 'timeZones' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeZones' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeZones' 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
618 | private static let timeZonesSemaphore = DispatchSemaphore(value: 1)
619 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:648:24: warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
646 | //
647 |
648 | private static var calendars = [TimeZone : Calendar]()
| |- warning: static property 'calendars' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'calendars' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'calendars' 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
649 | private static let calendarsSemaphore = DispatchSemaphore(value: 1)
650 |
/host/spi-builder-workspace/Sources/PostgresClientKit/ISO8601.swift:713:24: warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
711 |
712 | // For PostgresTimeWithTimeZone values, a different formatter is required for each time zone.
713 | private static var timeWithTimeZoneFormatters = [TimeZone : DateFormatter]()
| |- warning: static property 'timeWithTimeZoneFormatters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'timeWithTimeZoneFormatters' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'timeWithTimeZoneFormatters' 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
714 | private static let timeWithTimeZoneFormattersSemaphore = DispatchSemaphore(value: 1)
715 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:47:24: warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | private static let nextIdSemaphore = DispatchSemaphore(value: 1)
47 | private static var _nextId: UInt64 = 1
| |- warning: static property '_nextId' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_nextId' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_nextId' 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
48 |
49 |
[69/85] Compiling PostgresClientKit ColumnMetadata.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[70/85] Compiling PostgresClientKit Connection.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[71/85] Compiling PostgresClientKit ConnectionConfiguration.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[72/85] Compiling PostgresClientKit ConnectionDelegate.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[73/85] Compiling PostgresClientKit ConnectionPool.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[74/85] Compiling PostgresClientKit ConnectionPoolConfiguration.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[75/85] Compiling PostgresClientKit ConnectionPoolMetrics.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[76/85] Compiling PostgresClientKit Credential.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[77/85] Compiling PostgresClientKit Crypto.swift
/host/spi-builder-workspace/Sources/PostgresClientKit/Postgres.swift:30:23: warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// The logger used by PostgresClientKit.
30 | public static let logger = Logger()
| |- warning: static property 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'logger' 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 |
/host/spi-builder-workspace/Sources/PostgresClientKit/Logging/Logger.swift:54:14: note: class 'Logger' does not conform to the 'Sendable' protocol
52 | ///
53 | /// - SeeAlso: `Postgres.logger`
54 | public class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
55 |
56 | /// Creates a `Logger`.
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:573:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
571 |
572 | guard
573 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
574 | let request = request else {
575 | return
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:574:35: warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
572 | guard
573 | let self = self,
574 | let request = request else {
| `- warning: capture of 'request' with non-sendable type 'ConnectionPool.Request?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
575 | return
576 | }
:
769 |
770 | /// A request for a connection.
771 | private class Request {
| `- note: class 'Request' does not conform to the 'Sendable' protocol
772 |
773 | fileprivate init(connectionPool: ConnectionPool,
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:614:32: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
612 |
613 | guard
614 | let self = self,
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:615:44: warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
613 | guard
614 | let self = self,
615 | let pooledConnection = pooledConnection,
| `- warning: capture of 'pooledConnection' with non-sendable type 'ConnectionPool.PooledConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | let connection = connection else {
617 | return
:
803 |
804 | /// Wraps a `Connection` in this `ConnectionPool` to track whether it is currently allocated.
805 | private class PooledConnection: Hashable {
| `- note: class 'PooledConnection' does not conform to the 'Sendable' protocol
806 |
807 | fileprivate enum State {
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:616:38: warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
614 | let self = self,
615 | let pooledConnection = pooledConnection,
616 | let connection = connection else {
| `- warning: capture of 'connection' with non-sendable type 'Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 | return
618 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/Connection.swift:77:14: note: class 'Connection' does not conform to the 'Sendable' protocol
75 | /// deinitializer, or if an unrecoverable error occurs (for example, if the Postgres server closes
76 | /// the network socket). Use `Connection.isClosed` to test whether a `Connection` is closed.
77 | public class Connection: CustomStringConvertible {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
78 |
79 | //
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:667:38: warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | /// `ConnectionPool` instance. Connections acquired from the pool are subject to the threadsafety
56 | /// constraints described by the API documentation for `Connection`.
57 | public class ConnectionPool {
| `- note: class 'ConnectionPool' does not conform to the 'Sendable' protocol
58 |
59 | //
:
665 | [weak self] in
666 |
667 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'ConnectionPool?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
668 | return
669 | }
/host/spi-builder-workspace/Sources/PostgresClientKit/ConnectionPool.swift:761:13: warning: capture of 'operation' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
759 | private func async(_ operation: @escaping () -> Void) {
760 | _connectionPoolConfiguration.dispatchQueue.async {
761 | operation()
| |- warning: capture of 'operation' with non-sendable type '() -> Void' 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'
762 | }
763 | }
[78/85] Compiling PostgresClientKit ReadyForQueryResponse.swift
[79/85] Compiling PostgresClientKit Response.swift
[80/85] Compiling PostgresClientKit RowDescriptionResponse.swift
[81/85] Compiling PostgresClientKit Row.swift
[82/85] Compiling PostgresClientKit RowDecoder.swift
[83/85] Compiling PostgresClientKit SASLPrep.swift
[84/85] Compiling PostgresClientKit SCRAMSHA256Authenticator.swift
[85/85] Compiling PostgresClientKit Statement.swift
Build complete! (30.27s)
Build complete.
{
"dependencies" : [
{
"identity" : "bluesocket",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueSocket.git"
},
{
"identity" : "bluesslservice",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueSSLService"
}
],
"manifest_display_name" : "PostgresClientKit",
"name" : "PostgresClientKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "PostgresClientKit",
"targets" : [
"PostgresClientKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PostgresClientKitTests",
"module_type" : "SwiftTarget",
"name" : "PostgresClientKitTests",
"path" : "Tests/PostgresClientKitTests",
"sources" : [
"ConnectionConfigurationTest.swift",
"ConnectionDelegateTest.swift",
"ConnectionPoolConfigurationTest.swift",
"ConnectionPoolMetricsTest.swift",
"ConnectionPoolStressTest.swift",
"ConnectionPoolTest.swift",
"ConnectionTest.swift",
"CryptoTest.swift",
"CursorTest.swift",
"DataTypeTest.swift",
"ISO8601Test.swift",
"LoggingTest.swift",
"PostgresByteATest.swift",
"PostgresClientKitTestCase.swift",
"PostgresDateTest.swift",
"PostgresTimeTest.swift",
"PostgresTimeWithTimeZoneTest.swift",
"PostgresTimestampTest.swift",
"PostgresTimestampWithTimeZoneTest.swift",
"PostgresValueTest.swift",
"RowDecoderTest.swift",
"SASLPrepTest.swift",
"SCRAMSHA256AuthenticatorTest.swift",
"SQLStatementTest.swift",
"StatementTest.swift",
"TestEnvironment.swift"
],
"target_dependencies" : [
"PostgresClientKit"
],
"type" : "test"
},
{
"c99name" : "PostgresClientKit",
"module_type" : "SwiftTarget",
"name" : "PostgresClientKit",
"path" : "Sources/PostgresClientKit",
"product_dependencies" : [
"Socket",
"SSLService"
],
"product_memberships" : [
"PostgresClientKit"
],
"sources" : [
"ColumnMetadata.swift",
"Connection.swift",
"ConnectionConfiguration.swift",
"ConnectionDelegate.swift",
"ConnectionPool.swift",
"ConnectionPoolConfiguration.swift",
"ConnectionPoolMetrics.swift",
"Credential.swift",
"Crypto.swift",
"Cursor.swift",
"ISO8601.swift",
"Logging/LogHandler.swift",
"Logging/LogLevel.swift",
"Logging/LogRecord.swift",
"Logging/Logger.swift",
"Notice.swift",
"Parameter.swift",
"Postgres.swift",
"PostgresByteA.swift",
"PostgresDate.swift",
"PostgresError.swift",
"PostgresTime.swift",
"PostgresTimeWithTimeZone.swift",
"PostgresTimestamp.swift",
"PostgresTimestampWithTimeZone.swift",
"PostgresValue.swift",
"PostgresValueConvertible.swift",
"Request/BindRequest.swift",
"Request/ClosePortalRequest.swift",
"Request/CloseStatementRequest.swift",
"Request/DescribePortalRequest.swift",
"Request/ExecuteRequest.swift",
"Request/FlushRequest.swift",
"Request/ParseRequest.swift",
"Request/PasswordMessageRequest.swift",
"Request/Request.swift",
"Request/SASLInitialRequest.swift",
"Request/SASLRequest.swift",
"Request/SSLRequest.swift",
"Request/StartupRequest.swift",
"Request/SyncRequest.swift",
"Request/TerminateRequest.swift",
"Response/AuthenticationCleartextPasswordResponse.swift",
"Response/AuthenticationMD5PasswordResponse.swift",
"Response/AuthenticationOKResponse.swift",
"Response/AuthenticationResponse.swift",
"Response/AuthenticationSASLContinueResponse.swift",
"Response/AuthenticationSASLFinalResponse.swift",
"Response/AuthenticationSASLResponse.swift",
"Response/BackendKeyDataResponse.swift",
"Response/BindCompleteResponse.swift",
"Response/CloseCompleteResponse.swift",
"Response/CommandCompleteResponse.swift",
"Response/DataRowResponse.swift",
"Response/EmptyQueryResponse.swift",
"Response/ErrorResponse.swift",
"Response/NoDataResponse.swift",
"Response/NoticeResponse.swift",
"Response/NotificationResponse.swift",
"Response/ParameterStatusResponse.swift",
"Response/ParseCompleteResponse.swift",
"Response/ReadyForQueryResponse.swift",
"Response/Response.swift",
"Response/RowDescriptionResponse.swift",
"Row.swift",
"RowDecoder.swift",
"SASLPrep.swift",
"SCRAMSHA256Authenticator.swift",
"Statement.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
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.