Build Information
Failed to build nostr-kit, reference master (e91c85
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 08:53:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
18 | /// a ping frame was received from the remote peer, but the ping data was to be delivered with a fragment flag, which is invalid.
19 | /// - NOTE: see RFC 6455 section 5.4 & 5.5 for more information.
:
52 |
53 | /// thrown when the fragment control rules defined in RFC 6455 section 5.4 are violated.
54 | case fragmentControlViolation(FragmentControlViolation)
| `- warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
55 | }
56 |
[1121/1142] Compiling nostr ClientConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:34:5: warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 |
7 | /// catches the events in the channel and groups them together so that they can be passed downstream more efficiently
8 | internal final class Catcher:ChannelInboundHandler {
| `- note: class 'Catcher' does not conform to the 'Sendable' protocol
9 |
10 | #if DEBUG
:
32 | private func scheduleFlushTask(channel:Channel) {
33 | self.flushTask = channel.eventLoop.scheduleTask(in:self.holdPeriod, {
34 | self.flushTask = nil
| `- warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | })
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:21: warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:32: warning: immutable value 'event' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'event' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Error.swift:54:10: warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
15 |
16 | /// describes various ways that a websocket can violate the fragment control rules defined in RFC 6455 section 5.4.
17 | public enum FragmentControlViolation {
| `- note: consider making enum 'FragmentControlViolation' conform to the 'Sendable' protocol
18 | /// a ping frame was received from the remote peer, but the ping data was to be delivered with a fragment flag, which is invalid.
19 | /// - NOTE: see RFC 6455 section 5.4 & 5.5 for more information.
:
52 |
53 | /// thrown when the fragment control rules defined in RFC 6455 section 5.4 are violated.
54 | case fragmentControlViolation(FragmentControlViolation)
| `- warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
55 | }
56 |
[1122/1142] Compiling nostr Relay + Catcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:34:5: warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 |
7 | /// catches the events in the channel and groups them together so that they can be passed downstream more efficiently
8 | internal final class Catcher:ChannelInboundHandler {
| `- note: class 'Catcher' does not conform to the 'Sendable' protocol
9 |
10 | #if DEBUG
:
32 | private func scheduleFlushTask(channel:Channel) {
33 | self.flushTask = channel.eventLoop.scheduleTask(in:self.holdPeriod, {
34 | self.flushTask = nil
| `- warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | })
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:21: warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:32: warning: immutable value 'event' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'event' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Error.swift:54:10: warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
15 |
16 | /// describes various ways that a websocket can violate the fragment control rules defined in RFC 6455 section 5.4.
17 | public enum FragmentControlViolation {
| `- note: consider making enum 'FragmentControlViolation' conform to the 'Sendable' protocol
18 | /// a ping frame was received from the remote peer, but the ping data was to be delivered with a fragment flag, which is invalid.
19 | /// - NOTE: see RFC 6455 section 5.4 & 5.5 for more information.
:
52 |
53 | /// thrown when the fragment control rules defined in RFC 6455 section 5.4 are violated.
54 | case fragmentControlViolation(FragmentControlViolation)
| `- warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
55 | }
56 |
[1123/1142] Compiling nostr Relay + Consumable.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:34:5: warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 |
7 | /// catches the events in the channel and groups them together so that they can be passed downstream more efficiently
8 | internal final class Catcher:ChannelInboundHandler {
| `- note: class 'Catcher' does not conform to the 'Sendable' protocol
9 |
10 | #if DEBUG
:
32 | private func scheduleFlushTask(channel:Channel) {
33 | self.flushTask = channel.eventLoop.scheduleTask(in:self.holdPeriod, {
34 | self.flushTask = nil
| `- warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | })
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:21: warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:32: warning: immutable value 'event' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'event' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Error.swift:54:10: warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
15 |
16 | /// describes various ways that a websocket can violate the fragment control rules defined in RFC 6455 section 5.4.
17 | public enum FragmentControlViolation {
| `- note: consider making enum 'FragmentControlViolation' conform to the 'Sendable' protocol
18 | /// a ping frame was received from the remote peer, but the ping data was to be delivered with a fragment flag, which is invalid.
19 | /// - NOTE: see RFC 6455 section 5.4 & 5.5 for more information.
:
52 |
53 | /// thrown when the fragment control rules defined in RFC 6455 section 5.4 are violated.
54 | case fragmentControlViolation(FragmentControlViolation)
| `- warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
55 | }
56 |
[1124/1142] Compiling nostr Relay + Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:34:5: warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 |
7 | /// catches the events in the channel and groups them together so that they can be passed downstream more efficiently
8 | internal final class Catcher:ChannelInboundHandler {
| `- note: class 'Catcher' does not conform to the 'Sendable' protocol
9 |
10 | #if DEBUG
:
32 | private func scheduleFlushTask(channel:Channel) {
33 | self.flushTask = channel.eventLoop.scheduleTask(in:self.holdPeriod, {
34 | self.flushTask = nil
| `- warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | })
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:21: warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:32: warning: immutable value 'event' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'event' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Error.swift:54:10: warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
15 |
16 | /// describes various ways that a websocket can violate the fragment control rules defined in RFC 6455 section 5.4.
17 | public enum FragmentControlViolation {
| `- note: consider making enum 'FragmentControlViolation' conform to the 'Sendable' protocol
18 | /// a ping frame was received from the remote peer, but the ping data was to be delivered with a fragment flag, which is invalid.
19 | /// - NOTE: see RFC 6455 section 5.4 & 5.5 for more information.
:
52 |
53 | /// thrown when the fragment control rules defined in RFC 6455 section 5.4 are violated.
54 | case fragmentControlViolation(FragmentControlViolation)
| `- warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
55 | }
56 |
[1125/1142] Compiling nostr Relay + Frame.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:34:5: warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 |
7 | /// catches the events in the channel and groups them together so that they can be passed downstream more efficiently
8 | internal final class Catcher:ChannelInboundHandler {
| `- note: class 'Catcher' does not conform to the 'Sendable' protocol
9 |
10 | #if DEBUG
:
32 | private func scheduleFlushTask(channel:Channel) {
33 | self.flushTask = channel.eventLoop.scheduleTask(in:self.holdPeriod, {
34 | self.flushTask = nil
| `- warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | })
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:21: warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:32: warning: immutable value 'event' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'event' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Error.swift:54:10: warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
15 |
16 | /// describes various ways that a websocket can violate the fragment control rules defined in RFC 6455 section 5.4.
17 | public enum FragmentControlViolation {
| `- note: consider making enum 'FragmentControlViolation' conform to the 'Sendable' protocol
18 | /// a ping frame was received from the remote peer, but the ping data was to be delivered with a fragment flag, which is invalid.
19 | /// - NOTE: see RFC 6455 section 5.4 & 5.5 for more information.
:
52 |
53 | /// thrown when the fragment control rules defined in RFC 6455 section 5.4 are violated.
54 | case fragmentControlViolation(FragmentControlViolation)
| `- warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
55 | }
56 |
[1126/1142] Compiling nostr Relay + Handler.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:34:5: warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 |
7 | /// catches the events in the channel and groups them together so that they can be passed downstream more efficiently
8 | internal final class Catcher:ChannelInboundHandler {
| `- note: class 'Catcher' does not conform to the 'Sendable' protocol
9 |
10 | #if DEBUG
:
32 | private func scheduleFlushTask(channel:Channel) {
33 | self.flushTask = channel.eventLoop.scheduleTask(in:self.holdPeriod, {
34 | self.flushTask = nil
| `- warning: capture of 'self' with non-sendable type 'Relay.Catcher' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | })
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:21: warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'subID' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Catcher.swift:62:32: warning: immutable value 'event' was never used; consider replacing with '_' or removing it
60 | case .event(let context):
61 | switch context {
62 | case .sub(let subID, let event):
| `- warning: immutable value 'event' was never used; consider replacing with '_' or removing it
63 | #if DEBUG
64 | self.logger.trace("got write event.")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay + Error.swift:54:10: warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
15 |
16 | /// describes various ways that a websocket can violate the fragment control rules defined in RFC 6455 section 5.4.
17 | public enum FragmentControlViolation {
| `- note: consider making enum 'FragmentControlViolation' conform to the 'Sendable' protocol
18 | /// a ping frame was received from the remote peer, but the ping data was to be delivered with a fragment flag, which is invalid.
19 | /// - NOTE: see RFC 6455 section 5.4 & 5.5 for more information.
:
52 |
53 | /// thrown when the fragment control rules defined in RFC 6455 section 5.4 are violated.
54 | case fragmentControlViolation(FragmentControlViolation)
| `- warning: associated value 'fragmentControlViolation' of 'Sendable'-conforming enum 'RFC6455Violation' has non-sendable type 'Relay.Error.WebSocket.RFC6455Violation.FragmentControlViolation'; this is an error in the Swift 6 language mode
55 | }
56 |
[1127/1142] Compiling nostr Relay.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:49:104: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
47 | case .failure(let err):
48 | #if DEBUG
49 | Self.logger.error("failed to write event to relay.", metadata:["error": "\(err)", "event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
50 | #endif
51 |
[1128/1142] Compiling nostr URL + Parser.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:49:104: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
47 | case .failure(let err):
48 | #if DEBUG
49 | Self.logger.error("failed to write event to relay.", metadata:["error": "\(err)", "event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
50 | #endif
51 |
[1129/1142] Compiling nostr URL + Split.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:49:104: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
47 | case .failure(let err):
48 | #if DEBUG
49 | Self.logger.error("failed to write event to relay.", metadata:["error": "\(err)", "event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
50 | #endif
51 |
[1130/1142] Compiling nostr URL.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:49:104: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
47 | case .failure(let err):
48 | #if DEBUG
49 | Self.logger.error("failed to write event to relay.", metadata:["error": "\(err)", "event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
50 | #endif
51 |
[1131/1142] Compiling nostr URLParameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:49:104: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
47 | case .failure(let err):
48 | #if DEBUG
49 | Self.logger.error("failed to write event to relay.", metadata:["error": "\(err)", "event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
50 | #endif
51 |
[1132/1142] Compiling nostr BECH32.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:49:104: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
47 | case .failure(let err):
48 | #if DEBUG
49 | Self.logger.error("failed to write event to relay.", metadata:["error": "\(err)", "event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
50 | #endif
51 |
[1133/1142] Compiling nostr NOSTR_frame.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:44:88: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
42 | case .success(_):
43 | #if DEBUG
44 | Self.logger.trace("successfully wrote event to relay.", metadata:["event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | #endif
46 |
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Network/Relay/Relay.swift:49:104: warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
33 | }
34 |
35 | public func write<E>(event:E) -> EventLoopFuture<Date> where E:NOSTR_event_signed {
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
36 | // the promise that ties to the NIP-20 response for the published event
37 | let returnPromise = self.handler.okHandler.createNIP20Promise(for:event.uid)
:
47 | case .failure(let err):
48 | #if DEBUG
49 | Self.logger.error("failed to write event to relay.", metadata:["error": "\(err)", "event_uid": "\(event.uid.description.prefix(8))"])
| `- warning: implicit capture of 'event' requires that 'E' conforms to `Sendable`; this is an error in the Swift 6 language mode
50 | #endif
51 |
[1134/1142] Compiling nostr NIP05.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Utils/NIP05/NIP05.swift:96:19: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
94 | let newClient = HTTPClient(eventLoopGroupProvider: .createNew)
95 | defer {
96 | try? newClient.syncShutdown()
| `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
97 | }
98 |
[1135/1142] Compiling nostr RandomBytes.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Utils/NIP05/NIP05.swift:96:19: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
94 | let newClient = HTTPClient(eventLoopGroupProvider: .createNew)
95 | defer {
96 | try? newClient.syncShutdown()
| `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
97 | }
98 |
[1136/1142] Compiling nostr SHA1.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Utils/NIP05/NIP05.swift:96:19: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
94 | let newClient = HTTPClient(eventLoopGroupProvider: .createNew)
95 | defer {
96 | try? newClient.syncShutdown()
| `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
97 | }
98 |
[1137/1142] Compiling nostr SHA256.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Utils/NIP05/NIP05.swift:96:19: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
94 | let newClient = HTTPClient(eventLoopGroupProvider: .createNew)
95 | defer {
96 | try? newClient.syncShutdown()
| `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
97 | }
98 |
[1138/1142] Compiling nostr bech32.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Utils/NIP05/NIP05.swift:96:19: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
94 | let newClient = HTTPClient(eventLoopGroupProvider: .createNew)
95 | defer {
96 | try? newClient.syncShutdown()
| `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
97 | }
98 |
[1139/1142] Compiling nostr nostr.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Utils/NIP05/NIP05.swift:96:19: warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
94 | let newClient = HTTPClient(eventLoopGroupProvider: .createNew)
95 | defer {
96 | try? newClient.syncShutdown()
| `- warning: instance method 'syncShutdown' is unavailable from asynchronous contexts; syncShutdown() can block indefinitely, prefer shutdown(); this is an error in the Swift 6 language mode
97 | }
98 |
[1140/1151] Compiling nostr_cc Colors.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:13:16: warning: static property 'bold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | }
12 | fileprivate struct ANSIModifiers {
13 | static var bold = [1, 22]
| |- warning: static property 'bold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'bold' 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
14 | static var blink = [5, 25]
15 | static var dim = [2, 22]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:14:16: warning: static property 'blink' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | fileprivate struct ANSIModifiers {
13 | static var bold = [1, 22]
14 | static var blink = [5, 25]
| |- warning: static property 'blink' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blink' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blink' 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
15 | static var dim = [2, 22]
16 | static var italic = [2, 23]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:15:16: warning: static property 'dim' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | static var bold = [1, 22]
14 | static var blink = [5, 25]
15 | static var dim = [2, 22]
| |- warning: static property 'dim' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dim' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dim' 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
16 | static var italic = [2, 23]
17 | static var underline = [4, 24]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:16:16: warning: static property 'italic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | static var blink = [5, 25]
15 | static var dim = [2, 22]
16 | static var italic = [2, 23]
| |- warning: static property 'italic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'italic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'italic' 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
17 | static var underline = [4, 24]
18 | static var inverse = [7, 27]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:17:16: warning: static property 'underline' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static var dim = [2, 22]
16 | static var italic = [2, 23]
17 | static var underline = [4, 24]
| |- warning: static property 'underline' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'underline' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'underline' 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
18 | static var inverse = [7, 27]
19 | static var hidden = [8, 28]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:18:16: warning: static property 'inverse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | static var italic = [2, 23]
17 | static var underline = [4, 24]
18 | static var inverse = [7, 27]
| |- warning: static property 'inverse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'inverse' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'inverse' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static var hidden = [8, 28]
20 | static var strikethrough = [9, 29]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:19:16: warning: static property 'hidden' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | static var underline = [4, 24]
18 | static var inverse = [7, 27]
19 | static var hidden = [8, 28]
| |- warning: static property 'hidden' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hidden' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hidden' 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
20 | static var strikethrough = [9, 29]
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:20:16: warning: static property 'strikethrough' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | static var inverse = [7, 27]
19 | static var hidden = [8, 28]
20 | static var strikethrough = [9, 29]
| |- warning: static property 'strikethrough' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strikethrough' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strikethrough' 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
21 | }
22 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:56:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
54 |
55 | // MARK: Normal text colors
56 | public static let black = apply(style:getColor(color:ANSIColorCode.black, mod: normalText))
| |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:57:23: warning: static property 'red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
55 | // MARK: Normal text colors
56 | public static let black = apply(style:getColor(color:ANSIColorCode.black, mod: normalText))
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
| |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'red' 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
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:58:23: warning: static property 'green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
56 | public static let black = apply(style:getColor(color:ANSIColorCode.black, mod: normalText))
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
| |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'green' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:59:23: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
| |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yellow' 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
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:60:23: warning: static property 'blue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
| |- warning: static property 'blue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:61:23: warning: static property 'magenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
| |- warning: static property 'magenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'magenta' 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
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
63 | public static let white = apply(style:getColor(color:ANSIColorCode.white, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:62:23: warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
| |- warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cyan' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let white = apply(style:getColor(color:ANSIColorCode.white, mod: normalText))
64 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:63:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
63 | public static let white = apply(style:getColor(color:ANSIColorCode.white, mod: normalText))
| |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'white' 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
64 |
65 | // MARK: Bright text colors
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:66:23: warning: static property 'Black' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | // MARK: Bright text colors
66 | public static let Black = apply(style:getColor(color:ANSIColorCode.black, mod: brightText))
| |- warning: static property 'Black' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Black' 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
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:67:23: warning: static property 'Red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
65 | // MARK: Bright text colors
66 | public static let Black = apply(style:getColor(color:ANSIColorCode.black, mod: brightText))
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
| |- warning: static property 'Red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Red' 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
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:68:23: warning: static property 'Green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
66 | public static let Black = apply(style:getColor(color:ANSIColorCode.black, mod: brightText))
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
| |- warning: static property 'Green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Green' 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
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:69:23: warning: static property 'Yellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
| |- warning: static property 'Yellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Yellow' 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
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:70:23: warning: static property 'Blue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
| |- warning: static property 'Blue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Blue' 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
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
72 | public static let Cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:71:23: warning: static property 'Magenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
| |- warning: static property 'Magenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Magenta' 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
72 | public static let Cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightText))
73 | public static let White = apply(style:getColor(color:ANSIColorCode.white, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:72:23: warning: static property 'Cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
72 | public static let Cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightText))
| |- warning: static property 'Cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Cyan' 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
73 | public static let White = apply(style:getColor(color:ANSIColorCode.white, mod: brightText))
74 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:73:23: warning: static property 'White' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
72 | public static let Cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightText))
73 | public static let White = apply(style:getColor(color:ANSIColorCode.white, mod: brightText))
| |- warning: static property 'White' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'White' 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
74 |
75 | // MARK: Normal background colors
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:76:23: warning: static property 'bgBlack' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
74 |
75 | // MARK: Normal background colors
76 | public static let bgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: bg))
| |- warning: static property 'bgBlack' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgBlack' 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
77 | public static let bgRed = apply(style:getColor(color:ANSIColorCode.red, mod: bg))
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:77:23: warning: static property 'bgRed' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
75 | // MARK: Normal background colors
76 | public static let bgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: bg))
77 | public static let bgRed = apply(style:getColor(color:ANSIColorCode.red, mod: bg))
| |- warning: static property 'bgRed' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgRed' 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
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:78:23: warning: static property 'bgGreen' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
76 | public static let bgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: bg))
77 | public static let bgRed = apply(style:getColor(color:ANSIColorCode.red, mod: bg))
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
| |- warning: static property 'bgGreen' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgGreen' 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
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:79:23: warning: static property 'bgYellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
77 | public static let bgRed = apply(style:getColor(color:ANSIColorCode.red, mod: bg))
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
| |- warning: static property 'bgYellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgYellow' 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
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:80:23: warning: static property 'bgBlue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
| |- warning: static property 'bgBlue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgBlue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
82 | public static let bgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:81:23: warning: static property 'bgMagenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
| |- warning: static property 'bgMagenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgMagenta' 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
82 | public static let bgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: bg))
83 | public static let bgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:82:23: warning: static property 'bgCyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
82 | public static let bgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: bg))
| |- warning: static property 'bgCyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgCyan' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | public static let bgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: bg))
84 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:83:23: warning: static property 'bgWhite' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
82 | public static let bgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: bg))
83 | public static let bgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: bg))
| |- warning: static property 'bgWhite' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgWhite' 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
84 |
85 | // MARK: Bright background colors
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:86:23: warning: static property 'BgBlack' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | // MARK: Bright background colors
86 | public static let BgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: brightBg))
| |- warning: static property 'BgBlack' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgBlack' 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
87 | public static let BgRed = apply(style:getColor(color:ANSIColorCode.red, mod: brightBg))
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:87:23: warning: static property 'BgRed' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
85 | // MARK: Bright background colors
86 | public static let BgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: brightBg))
87 | public static let BgRed = apply(style:getColor(color:ANSIColorCode.red, mod: brightBg))
| |- warning: static property 'BgRed' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgRed' 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
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:88:23: warning: static property 'BgGreen' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
86 | public static let BgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: brightBg))
87 | public static let BgRed = apply(style:getColor(color:ANSIColorCode.red, mod: brightBg))
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
| |- warning: static property 'BgGreen' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgGreen' 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
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:89:23: warning: static property 'BgYellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
87 | public static let BgRed = apply(style:getColor(color:ANSIColorCode.red, mod: brightBg))
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
| |- warning: static property 'BgYellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgYellow' 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
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:90:23: warning: static property 'BgBlue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
| |- warning: static property 'BgBlue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgBlue' 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
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
92 | public static let BgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:91:23: warning: static property 'BgMagenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
| |- warning: static property 'BgMagenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgMagenta' 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
92 | public static let BgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightBg))
93 | public static let BgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:92:23: warning: static property 'BgCyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
92 | public static let BgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightBg))
| |- warning: static property 'BgCyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgCyan' 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
93 | public static let BgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: brightBg))
94 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:93:23: warning: static property 'BgWhite' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
92 | public static let BgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightBg))
93 | public static let BgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: brightBg))
| |- warning: static property 'BgWhite' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgWhite' 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
94 |
95 | // MARK: Text modifiers
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:96:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
94 |
95 | // MARK: Text modifiers
96 | public static let bold = apply(style:ANSIModifiers.bold)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
97 | public static let blink = apply(style:ANSIModifiers.blink)
98 | public static let dim = apply(style:ANSIModifiers.dim)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:97:23: warning: static property 'blink' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
95 | // MARK: Text modifiers
96 | public static let bold = apply(style:ANSIModifiers.bold)
97 | public static let blink = apply(style:ANSIModifiers.blink)
| |- warning: static property 'blink' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blink' 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
98 | public static let dim = apply(style:ANSIModifiers.dim)
99 | public static let italic = apply(style:ANSIModifiers.italic)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:98:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
96 | public static let bold = apply(style:ANSIModifiers.bold)
97 | public static let blink = apply(style:ANSIModifiers.blink)
98 | public static let dim = apply(style:ANSIModifiers.dim)
| |- warning: static property 'dim' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dim' 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
99 | public static let italic = apply(style:ANSIModifiers.italic)
100 | public static let underline = apply(style:ANSIModifiers.underline)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:99:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
97 | public static let blink = apply(style:ANSIModifiers.blink)
98 | public static let dim = apply(style:ANSIModifiers.dim)
99 | public static let italic = apply(style:ANSIModifiers.italic)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
100 | public static let underline = apply(style:ANSIModifiers.underline)
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:100:23: warning: static property 'underline' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
98 | public static let dim = apply(style:ANSIModifiers.dim)
99 | public static let italic = apply(style:ANSIModifiers.italic)
100 | public static let underline = apply(style:ANSIModifiers.underline)
| |- warning: static property 'underline' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underline' 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
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
102 | public static let hidden = apply(style:ANSIModifiers.hidden)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:101:23: warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
99 | public static let italic = apply(style:ANSIModifiers.italic)
100 | public static let underline = apply(style:ANSIModifiers.underline)
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
| |- warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inverse' 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
102 | public static let hidden = apply(style:ANSIModifiers.hidden)
103 | public static let strikethrough = apply(style:ANSIModifiers.strikethrough)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:102:23: warning: static property 'hidden' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
100 | public static let underline = apply(style:ANSIModifiers.underline)
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
102 | public static let hidden = apply(style:ANSIModifiers.hidden)
| |- warning: static property 'hidden' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hidden' 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
103 | public static let strikethrough = apply(style:ANSIModifiers.strikethrough)
104 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:103:23: warning: static property 'strikethrough' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
102 | public static let hidden = apply(style:ANSIModifiers.hidden)
103 | public static let strikethrough = apply(style:ANSIModifiers.strikethrough)
| |- warning: static property 'strikethrough' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'strikethrough' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
[1141/1151] Compiling nostr_cc KeyPair.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:62:23: warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
| |- warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cyan' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let white = apply(style:getColor(color:ANSIColorCode.white, mod: normalText))
64 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:57:23: warning: static property 'red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
55 | // MARK: Normal text colors
56 | public static let black = apply(style:getColor(color:ANSIColorCode.black, mod: normalText))
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
| |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'red' 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
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
[1142/1151] Compiling nostr_cc nostr-cc.swift
[1143/1151] Compiling nostr_cc CLI + Relay.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:10:14: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension CLI {
9 | struct Relay:AsyncParsableCommand {
10 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 | commandName: "relay",
12 | abstract: "take network action on relays.",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import NIO
3 | import nostr
:
8 | extension CLI {
9 | struct Relay:AsyncParsableCommand {
10 | static let configuration = CommandConfiguration(
| |- note: annotate 'configuration' 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
11 | commandName: "relay",
12 | abstract: "take network action on relays.",
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:17:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | struct Connect:ParsableCommand {
17 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
18 | commandName: "connect",
19 | abstract: "connect to a relay."
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:44:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | struct Post:AsyncParsableCommand {
44 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
45 | commandName: "post",
46 | abstract: "post a signed text note event (kind 1) a relay.",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:34:9: warning: initialization of immutable value 'relayConn' was never used; consider replacing with assignment to '_' or removing it
32 | let readKey = try nostr.KeyPair.fromJSONEncodedPath(baseURL)
33 | let buildConf = nostr.Relay.Client.Configuration(authenticationKey:readKey)
34 | let relayConn = try nostr.Relay.connect(url:nostr.URL(url), configuration: buildConf, on:mainEventLoop.next()).wait()
| `- warning: initialization of immutable value 'relayConn' was never used; consider replacing with assignment to '_' or removing it
35 |
36 | sleep(512)
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:74:25: warning: immutable value 'event' was never used; consider replacing with '_' or removing it
72 | result.whenComplete { getResult in
73 | switch getResult {
74 | case .success(let event):
| `- warning: immutable value 'event' was never used; consider replacing with '_' or removing it
75 | CLI.logger.info("successfully posted event: \(newEvent.uid.description.prefix(8))")
76 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:75:54: warning: capture of 'newEvent' with non-sendable type 'Event.Signed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | switch getResult {
74 | case .success(let event):
75 | CLI.logger.info("successfully posted event: \(newEvent.uid.description.prefix(8))")
| `- warning: capture of 'newEvent' with non-sendable type 'Event.Signed' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | case .failure(let error):
77 | print("event failed: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Event/Event.swift:40:16: note: struct 'Signed' does not conform to the 'Sendable' protocol
38 |
39 | /// represents an event whose contents are immutable after signing
40 | public struct Signed:NOSTR_event_signed {
| `- note: struct 'Signed' does not conform to the 'Sendable' protocol
41 | /// the unique identifier for the event
42 | public let uid:UID
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'nostr'
1 | import ArgumentParser
2 | import NIO
3 | import nostr
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'nostr'
4 | import struct Foundation.URL
5 | import class Foundation.FileManager
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:75:54: warning: implicit capture of 'newEvent' requires that 'Event.Signed' conforms to `Sendable`; this is an error in the Swift 6 language mode
73 | switch getResult {
74 | case .success(let event):
75 | CLI.logger.info("successfully posted event: \(newEvent.uid.description.prefix(8))")
| `- warning: implicit capture of 'newEvent' requires that 'Event.Signed' conforms to `Sendable`; this is an error in the Swift 6 language mode
76 | case .failure(let error):
77 | print("event failed: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/nostr/Event/Event.swift:40:16: note: struct 'Signed' does not conform to the 'Sendable' protocol
38 |
39 | /// represents an event whose contents are immutable after signing
40 | public struct Signed:NOSTR_event_signed {
| `- note: struct 'Signed' does not conform to the 'Sendable' protocol
41 | /// the unique identifier for the event
42 | public let uid:UID
[1144/1151] Compiling nostr_cc Profile.swift
[1145/1151] Compiling nostr_cc String.swift
[1146/1151] Compiling nostr_cc CLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI.swift:11:13: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | static let logger = makeDefaultLogger(label:"cc", logLevel:.debug)
10 |
11 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
12 | commandName: "nostr-cc",
13 | abstract: "nostr commandline-client.",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import nostr
3 | import Foundation
:
9 | static let logger = makeDefaultLogger(label:"cc", logLevel:.debug)
10 |
11 | static let configuration = CommandConfiguration(
| |- note: annotate 'configuration' 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
12 | commandName: "nostr-cc",
13 | abstract: "nostr commandline-client.",
[1147/1151] Emitting module nostr_cc
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:10:14: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension CLI {
9 | struct KeyPair:AsyncParsableCommand {
10 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 | commandName: "keypair",
12 | abstract: "manage keypair",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import nostr
3 | import QuickJSON
:
8 | extension CLI {
9 | struct KeyPair:AsyncParsableCommand {
10 | static let configuration = CommandConfiguration(
| |- note: annotate 'configuration' 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
11 | commandName: "keypair",
12 | abstract: "manage keypair",
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:17:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | struct Import:AsyncParsableCommand {
17 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
18 | commandName: "import",
19 | abstract: "import a keypair from input. the file will be saved in the current directory with a specified output name."
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:45:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | struct Generate:AsyncParsableCommand {
45 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
46 | commandName: "generate",
47 | abstract: "generate a new key of a specified name. the key will be exported to a file in the current working directory."
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:72:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | struct Info:AsyncParsableCommand {
72 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
73 | commandName: "info",
74 | abstract: "get info about a keypair file"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:10:14: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension CLI {
9 | struct Relay:AsyncParsableCommand {
10 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 | commandName: "relay",
12 | abstract: "take network action on relays.",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import NIO
3 | import nostr
:
8 | extension CLI {
9 | struct Relay:AsyncParsableCommand {
10 | static let configuration = CommandConfiguration(
| |- note: annotate 'configuration' 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
11 | commandName: "relay",
12 | abstract: "take network action on relays.",
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:17:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | struct Connect:ParsableCommand {
17 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
18 | commandName: "connect",
19 | abstract: "connect to a relay."
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + Relay.swift:44:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | struct Post:AsyncParsableCommand {
44 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
45 | commandName: "post",
46 | abstract: "post a signed text note event (kind 1) a relay.",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI.swift:11:13: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
9 | static let logger = makeDefaultLogger(label:"cc", logLevel:.debug)
10 |
11 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
12 | commandName: "nostr-cc",
13 | abstract: "nostr commandline-client.",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import nostr
3 | import Foundation
:
9 | static let logger = makeDefaultLogger(label:"cc", logLevel:.debug)
10 |
11 | static let configuration = CommandConfiguration(
| |- note: annotate 'configuration' 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
12 | commandName: "nostr-cc",
13 | abstract: "nostr commandline-client.",
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:13:16: warning: static property 'bold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | }
12 | fileprivate struct ANSIModifiers {
13 | static var bold = [1, 22]
| |- warning: static property 'bold' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bold' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'bold' 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
14 | static var blink = [5, 25]
15 | static var dim = [2, 22]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:14:16: warning: static property 'blink' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | fileprivate struct ANSIModifiers {
13 | static var bold = [1, 22]
14 | static var blink = [5, 25]
| |- warning: static property 'blink' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'blink' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'blink' 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
15 | static var dim = [2, 22]
16 | static var italic = [2, 23]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:15:16: warning: static property 'dim' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | static var bold = [1, 22]
14 | static var blink = [5, 25]
15 | static var dim = [2, 22]
| |- warning: static property 'dim' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dim' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dim' 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
16 | static var italic = [2, 23]
17 | static var underline = [4, 24]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:16:16: warning: static property 'italic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | static var blink = [5, 25]
15 | static var dim = [2, 22]
16 | static var italic = [2, 23]
| |- warning: static property 'italic' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'italic' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'italic' 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
17 | static var underline = [4, 24]
18 | static var inverse = [7, 27]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:17:16: warning: static property 'underline' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static var dim = [2, 22]
16 | static var italic = [2, 23]
17 | static var underline = [4, 24]
| |- warning: static property 'underline' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'underline' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'underline' 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
18 | static var inverse = [7, 27]
19 | static var hidden = [8, 28]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:18:16: warning: static property 'inverse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | static var italic = [2, 23]
17 | static var underline = [4, 24]
18 | static var inverse = [7, 27]
| |- warning: static property 'inverse' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'inverse' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'inverse' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static var hidden = [8, 28]
20 | static var strikethrough = [9, 29]
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:19:16: warning: static property 'hidden' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | static var underline = [4, 24]
18 | static var inverse = [7, 27]
19 | static var hidden = [8, 28]
| |- warning: static property 'hidden' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'hidden' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hidden' 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
20 | static var strikethrough = [9, 29]
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:20:16: warning: static property 'strikethrough' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | static var inverse = [7, 27]
19 | static var hidden = [8, 28]
20 | static var strikethrough = [9, 29]
| |- warning: static property 'strikethrough' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strikethrough' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strikethrough' 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
21 | }
22 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:56:23: warning: static property 'black' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
54 |
55 | // MARK: Normal text colors
56 | public static let black = apply(style:getColor(color:ANSIColorCode.black, mod: normalText))
| |- warning: static property 'black' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:57:23: warning: static property 'red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
55 | // MARK: Normal text colors
56 | public static let black = apply(style:getColor(color:ANSIColorCode.black, mod: normalText))
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
| |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'red' 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
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:58:23: warning: static property 'green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
56 | public static let black = apply(style:getColor(color:ANSIColorCode.black, mod: normalText))
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
| |- warning: static property 'green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'green' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:59:23: warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
57 | public static let red = apply(style:getColor(color:ANSIColorCode.red, mod: normalText))
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
| |- warning: static property 'yellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yellow' 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
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:60:23: warning: static property 'blue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
58 | public static let green = apply(style:getColor(color:ANSIColorCode.green, mod: normalText))
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
| |- warning: static property 'blue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:61:23: warning: static property 'magenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
59 | public static let yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: normalText))
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
| |- warning: static property 'magenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'magenta' 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
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
63 | public static let white = apply(style:getColor(color:ANSIColorCode.white, mod: normalText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:62:23: warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
60 | public static let blue = apply(style:getColor(color:ANSIColorCode.blue, mod: normalText))
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
| |- warning: static property 'cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cyan' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let white = apply(style:getColor(color:ANSIColorCode.white, mod: normalText))
64 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:63:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
61 | public static let magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: normalText))
62 | public static let cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: normalText))
63 | public static let white = apply(style:getColor(color:ANSIColorCode.white, mod: normalText))
| |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'white' 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
64 |
65 | // MARK: Bright text colors
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:66:23: warning: static property 'Black' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | // MARK: Bright text colors
66 | public static let Black = apply(style:getColor(color:ANSIColorCode.black, mod: brightText))
| |- warning: static property 'Black' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Black' 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
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:67:23: warning: static property 'Red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
65 | // MARK: Bright text colors
66 | public static let Black = apply(style:getColor(color:ANSIColorCode.black, mod: brightText))
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
| |- warning: static property 'Red' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Red' 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
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:68:23: warning: static property 'Green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
66 | public static let Black = apply(style:getColor(color:ANSIColorCode.black, mod: brightText))
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
| |- warning: static property 'Green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Green' 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
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:69:23: warning: static property 'Yellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
| |- warning: static property 'Yellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Yellow' 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
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:70:23: warning: static property 'Blue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
| |- warning: static property 'Blue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Blue' 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
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
72 | public static let Cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:71:23: warning: static property 'Magenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
| |- warning: static property 'Magenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Magenta' 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
72 | public static let Cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightText))
73 | public static let White = apply(style:getColor(color:ANSIColorCode.white, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:72:23: warning: static property 'Cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
72 | public static let Cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightText))
| |- warning: static property 'Cyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Cyan' 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
73 | public static let White = apply(style:getColor(color:ANSIColorCode.white, mod: brightText))
74 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:73:23: warning: static property 'White' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
71 | public static let Magenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightText))
72 | public static let Cyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightText))
73 | public static let White = apply(style:getColor(color:ANSIColorCode.white, mod: brightText))
| |- warning: static property 'White' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'White' 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
74 |
75 | // MARK: Normal background colors
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:76:23: warning: static property 'bgBlack' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
74 |
75 | // MARK: Normal background colors
76 | public static let bgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: bg))
| |- warning: static property 'bgBlack' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgBlack' 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
77 | public static let bgRed = apply(style:getColor(color:ANSIColorCode.red, mod: bg))
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:77:23: warning: static property 'bgRed' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
75 | // MARK: Normal background colors
76 | public static let bgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: bg))
77 | public static let bgRed = apply(style:getColor(color:ANSIColorCode.red, mod: bg))
| |- warning: static property 'bgRed' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgRed' 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
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:78:23: warning: static property 'bgGreen' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
76 | public static let bgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: bg))
77 | public static let bgRed = apply(style:getColor(color:ANSIColorCode.red, mod: bg))
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
| |- warning: static property 'bgGreen' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgGreen' 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
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:79:23: warning: static property 'bgYellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
77 | public static let bgRed = apply(style:getColor(color:ANSIColorCode.red, mod: bg))
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
| |- warning: static property 'bgYellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgYellow' 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
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:80:23: warning: static property 'bgBlue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
78 | public static let bgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: bg))
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
| |- warning: static property 'bgBlue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgBlue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
82 | public static let bgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:81:23: warning: static property 'bgMagenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
79 | public static let bgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: bg))
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
| |- warning: static property 'bgMagenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgMagenta' 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
82 | public static let bgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: bg))
83 | public static let bgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: bg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:82:23: warning: static property 'bgCyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
80 | public static let bgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: bg))
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
82 | public static let bgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: bg))
| |- warning: static property 'bgCyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgCyan' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | public static let bgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: bg))
84 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:83:23: warning: static property 'bgWhite' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
81 | public static let bgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: bg))
82 | public static let bgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: bg))
83 | public static let bgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: bg))
| |- warning: static property 'bgWhite' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bgWhite' 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
84 |
85 | // MARK: Bright background colors
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:86:23: warning: static property 'BgBlack' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
84 |
85 | // MARK: Bright background colors
86 | public static let BgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: brightBg))
| |- warning: static property 'BgBlack' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgBlack' 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
87 | public static let BgRed = apply(style:getColor(color:ANSIColorCode.red, mod: brightBg))
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:87:23: warning: static property 'BgRed' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
85 | // MARK: Bright background colors
86 | public static let BgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: brightBg))
87 | public static let BgRed = apply(style:getColor(color:ANSIColorCode.red, mod: brightBg))
| |- warning: static property 'BgRed' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgRed' 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
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:88:23: warning: static property 'BgGreen' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
86 | public static let BgBlack = apply(style:getColor(color:ANSIColorCode.black, mod: brightBg))
87 | public static let BgRed = apply(style:getColor(color:ANSIColorCode.red, mod: brightBg))
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
| |- warning: static property 'BgGreen' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgGreen' 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
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:89:23: warning: static property 'BgYellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
87 | public static let BgRed = apply(style:getColor(color:ANSIColorCode.red, mod: brightBg))
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
| |- warning: static property 'BgYellow' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgYellow' 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
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:90:23: warning: static property 'BgBlue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
88 | public static let BgGreen = apply(style:getColor(color:ANSIColorCode.green, mod: brightBg))
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
| |- warning: static property 'BgBlue' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgBlue' 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
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
92 | public static let BgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:91:23: warning: static property 'BgMagenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
89 | public static let BgYellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightBg))
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
| |- warning: static property 'BgMagenta' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgMagenta' 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
92 | public static let BgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightBg))
93 | public static let BgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: brightBg))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:92:23: warning: static property 'BgCyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
90 | public static let BgBlue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightBg))
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
92 | public static let BgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightBg))
| |- warning: static property 'BgCyan' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgCyan' 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
93 | public static let BgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: brightBg))
94 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:93:23: warning: static property 'BgWhite' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
91 | public static let BgMagenta = apply(style:getColor(color:ANSIColorCode.magenta, mod: brightBg))
92 | public static let BgCyan = apply(style:getColor(color:ANSIColorCode.cyan, mod: brightBg))
93 | public static let BgWhite = apply(style:getColor(color:ANSIColorCode.white, mod: brightBg))
| |- warning: static property 'BgWhite' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'BgWhite' 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
94 |
95 | // MARK: Text modifiers
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:96:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
94 |
95 | // MARK: Text modifiers
96 | public static let bold = apply(style:ANSIModifiers.bold)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
97 | public static let blink = apply(style:ANSIModifiers.blink)
98 | public static let dim = apply(style:ANSIModifiers.dim)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:97:23: warning: static property 'blink' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
95 | // MARK: Text modifiers
96 | public static let bold = apply(style:ANSIModifiers.bold)
97 | public static let blink = apply(style:ANSIModifiers.blink)
| |- warning: static property 'blink' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blink' 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
98 | public static let dim = apply(style:ANSIModifiers.dim)
99 | public static let italic = apply(style:ANSIModifiers.italic)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:98:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
96 | public static let bold = apply(style:ANSIModifiers.bold)
97 | public static let blink = apply(style:ANSIModifiers.blink)
98 | public static let dim = apply(style:ANSIModifiers.dim)
| |- warning: static property 'dim' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dim' 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
99 | public static let italic = apply(style:ANSIModifiers.italic)
100 | public static let underline = apply(style:ANSIModifiers.underline)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:99:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
97 | public static let blink = apply(style:ANSIModifiers.blink)
98 | public static let dim = apply(style:ANSIModifiers.dim)
99 | public static let italic = apply(style:ANSIModifiers.italic)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
100 | public static let underline = apply(style:ANSIModifiers.underline)
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:100:23: warning: static property 'underline' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
98 | public static let dim = apply(style:ANSIModifiers.dim)
99 | public static let italic = apply(style:ANSIModifiers.italic)
100 | public static let underline = apply(style:ANSIModifiers.underline)
| |- warning: static property 'underline' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'underline' 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
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
102 | public static let hidden = apply(style:ANSIModifiers.hidden)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:101:23: warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
99 | public static let italic = apply(style:ANSIModifiers.italic)
100 | public static let underline = apply(style:ANSIModifiers.underline)
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
| |- warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inverse' 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
102 | public static let hidden = apply(style:ANSIModifiers.hidden)
103 | public static let strikethrough = apply(style:ANSIModifiers.strikethrough)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:102:23: warning: static property 'hidden' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
100 | public static let underline = apply(style:ANSIModifiers.underline)
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
102 | public static let hidden = apply(style:ANSIModifiers.hidden)
| |- warning: static property 'hidden' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'hidden' 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
103 | public static let strikethrough = apply(style:ANSIModifiers.strikethrough)
104 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:103:23: warning: static property 'strikethrough' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
101 | public static let inverse = apply(style:ANSIModifiers.inverse)
102 | public static let hidden = apply(style:ANSIModifiers.hidden)
103 | public static let strikethrough = apply(style:ANSIModifiers.strikethrough)
| |- warning: static property 'strikethrough' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'strikethrough' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
[1148/1151] Compiling nostr_cc CLI + KeyPair.swift
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:10:14: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension CLI {
9 | struct KeyPair:AsyncParsableCommand {
10 | static let configuration = CommandConfiguration(
| `- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
11 | commandName: "keypair",
12 | abstract: "manage keypair",
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
1 | import ArgumentParser
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ArgumentParser'
2 | import nostr
3 | import QuickJSON
:
8 | extension CLI {
9 | struct KeyPair:AsyncParsableCommand {
10 | static let configuration = CommandConfiguration(
| |- note: annotate 'configuration' 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
11 | commandName: "keypair",
12 | abstract: "manage keypair",
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:17:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | struct Import:AsyncParsableCommand {
17 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
18 | commandName: "import",
19 | abstract: "import a keypair from input. the file will be saved in the current directory with a specified output name."
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:45:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | struct Generate:AsyncParsableCommand {
45 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
46 | commandName: "generate",
47 | abstract: "generate a new key of a specified name. the key will be exported to a file in the current working directory."
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/CLI/CLI + KeyPair.swift:72:15: warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | struct Info:AsyncParsableCommand {
72 | static let configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because non-'Sendable' type 'CommandConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'configuration' 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
73 | commandName: "info",
74 | abstract: "get info about a keypair file"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/CommandConfiguration.swift:13:15: note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
11 |
12 | /// The configuration for a command.
13 | public struct CommandConfiguration {
| `- note: struct 'CommandConfiguration' does not conform to the 'Sendable' protocol
14 | /// The name of the command to use on the command line.
15 | ///
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:68:23: warning: static property 'Green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
66 | public static let Black = apply(style:getColor(color:ANSIColorCode.black, mod: brightText))
67 | public static let Red = apply(style:getColor(color:ANSIColorCode.red, mod: brightText))
68 | public static let Green = apply(style:getColor(color:ANSIColorCode.green, mod: brightText))
| |- warning: static property 'Green' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Green' 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
69 | public static let Yellow = apply(style:getColor(color:ANSIColorCode.yellow, mod: brightText))
70 | public static let Blue = apply(style:getColor(color:ANSIColorCode.blue, mod: brightText))
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/nostr-cc/Colors.swift:98:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
96 | public static let bold = apply(style:ANSIModifiers.bold)
97 | public static let blink = apply(style:ANSIModifiers.blink)
98 | public static let dim = apply(style:ANSIModifiers.dim)
| |- warning: static property 'dim' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dim' 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
99 | public static let italic = apply(style:ANSIModifiers.italic)
100 | public static let underline = apply(style:ANSIModifiers.underline)
[1148/1151] Write Objects.LinkFileList
error: link command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture arm64:
"protocol descriptor for nostr.NOSTR_bech32", referenced from:
l_got.$s5nostr12NOSTR_bech32Mp in PublicKey.swift.o
l_got.$s5nostr12NOSTR_bech32Mp in SecretKey.swift.o
"protocol descriptor for nostr.NOSTR_bech32_raw", referenced from:
l_got.$s5nostr16NOSTR_bech32_rawMp in PublicKey.swift.o
l_got.$s5nostr16NOSTR_bech32_rawMp in SecretKey.swift.o
"(extension in nostr):nostr.NOSTR_bech32_raw.NOSTR_bech32() -> Swift.String", referenced from:
protocol witness for nostr.NOSTR_bech32.NOSTR_bech32() -> Swift.String in conformance nostr.PublicKey : nostr.NOSTR_bech32 in nostr in PublicKey.swift.o
nostr.PublicKey.npubString() -> Swift.String in PublicKey.swift.o
protocol witness for nostr.NOSTR_bech32.NOSTR_bech32() -> Swift.String in conformance nostr.SecretKey : nostr.NOSTR_bech32 in nostr in SecretKey.swift.o
nostr.SecretKey.nsecString() -> Swift.String in SecretKey.swift.o
"(extension in nostr):nostr.NOSTR_bech32_raw.init(NOSTR_bech32: Swift.String) throws -> A", referenced from:
protocol witness for nostr.NOSTR_bech32.init(NOSTR_bech32: Swift.String) throws -> A in conformance nostr.PublicKey : nostr.NOSTR_bech32 in nostr in PublicKey.swift.o
nostr.PublicKey.init(npubString: Swift.String) throws -> nostr.PublicKey in PublicKey.swift.o
protocol witness for nostr.NOSTR_bech32.init(NOSTR_bech32: Swift.String) throws -> A in conformance nostr.SecretKey : nostr.NOSTR_bech32 in nostr in SecretKey.swift.o
nostr.SecretKey.init(nsec: Swift.String) throws -> nostr.SecretKey in SecretKey.swift.o
"static (extension in nostr):nostr.NOSTR_bech32_raw.NOSTR_bech32_TL_DEF.getter : nostr.NOSTR_bech32_TL_DEF?", referenced from:
protocol witness for static nostr.NOSTR_bech32.NOSTR_bech32_TL_DEF.getter : nostr.NOSTR_bech32_TL_DEF? in conformance nostr.PublicKey : nostr.NOSTR_bech32 in nostr in PublicKey.swift.o
protocol witness for static nostr.NOSTR_bech32.NOSTR_bech32_TL_DEF.getter : nostr.NOSTR_bech32_TL_DEF? in conformance nostr.SecretKey : nostr.NOSTR_bech32 in nostr in SecretKey.swift.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[1149/1151] Linking nostr-cc
BUILD FAILURE 6.0 macosSpm