The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SwiftyNats, reference main (f3ec39), with Swift 6.0 for Linux on 2 Nov 2024 00:08:52 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aus-der-Technik/SwiftyNats.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/aus-der-Technik/SwiftyNats
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f3ec391 NatsServer is a Codable now
Cloned https://github.com/aus-der-Technik/SwiftyNats.git
Revision (git rev-parse @):
f3ec3918499537709884c11d365926466d9dda7f
SUCCESS checkout https://github.com/aus-der-Technik/SwiftyNats.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/aus-der-Technik/SwiftyNats.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
[1/3660] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.72s)
[1/71141] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (5.24s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.54s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (1.15s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/1569] Fetching swift-atomics
[535/5470] Fetching swift-atomics, swift-system
[5471/20945] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.07s)
Fetched https://github.com/apple/swift-system.git from cache (1.07s)
Fetched https://github.com/apple/swift-collections.git from cache (1.09s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.43s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.47s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.71s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.76.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Building for debugging...
[0/22] Write sources
[11/22] Compiling CNIOWindows shim.c
[12/22] Compiling CNIOWindows WSAStartup.c
[12/22] Compiling CNIOWASI CNIOWASI.c
[12/22] Compiling CNIOLinux liburing_shims.c
[15/22] Write sources
[16/22] Compiling CNIODarwin shim.c
[17/22] Compiling _AtomicsShims.c
[18/22] Compiling CNIOLinux shim.c
[19/22] Write swift-version-24593BA9C3E375BF.txt
[20/69] Compiling c-nioatomics.c
[21/69] Compiling c-atomics.c
[23/75] Emitting module InternalCollectionsUtilities
[24/77] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[25/77] Compiling InternalCollectionsUtilities Specialize.swift
[26/77] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[27/77] Compiling InternalCollectionsUtilities Debugging.swift
[28/77] Compiling InternalCollectionsUtilities Descriptions.swift
[29/77] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[30/77] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[31/77] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[32/77] Emitting module NIOConcurrencyHelpers
[33/79] Emitting module _NIOBase64
[34/79] Compiling _NIOBase64 Base64.swift
[35/80] Compiling Atomics AtomicReference.swift
[36/80] Compiling Atomics AtomicStorage.swift
[37/80] Compiling Atomics AtomicValue.swift
[38/80] Emitting module Atomics
[39/80] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[43/80] Compiling _NIODataStructures PriorityQueue.swift
[44/80] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[45/80] Compiling InternalCollectionsUtilities Integer rank.swift
[46/80] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[47/80] Compiling Atomics Primitives.shims.swift
[48/80] Compiling Atomics AtomicInteger.swift
[63/80] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[64/80] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[65/80] Compiling _NIODataStructures _TinyArray.swift
[69/81] Compiling Atomics IntegerOperations.swift
[70/81] Compiling Atomics Unmanaged extensions.swift
[72/97] Compiling NIOConcurrencyHelpers lock.swift
[73/97] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[74/97] Compiling NIOConcurrencyHelpers NIOLock.swift
[75/97] Compiling NIOConcurrencyHelpers atomics.swift
[76/97] Compiling DequeModule Deque+Equatable.swift
[77/97] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[78/97] Compiling Logging MetadataProvider.swift
[79/97] Compiling Logging Locks.swift
[80/97] Compiling Logging LogHandler.swift
[81/97] Emitting module Logging
[82/97] Compiling Logging Logging.swift
[83/101] Emitting module _NIODataStructures
[84/101] Compiling _NIODataStructures Heap.swift
[86/102] Compiling DequeModule _DequeBuffer.swift
[87/102] Compiling DequeModule _DequeBufferHeader.swift
[90/102] Compiling DequeModule Deque+Testing.swift
[91/102] Compiling DequeModule Deque._Storage.swift
[92/102] Compiling DequeModule Deque._UnsafeHandle.swift
[93/102] Compiling DequeModule Deque.swift
[94/102] Compiling DequeModule Deque+Extras.swift
[95/102] Compiling DequeModule Deque+Hashable.swift
[96/102] Compiling DequeModule _DequeSlot.swift
[97/102] Compiling DequeModule _UnsafeWrappedBuffer.swift
[98/102] Compiling DequeModule Deque+CustomReflectable.swift
[99/102] Compiling DequeModule Deque+Descriptions.swift
[100/102] Compiling DequeModule Deque+Codable.swift
[101/102] Compiling DequeModule Deque+Collection.swift
[102/102] Emitting module DequeModule
[104/163] Compiling NIOCore IO.swift
[105/163] Compiling NIOCore IOData.swift
[106/163] Compiling NIOCore IPProtocol.swift
[107/163] Compiling NIOCore IntegerBitPacking.swift
[108/163] Compiling NIOCore IntegerTypes.swift
[109/163] Compiling NIOCore Interfaces.swift
[110/163] Compiling NIOCore Linux.swift
[111/163] Compiling NIOCore MarkedCircularBuffer.swift
[112/171] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[113/171] Compiling NIOCore EventLoopFuture+Deprecated.swift
[114/171] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[115/171] Compiling NIOCore EventLoopFuture.swift
[116/171] Compiling NIOCore FileDescriptor.swift
[117/171] Compiling NIOCore FileHandle.swift
[118/171] Compiling NIOCore FileRegion.swift
[119/171] Compiling NIOCore GlobalSingletons.swift
[120/171] Compiling NIOCore CircularBuffer.swift
[121/171] Compiling NIOCore Codec.swift
[122/171] Compiling NIOCore ConvenienceOptionSupport.swift
[123/171] Compiling NIOCore DeadChannel.swift
[124/171] Compiling NIOCore DispatchQueue+WithFuture.swift
[125/171] Compiling NIOCore EventLoop+Deprecated.swift
[126/171] Compiling NIOCore EventLoop+SerialExecutor.swift
[127/171] Compiling NIOCore EventLoop.swift
[128/171] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[129/171] Compiling NIOCore SocketAddresses.swift
[130/171] Compiling NIOCore SocketOptionProvider.swift
[131/171] Compiling NIOCore SystemCallHelpers.swift
[132/171] Compiling NIOCore TimeAmount+Duration.swift
[133/171] Compiling NIOCore TypeAssistedChannelHandler.swift
[134/171] Compiling NIOCore UniversalBootstrapSupport.swift
[135/171] Compiling NIOCore Utilities.swift
[136/171] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[137/171] Compiling NIOCore BSDSocketAPI.swift
[138/171] Compiling NIOCore ByteBuffer-aux.swift
[139/171] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[140/171] Compiling NIOCore ByteBuffer-conversions.swift
[141/171] Compiling NIOCore ByteBuffer-core.swift
[142/171] Compiling NIOCore ByteBuffer-hex.swift
[143/171] Compiling NIOCore ByteBuffer-int.swift
[144/171] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[145/171] Compiling NIOCore MulticastChannel.swift
[146/171] Compiling NIOCore NIOAny.swift
[147/171] Compiling NIOCore NIOCloseOnErrorHandler.swift
[148/171] Compiling NIOCore NIOLoopBound.swift
[149/171] Compiling NIOCore NIOScheduledCallback.swift
[150/171] Compiling NIOCore NIOSendable.swift
[151/171] Compiling NIOCore PointerHelpers.swift
[152/171] Compiling NIOCore RecvByteBufferAllocator.swift
[153/171] Compiling NIOCore AddressedEnvelope.swift
[154/171] Compiling NIOCore AsyncAwaitSupport.swift
[155/171] Compiling NIOCore AsyncChannel.swift
[156/171] Compiling NIOCore AsyncChannelHandler.swift
[157/171] Compiling NIOCore AsyncChannelInboundStream.swift
[158/171] Compiling NIOCore AsyncChannelOutboundWriter.swift
[159/171] Compiling NIOCore NIOAsyncSequenceProducer.swift
[160/171] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[161/171] Compiling NIOCore NIOAsyncWriter.swift
[162/171] Compiling NIOCore ByteBuffer-multi-int.swift
[163/171] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[164/171] Compiling NIOCore ByteBuffer-views.swift
[165/171] Compiling NIOCore Channel.swift
[166/171] Compiling NIOCore ChannelHandler.swift
[167/171] Compiling NIOCore ChannelHandlers.swift
[168/171] Compiling NIOCore ChannelInvoker.swift
[169/171] Compiling NIOCore ChannelOption.swift
[170/171] Compiling NIOCore ChannelPipeline.swift
[171/171] Emitting module NIOCore
[173/224] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[174/224] Compiling NIOEmbedded AsyncTestingChannel.swift
[175/224] Compiling NIOEmbedded Embedded.swift
[176/224] Emitting module NIOEmbedded
[178/225] Emitting module NIOPosix
[179/225] Compiling NIOPosix BSDSocketAPICommon.swift
[180/225] Compiling NIOPosix BSDSocketAPIPosix.swift
[181/225] Compiling NIOPosix BSDSocketAPIWindows.swift
[182/225] Compiling NIOPosix BaseSocket.swift
[183/225] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[184/225] Compiling NIOPosix BaseSocketChannel.swift
[185/225] Compiling NIOPosix BaseStreamSocketChannel.swift
[186/231] Compiling NIOPosix SelectableChannel.swift
[187/231] Compiling NIOPosix SelectableEventLoop.swift
[188/231] Compiling NIOPosix SelectorEpoll.swift
[189/231] Compiling NIOPosix SelectorGeneric.swift
[190/231] Compiling NIOPosix SelectorKqueue.swift
[191/231] Compiling NIOPosix SelectorUring.swift
[192/231] Compiling NIOPosix IO.swift
[193/231] Compiling NIOPosix IntegerBitPacking.swift
[194/231] Compiling NIOPosix IntegerTypes.swift
[195/231] Compiling NIOPosix Linux.swift
[196/231] Compiling NIOPosix LinuxCPUSet.swift
[197/231] Compiling NIOPosix LinuxUring.swift
[198/231] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[199/231] Compiling NIOPosix Pool.swift
[200/231] Compiling NIOPosix PooledRecvBufferAllocator.swift
[201/231] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[202/231] Compiling NIOPosix PosixSingletons.swift
[203/231] Compiling NIOPosix RawSocketBootstrap.swift
[204/231] Compiling NIOPosix Resolver.swift
[205/231] Compiling NIOPosix Selectable.swift
[206/231] Compiling NIOPosix ServerSocket.swift
[207/231] Compiling NIOPosix Socket.swift
[208/231] Compiling NIOPosix SocketChannel.swift
[209/231] Compiling NIOPosix SocketProtocols.swift
[210/231] Compiling NIOPosix System.swift
[211/231] Compiling NIOPosix Thread.swift
[212/231] Compiling NIOPosix ThreadPosix.swift
[213/231] Compiling NIOPosix ThreadWindows.swift
[214/231] Compiling NIOPosix UnsafeTransfer.swift
[215/231] Compiling NIOPosix Utilities.swift
[216/231] Compiling NIOPosix VsockAddress.swift
[217/231] Compiling NIOPosix VsockChannelEvents.swift
[218/231] Compiling NIOPosix Bootstrap.swift
[219/231] Compiling NIOPosix ControlMessage.swift
[220/231] Compiling NIOPosix DatagramVectorReadManager.swift
[221/231] Compiling NIOPosix Errors+Any.swift
[222/231] Compiling NIOPosix FileDescriptor.swift
[223/231] Compiling NIOPosix GetaddrinfoResolver.swift
[224/231] Compiling NIOPosix HappyEyeballs.swift
[225/231] Compiling NIOPosix NIOThreadPool.swift
[226/231] Compiling NIOPosix NonBlockingFileIO.swift
[227/231] Compiling NIOPosix PendingDatagramWritesManager.swift
[228/231] Compiling NIOPosix PendingWritesManager.swift
[229/231] Compiling NIOPosix PipeChannel.swift
[230/231] Compiling NIOPosix PipePair.swift
[231/231] Compiling NIOPosix PointerHelpers.swift
[233/234] Compiling NIO Exports.swift
[234/234] Emitting module NIO
[236/252] Emitting module SwiftyNats
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 13 |
 14 |     /// Connect to the NATS server
 15 |     open func connect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 16 |         logger.debug("Try to connect.")
 17 |         guard self.state != .connected else {
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:44:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 42 |
 43 |     /// Disconnect from the NATS server
 44 |     open func disconnect() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |         logger.debug("Try to disconnect.")
 46 |         do {
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:61:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 59 |     // MARK: - Internal Methods
 60 |
 61 |     open func reconnect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 62 |         self.fire(.reconnecting)
 63 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:11:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 9 |
10 |     @discardableResult
11 |     open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 |         return self.addListeners(for: events, using: handler)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |
17 |     @discardableResult
18 |     open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |
20 |         return self.addListeners(for: [event], using: handler)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:25:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |
24 |     @discardableResult
25 |     open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |
27 |         return self.addListeners(for: [event], using: handler, autoOff)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:32:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
30 |
31 |     @discardableResult
32 |     open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
33 |
34 |         return self.addListeners(for: events, using: handler, autoOff)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 |     }
37 |
38 |     open func off(_ id: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 |
40 |         self.removeListener(id)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 |     // MARK: - Implement NatsPublish Protocol
12 |
13 |     open func publish(_ payload: String, to subject: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 |         logger.info("publish \(payload.count) characters to subject \(subject)")
15 |         sendMessage(NatsMessage.publish(payload: payload, subject: subject))
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |     }
17 |
18 |     open func publish(_ payload: String, to subject: NatsSubject) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |         publish(payload, to: subject.subject)
20 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:22:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |     }
21 |
22 |     open func reply(to message: NatsMessage, withPayload payload: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |         guard let replySubject = message.replySubject else { return }
24 |         logger.info("reply \(payload.count) characters to subject \(replySubject.subject)")
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |     }
27 |
28 |     open func publishSync(_ payload: String, to subject: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 |     }
49 |
50 |     open func publishSync(_ payload: String, to subject: NatsSubject) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 |         try publishSync(payload, to: subject.subject)
52 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 |     }
53 |
54 |     open func replySync(to message: NatsMessage, withPayload payload: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 |         guard let replySubject = message.replySubject else { return }
56 |         try publishSync(payload, to: replySubject.subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 |     }
18 |
19 |     open func flushQueue(maxWait: TimeInterval? = nil) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |
21 |         let startTimestamp = Date().timeIntervalSinceReferenceDate
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:14:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 12 |
 13 |     @discardableResult
 14 |     open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 15 |         logger.info("subscribe to subject \(subject)")
 16 |         let nsub = NatsSubject(subject: subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:26:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 24 |
 25 |     @discardableResult
 26 |     open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 27 |         logger.info("subscribe to subject \(subject)")
 28 |         let nsub = NatsSubject(subject: subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 36 |     }
 37 |
 38 |     open func unsubscribe(from subject: NatsSubject) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 39 |         logger.info("unsubscribe from subject \(subject)")
 40 |         self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:45:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 43 |     }
 44 |
 45 |     open func unsubscribeSync(from subject: NatsSubject) throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 46 |         logger.info("unsubscribe syncrnon from subject \(subject)")
 47 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:70:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 68 |
 69 |     @discardableResult
 70 |     open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 71 |         return try subSync(to: subject, asPartOf: "", handler)
 72 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:75:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 73 |
 74 |     @discardableResult
 75 |     open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 76 |         return try subSync(to: subject, asPartOf: queue, handler)
 77 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// Nats events
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected      = "connected"
 19 |     case disconnected   = "disconnected"
    :
 23 |     case reconnecting   = "reconnecting"
 24 |     case informed       = "informed"
 25 |     static let all      = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
[237/254] Compiling SwiftyNats NatsServer.swift
[238/254] Compiling SwiftyNats NatsSubject.swift
[239/254] Compiling SwiftyNats Data+String.swift
[240/254] Compiling SwiftyNats Streams+Read+Write.swift
[241/254] Compiling SwiftyNats String+Utilities.swift
[242/254] Compiling SwiftyNats NatsClient+Publish.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 |     // MARK: - Implement NatsPublish Protocol
12 |
13 |     open func publish(_ payload: String, to subject: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 |         logger.info("publish \(payload.count) characters to subject \(subject)")
15 |         sendMessage(NatsMessage.publish(payload: payload, subject: subject))
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |     }
17 |
18 |     open func publish(_ payload: String, to subject: NatsSubject) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |         publish(payload, to: subject.subject)
20 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:22:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |     }
21 |
22 |     open func reply(to message: NatsMessage, withPayload payload: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |         guard let replySubject = message.replySubject else { return }
24 |         logger.info("reply \(payload.count) characters to subject \(replySubject.subject)")
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |     }
27 |
28 |     open func publishSync(_ payload: String, to subject: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 |     }
49 |
50 |     open func publishSync(_ payload: String, to subject: NatsSubject) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 |         try publishSync(payload, to: subject.subject)
52 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 |     }
53 |
54 |     open func replySync(to message: NatsMessage, withPayload payload: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 |         guard let replySubject = message.replySubject else { return }
56 |         try publishSync(payload, to: replySubject.subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 |     }
18 |
19 |     open func flushQueue(maxWait: TimeInterval? = nil) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |
21 |         let startTimestamp = Date().timeIntervalSinceReferenceDate
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:26:13: warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 |         DispatchQueue.global(qos: .default).async { [weak self] in
26 |             self?.messageQueue.waitUntilAllOperationsAreFinished()
   |             `- warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         }
28 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
[243/254] Compiling SwiftyNats NatsClient+Queue.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:13:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
11 |     // MARK: - Implement NatsPublish Protocol
12 |
13 |     open func publish(_ payload: String, to subject: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
14 |         logger.info("publish \(payload.count) characters to subject \(subject)")
15 |         sendMessage(NatsMessage.publish(payload: payload, subject: subject))
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |     }
17 |
18 |     open func publish(_ payload: String, to subject: NatsSubject) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |         publish(payload, to: subject.subject)
20 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:22:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |     }
21 |
22 |     open func reply(to message: NatsMessage, withPayload payload: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |         guard let replySubject = message.replySubject else { return }
24 |         logger.info("reply \(payload.count) characters to subject \(replySubject.subject)")
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:28:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |     }
27 |
28 |     open func publishSync(_ payload: String, to subject: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
29 |
30 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:50:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
48 |     }
49 |
50 |     open func publishSync(_ payload: String, to subject: NatsSubject) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
51 |         try publishSync(payload, to: subject.subject)
52 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Publish.swift:54:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
52 |     }
53 |
54 |     open func replySync(to message: NatsMessage, withPayload payload: String) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
55 |         guard let replySubject = message.replySubject else { return }
56 |         try publishSync(payload, to: replySubject.subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:19:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
17 |     }
18 |
19 |     open func flushQueue(maxWait: TimeInterval? = nil) throws {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
20 |
21 |         let startTimestamp = Date().timeIntervalSinceReferenceDate
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Queue.swift:26:13: warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |
25 |         DispatchQueue.global(qos: .default).async { [weak self] in
26 |             self?.messageQueue.waitUntilAllOperationsAreFinished()
   |             `- warning: capture of 'self' with non-sendable type 'NatsClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |         }
28 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
[244/254] Compiling SwiftyNats NatsClient+ServerInfo.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:14:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 12 |
 13 |     @discardableResult
 14 |     open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 15 |         logger.info("subscribe to subject \(subject)")
 16 |         let nsub = NatsSubject(subject: subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:26:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 24 |
 25 |     @discardableResult
 26 |     open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 27 |         logger.info("subscribe to subject \(subject)")
 28 |         let nsub = NatsSubject(subject: subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 36 |     }
 37 |
 38 |     open func unsubscribe(from subject: NatsSubject) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 39 |         logger.info("unsubscribe from subject \(subject)")
 40 |         self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:45:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 43 |     }
 44 |
 45 |     open func unsubscribeSync(from subject: NatsSubject) throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 46 |         logger.info("unsubscribe syncrnon from subject \(subject)")
 47 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:70:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 68 |
 69 |     @discardableResult
 70 |     open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 71 |         return try subSync(to: subject, asPartOf: "", handler)
 72 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:75:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 73 |
 74 |     @discardableResult
 75 |     open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 76 |         return try subSync(to: subject, asPartOf: queue, handler)
 77 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
[245/254] Compiling SwiftyNats NatsClient+Subscribe.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:14:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 12 |
 13 |     @discardableResult
 14 |     open func subscribe(to subject: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 15 |         logger.info("subscribe to subject \(subject)")
 16 |         let nsub = NatsSubject(subject: subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:26:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 24 |
 25 |     @discardableResult
 26 |     open func subscribe(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 27 |         logger.info("subscribe to subject \(subject)")
 28 |         let nsub = NatsSubject(subject: subject)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 36 |     }
 37 |
 38 |     open func unsubscribe(from subject: NatsSubject) {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 39 |         logger.info("unsubscribe from subject \(subject)")
 40 |         self.sendMessage(NatsMessage.unsubscribe(sid: subject.id))
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:45:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 43 |     }
 44 |
 45 |     open func unsubscribeSync(from subject: NatsSubject) throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 46 |         logger.info("unsubscribe syncrnon from subject \(subject)")
 47 |         let group = DispatchGroup()
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:70:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 68 |
 69 |     @discardableResult
 70 |     open func subscribeSync(to subject: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 71 |         return try subSync(to: subject, asPartOf: "", handler)
 72 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Subscribe.swift:75:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 73 |
 74 |     @discardableResult
 75 |     open func subscribeSync(to subject: String, asPartOf queue: String, _ handler: @escaping (NatsMessage) -> Void) throws -> NatsSubject {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 76 |         return try subSync(to: subject, asPartOf: queue, handler)
 77 |     }
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
[246/254] Compiling SwiftyNats NatsClient+ChannelHandler.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:13: warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 |         self.messageQueue.addOperation {
116 |             handler(message)
    |             |- warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
117 |         }
118 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:21: warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 |         self.messageQueue.addOperation {
116 |             handler(message)
    |                     `- warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |         }
118 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsMessage.swift:8:15: note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
 6 | import Foundation
 7 |
 8 | public struct NatsMessage {
   |               `- note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
 9 |
10 |     public let payload: String?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 13 |
 14 |     /// Connect to the NATS server
 15 |     open func connect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 16 |         logger.debug("Try to connect.")
 17 |         guard self.state != .connected else {
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:44:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 42 |
 43 |     /// Disconnect from the NATS server
 44 |     open func disconnect() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |         logger.debug("Try to disconnect.")
 46 |         do {
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:61:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 59 |     // MARK: - Internal Methods
 60 |
 61 |     open func reconnect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 62 |         self.fire(.reconnecting)
 63 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:25:27: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 |
 24 |         #if os(Linux)
 25 |         thread = Thread { self.setupConnection() }
    |                           `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 26 |         #else
 27 |         thread = Thread(target: self, selector: #selector(self.setupConnection), object: nil)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:141:45: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |             .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
140 |             .channelInitializer { channel in
141 |                 channel.pipeline.addHandler(self)
    |                                             `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 |             }.connectTimeout( TimeAmount.seconds(5) )
143 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:154:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 |                 logger.error("Server returned an error while trying to connect")
153 |             } else {
154 |                 self.channel = channel
    |                 `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 |             }
156 |         })
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:150:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
148 |         })
149 |         futureConnection.whenSuccess({channel in
150 |             if hasErrored {
    |                `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
151 |                 //throw NatsConnectionError("Server returned an error while trying to connect")
152 |                 logger.error("Server returned an error while trying to connect")
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:11:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 9 |
10 |     @discardableResult
11 |     open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 |         return self.addListeners(for: events, using: handler)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |
17 |     @discardableResult
18 |     open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |
20 |         return self.addListeners(for: [event], using: handler)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:25:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |
24 |     @discardableResult
25 |     open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |
27 |         return self.addListeners(for: [event], using: handler, autoOff)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:32:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
30 |
31 |     @discardableResult
32 |     open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
33 |
34 |         return self.addListeners(for: events, using: handler, autoOff)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 |     }
37 |
38 |     open func off(_ id: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 |
40 |         self.removeListener(id)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// Nats events
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected      = "connected"
 19 |     case disconnected   = "disconnected"
    :
 23 |     case reconnecting   = "reconnecting"
 24 |     case informed       = "informed"
 25 |     static let all      = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
[247/254] Compiling SwiftyNats NatsClient+Connection.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:13: warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 |         self.messageQueue.addOperation {
116 |             handler(message)
    |             |- warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
117 |         }
118 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:21: warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 |         self.messageQueue.addOperation {
116 |             handler(message)
    |                     `- warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |         }
118 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsMessage.swift:8:15: note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
 6 | import Foundation
 7 |
 8 | public struct NatsMessage {
   |               `- note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
 9 |
10 |     public let payload: String?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 13 |
 14 |     /// Connect to the NATS server
 15 |     open func connect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 16 |         logger.debug("Try to connect.")
 17 |         guard self.state != .connected else {
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:44:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 42 |
 43 |     /// Disconnect from the NATS server
 44 |     open func disconnect() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |         logger.debug("Try to disconnect.")
 46 |         do {
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:61:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 59 |     // MARK: - Internal Methods
 60 |
 61 |     open func reconnect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 62 |         self.fire(.reconnecting)
 63 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:25:27: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 |
 24 |         #if os(Linux)
 25 |         thread = Thread { self.setupConnection() }
    |                           `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 26 |         #else
 27 |         thread = Thread(target: self, selector: #selector(self.setupConnection), object: nil)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:141:45: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |             .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
140 |             .channelInitializer { channel in
141 |                 channel.pipeline.addHandler(self)
    |                                             `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 |             }.connectTimeout( TimeAmount.seconds(5) )
143 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:154:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 |                 logger.error("Server returned an error while trying to connect")
153 |             } else {
154 |                 self.channel = channel
    |                 `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 |             }
156 |         })
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:150:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
148 |         })
149 |         futureConnection.whenSuccess({channel in
150 |             if hasErrored {
    |                `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
151 |                 //throw NatsConnectionError("Server returned an error while trying to connect")
152 |                 logger.error("Server returned an error while trying to connect")
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:11:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 9 |
10 |     @discardableResult
11 |     open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 |         return self.addListeners(for: events, using: handler)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |
17 |     @discardableResult
18 |     open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |
20 |         return self.addListeners(for: [event], using: handler)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:25:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |
24 |     @discardableResult
25 |     open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |
27 |         return self.addListeners(for: [event], using: handler, autoOff)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:32:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
30 |
31 |     @discardableResult
32 |     open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
33 |
34 |         return self.addListeners(for: events, using: handler, autoOff)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 |     }
37 |
38 |     open func off(_ id: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 |
40 |         self.removeListener(id)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// Nats events
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected      = "connected"
 19 |     case disconnected   = "disconnected"
    :
 23 |     case reconnecting   = "reconnecting"
 24 |     case informed       = "informed"
 25 |     static let all      = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
[248/254] Compiling SwiftyNats NatsClient+EventBus.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:13: warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 |         self.messageQueue.addOperation {
116 |             handler(message)
    |             |- warning: capture of 'handler' with non-sendable type '(NatsMessage) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
117 |         }
118 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+ChannelHandler.swift:116:21: warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |
115 |         self.messageQueue.addOperation {
116 |             handler(message)
    |                     `- warning: capture of 'message' with non-sendable type 'NatsMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |         }
118 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsMessage.swift:8:15: note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
 6 | import Foundation
 7 |
 8 | public struct NatsMessage {
   |               `- note: consider making struct 'NatsMessage' conform to the 'Sendable' protocol
 9 |
10 |     public let payload: String?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:15:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 13 |
 14 |     /// Connect to the NATS server
 15 |     open func connect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 16 |         logger.debug("Try to connect.")
 17 |         guard self.state != .connected else {
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:44:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 42 |
 43 |     /// Disconnect from the NATS server
 44 |     open func disconnect() {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 45 |         logger.debug("Try to disconnect.")
 46 |         do {
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:61:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 59 |     // MARK: - Internal Methods
 60 |
 61 |     open func reconnect() throws {
    |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 62 |         self.fire(.reconnecting)
 63 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:25:27: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 |
 24 |         #if os(Linux)
 25 |         thread = Thread { self.setupConnection() }
    |                           `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 26 |         #else
 27 |         thread = Thread(target: self, selector: #selector(self.setupConnection), object: nil)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:141:45: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |             .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
140 |             .channelInitializer { channel in
141 |                 channel.pipeline.addHandler(self)
    |                                             `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 |             }.connectTimeout( TimeAmount.seconds(5) )
143 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:154:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 |                 logger.error("Server returned an error while trying to connect")
153 |             } else {
154 |                 self.channel = channel
    |                 `- warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 |             }
156 |         })
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:42:12: note: class 'NatsClient' does not conform to the 'Sendable' protocol
 40 |
 41 | /// a Nats client
 42 | open class NatsClient: NSObject {
    |            `- note: class 'NatsClient' does not conform to the 'Sendable' protocol
 43 |     var urls = [String]()
 44 |     var connectedUrl: URL?
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+Connection.swift:150:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
148 |         })
149 |         futureConnection.whenSuccess({channel in
150 |             if hasErrored {
    |                `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
151 |                 //throw NatsConnectionError("Server returned an error while trying to connect")
152 |                 logger.error("Server returned an error while trying to connect")
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:11:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
 9 |
10 |     @discardableResult
11 |     open func on(_ events: [NatsEvent], _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
12 |
13 |         return self.addListeners(for: events, using: handler)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:18:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
16 |
17 |     @discardableResult
18 |     open func on(_ event: NatsEvent, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
19 |
20 |         return self.addListeners(for: [event], using: handler)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:25:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
23 |
24 |     @discardableResult
25 |     open func on(_ event: NatsEvent, autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
26 |
27 |         return self.addListeners(for: [event], using: handler, autoOff)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:32:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
30 |
31 |     @discardableResult
32 |     open func on(_ events: [NatsEvent], autoOff: Bool, _ handler: @escaping (NatsEvent) -> Void) -> String {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
33 |
34 |         return self.addListeners(for: events, using: handler, autoOff)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient+EventBus.swift:38:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
36 |     }
37 |
38 |     open func off(_ id: String) {
   |     `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
39 |
40 |         self.removeListener(id)
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// Nats events
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected      = "connected"
 19 |     case disconnected   = "disconnected"
    :
 23 |     case reconnecting   = "reconnecting"
 24 |     case informed       = "informed"
 25 |     static let all      = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
[249/254] Compiling SwiftyNats NatsMessage.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
[250/254] Compiling SwiftyNats NatsResponse.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
[251/254] Compiling SwiftyNats NatsClient.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// Nats events
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected      = "connected"
 19 |     case disconnected   = "disconnected"
    :
 23 |     case reconnecting   = "reconnecting"
 24 |     case informed       = "informed"
 25 |     static let all      = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
[252/254] Compiling SwiftyNats NatsClientConfig.swift
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClient/NatsClient.swift:25:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | /// Nats events
 17 | public enum NatsEvent: String {
    |             `- note: consider making enum 'NatsEvent' conform to the 'Sendable' protocol
 18 |     case connected      = "connected"
 19 |     case disconnected   = "disconnected"
    :
 23 |     case reconnecting   = "reconnecting"
 24 |     case informed       = "informed"
 25 |     static let all      = [ connected, disconnected, response, error, dropped, reconnecting ]
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NatsEvent]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | }
 27 |
/host/spi-builder-workspace/Sources/SwiftyNats/NatsClientConfig.swift:9:5: warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 | import Logging
 8 |
 9 | var logger = Logger(label: "SwiftyNats")
   |     |- warning: var 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'logger' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public let libVersion = "2.2"
11 |
[253/254] Compiling SwiftyNats NatsError.swift
[254/254] Compiling SwiftyNats NatsEventHandler.swift
Build complete! (52.07s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.33.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "SwiftyNats",
  "name" : "SwiftyNats",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftyNats",
      "targets" : [
        "SwiftyNats"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyNatsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyNatsTests",
      "path" : "Tests/SwiftyNatsTests",
      "sources" : [
        "Extensions/StringExtensionTests.swift",
        "Integration/ConnectionTests.swift",
        "Integration/EventBusTests.swift",
        "Integration/LoopTests.swift",
        "Integration/PublishTests.swift",
        "Integration/ServerInformationTest.swift",
        "Integration/SubscribeTests.swift",
        "TestSettings.swift",
        "Unit/NatsMessageTests.swift"
      ],
      "target_dependencies" : [
        "SwiftyNats"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyNats",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyNats",
      "path" : "Sources/SwiftyNats",
      "product_dependencies" : [
        "NIO",
        "Logging"
      ],
      "product_memberships" : [
        "SwiftyNats"
      ],
      "sources" : [
        "Extensions/Data+String.swift",
        "Extensions/Streams+Read+Write.swift",
        "Extensions/String+Utilities.swift",
        "NatsClient/NatsClient+ChannelHandler.swift",
        "NatsClient/NatsClient+Connection.swift",
        "NatsClient/NatsClient+EventBus.swift",
        "NatsClient/NatsClient+Publish.swift",
        "NatsClient/NatsClient+Queue.swift",
        "NatsClient/NatsClient+ServerInfo.swift",
        "NatsClient/NatsClient+Subscribe.swift",
        "NatsClient/NatsClient.swift",
        "NatsClientConfig.swift",
        "NatsError.swift",
        "NatsEventHandler.swift",
        "NatsMessage.swift",
        "NatsResponse.swift",
        "NatsServer.swift",
        "NatsSubject.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.