Build Information
Successful build of SwiftyNats, reference 2.2.0 (85d0bf
), with Swift 6.0 for Linux on 2 Nov 2024 00:08:48 UTC.
Swift 6 data race errors: 2
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aus-der-Technik/SwiftyNats.git
Reference: 2.2.0
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
* tag 2.2.0 -> FETCH_HEAD
HEAD is now at 85d0bf4 Merge pull request #1 from aus-der-Technik/release/2.2.0
Cloned https://github.com/aus-der-Technik/SwiftyNats.git
Revision (git rev-parse @):
85d0bf40dbb4a0408b7a4e7cefcc67010b0478bd
SUCCESS checkout https://github.com/aus-der-Technik/SwiftyNats.git at 2.2.0
========================================
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-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
[1/3660] Fetching swift-log
[3661/74801] Fetching swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (3.90s)
Fetched https://github.com/apple/swift-nio.git from cache (3.98s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.37s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.59s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/3901] Fetching swift-system
[1484/5470] Fetching swift-system, swift-atomics
[5471/20945] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.33s)
[4830/19376] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.92s)
Fetched https://github.com/apple/swift-collections.git from cache (0.94s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.39s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.41s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.61s)
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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
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-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-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.76.1
Building for debugging...
[0/22] Write sources
[11/22] Compiling CNIOWindows WSAStartup.c
[11/22] Compiling CNIOWindows shim.c
[11/22] Compiling _AtomicsShims.c
[14/22] Write sources
[15/22] Compiling CNIOWASI CNIOWASI.c
[16/22] Compiling CNIODarwin shim.c
[17/22] Compiling CNIOLinux liburing_shims.c
[18/22] Compiling CNIOLinux shim.c
[19/22] Write swift-version-24593BA9C3E375BF.txt
[21/69] Emitting module InternalCollectionsUtilities
[21/71] Compiling c-nioatomics.c
[22/71] Compiling c-atomics.c
[24/77] Emitting module NIOConcurrencyHelpers
[25/77] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[26/77] Compiling Atomics Primitives.shims.swift
[27/77] Compiling Atomics AtomicInteger.swift
[28/77] Compiling _NIODataStructures _TinyArray.swift
[29/77] Compiling _NIODataStructures PriorityQueue.swift
[30/77] Emitting module _NIOBase64
[31/77] Compiling _NIOBase64 Base64.swift
[32/78] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[33/78] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[34/78] Compiling Logging LogHandler.swift
[37/78] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[38/80] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[39/80] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[40/80] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[41/80] Compiling Atomics IntegerConformances.swift
[42/80] Compiling Atomics PointerConformances.swift
[43/80] Compiling Atomics Primitives.native.swift
[44/80] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[45/80] Compiling InternalCollectionsUtilities _SortedCollection.swift
[46/80] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[49/80] Compiling Atomics AtomicMemoryOrderings.swift
[50/80] Compiling Atomics DoubleWord.swift
[53/80] Compiling Atomics ManagedAtomic.swift
[54/80] Compiling Atomics ManagedAtomicLazyReference.swift
[62/81] Emitting module Atomics
[70/96] Compiling Atomics IntegerOperations.swift
[71/96] Compiling Atomics Unmanaged extensions.swift
[73/97] Compiling DequeModule Deque+CustomReflectable.swift
[74/97] Compiling DequeModule Deque+Descriptions.swift
[75/99] Compiling DequeModule _DequeBuffer.swift
[76/99] Compiling DequeModule _DequeBufferHeader.swift
[77/99] Emitting module Logging
[78/99] Compiling Logging Locks.swift
[79/99] Compiling NIOConcurrencyHelpers lock.swift
[80/99] Emitting module _NIODataStructures
[81/99] Compiling _NIODataStructures Heap.swift
[82/100] Compiling NIOConcurrencyHelpers NIOLock.swift
[83/100] Compiling DequeModule Deque+Extras.swift
[84/100] Compiling DequeModule Deque+Hashable.swift
[85/100] Compiling DequeModule Deque+Equatable.swift
[86/100] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[87/100] Compiling Logging MetadataProvider.swift
[88/100] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[89/100] Compiling NIOConcurrencyHelpers atomics.swift
[92/101] Compiling Logging Logging.swift
[94/102] Compiling DequeModule _DequeSlot.swift
[95/102] Compiling DequeModule _UnsafeWrappedBuffer.swift
[96/102] Compiling DequeModule Deque+Testing.swift
[97/102] Compiling DequeModule Deque._Storage.swift
[98/102] Compiling DequeModule Deque._UnsafeHandle.swift
[99/102] Compiling DequeModule Deque.swift
[100/102] Compiling DequeModule Deque+Codable.swift
[101/102] Compiling DequeModule Deque+Collection.swift
[102/102] Emitting module DequeModule
[104/163] Compiling NIOCore MulticastChannel.swift
[105/163] Compiling NIOCore NIOAny.swift
[106/163] Compiling NIOCore NIOCloseOnErrorHandler.swift
[107/163] Compiling NIOCore NIOLoopBound.swift
[108/163] Compiling NIOCore NIOScheduledCallback.swift
[109/163] Compiling NIOCore NIOSendable.swift
[110/163] Compiling NIOCore PointerHelpers.swift
[111/163] Compiling NIOCore RecvByteBufferAllocator.swift
[112/171] Compiling NIOCore IO.swift
[113/171] Compiling NIOCore IOData.swift
[114/171] Compiling NIOCore IPProtocol.swift
[115/171] Compiling NIOCore IntegerBitPacking.swift
[116/171] Compiling NIOCore IntegerTypes.swift
[117/171] Compiling NIOCore Interfaces.swift
[118/171] Compiling NIOCore Linux.swift
[119/171] Compiling NIOCore MarkedCircularBuffer.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 AddressedEnvelope.swift
[146/171] Compiling NIOCore AsyncAwaitSupport.swift
[147/171] Compiling NIOCore AsyncChannel.swift
[148/171] Compiling NIOCore AsyncChannelHandler.swift
[149/171] Compiling NIOCore AsyncChannelInboundStream.swift
[150/171] Compiling NIOCore AsyncChannelOutboundWriter.swift
[151/171] Compiling NIOCore NIOAsyncSequenceProducer.swift
[152/171] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[153/171] Compiling NIOCore NIOAsyncWriter.swift
[154/171] Compiling NIOCore ByteBuffer-multi-int.swift
[155/171] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[156/171] Compiling NIOCore ByteBuffer-views.swift
[157/171] Compiling NIOCore Channel.swift
[158/171] Compiling NIOCore ChannelHandler.swift
[159/171] Compiling NIOCore ChannelHandlers.swift
[160/171] Compiling NIOCore ChannelInvoker.swift
[161/171] Compiling NIOCore ChannelOption.swift
[162/171] Compiling NIOCore ChannelPipeline.swift
[163/171] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[164/171] Compiling NIOCore EventLoopFuture+Deprecated.swift
[165/171] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[166/171] Compiling NIOCore EventLoopFuture.swift
[167/171] Compiling NIOCore FileDescriptor.swift
[168/171] Compiling NIOCore FileHandle.swift
[169/171] Compiling NIOCore FileRegion.swift
[170/171] Compiling NIOCore GlobalSingletons.swift
[171/171] Emitting module NIOCore
[173/224] Compiling NIOEmbedded AsyncTestingChannel.swift
[174/224] Emitting module NIOEmbedded
[175/224] Compiling NIOEmbedded Embedded.swift
[176/224] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[178/225] Compiling NIOPosix BSDSocketAPICommon.swift
[179/225] Compiling NIOPosix BSDSocketAPIPosix.swift
[180/225] Compiling NIOPosix BSDSocketAPIWindows.swift
[181/225] Compiling NIOPosix BaseSocket.swift
[182/225] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[183/225] Compiling NIOPosix BaseSocketChannel.swift
[184/225] Compiling NIOPosix BaseStreamSocketChannel.swift
[185/231] Emitting module NIOPosix
[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 NIOThreadPool.swift
[193/231] Compiling NIOPosix NonBlockingFileIO.swift
[194/231] Compiling NIOPosix PendingDatagramWritesManager.swift
[195/231] Compiling NIOPosix PendingWritesManager.swift
[196/231] Compiling NIOPosix PipeChannel.swift
[197/231] Compiling NIOPosix PipePair.swift
[198/231] Compiling NIOPosix PointerHelpers.swift
[199/231] Compiling NIOPosix ThreadPosix.swift
[200/231] Compiling NIOPosix ThreadWindows.swift
[201/231] Compiling NIOPosix UnsafeTransfer.swift
[202/231] Compiling NIOPosix Utilities.swift
[203/231] Compiling NIOPosix VsockAddress.swift
[204/231] Compiling NIOPosix VsockChannelEvents.swift
[205/231] Compiling NIOPosix ServerSocket.swift
[206/231] Compiling NIOPosix Socket.swift
[207/231] Compiling NIOPosix SocketChannel.swift
[208/231] Compiling NIOPosix SocketProtocols.swift
[209/231] Compiling NIOPosix System.swift
[210/231] Compiling NIOPosix Thread.swift
[211/231] Compiling NIOPosix IO.swift
[212/231] Compiling NIOPosix IntegerBitPacking.swift
[213/231] Compiling NIOPosix IntegerTypes.swift
[214/231] Compiling NIOPosix Linux.swift
[215/231] Compiling NIOPosix LinuxCPUSet.swift
[216/231] Compiling NIOPosix LinuxUring.swift
[217/231] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[218/231] Compiling NIOPosix Pool.swift
[219/231] Compiling NIOPosix PooledRecvBufferAllocator.swift
[220/231] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[221/231] Compiling NIOPosix PosixSingletons.swift
[222/231] Compiling NIOPosix RawSocketBootstrap.swift
[223/231] Compiling NIOPosix Resolver.swift
[224/231] Compiling NIOPosix Selectable.swift
[225/231] Compiling NIOPosix Bootstrap.swift
[226/231] Compiling NIOPosix ControlMessage.swift
[227/231] Compiling NIOPosix DatagramVectorReadManager.swift
[228/231] Compiling NIOPosix Errors+Any.swift
[229/231] Compiling NIOPosix FileDescriptor.swift
[230/231] Compiling NIOPosix GetaddrinfoResolver.swift
[231/231] Compiling NIOPosix HappyEyeballs.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 Data+String.swift
[238/254] Compiling SwiftyNats Streams+Read+Write.swift
[239/254] Compiling SwiftyNats String+Utilities.swift
[240/254] Compiling SwiftyNats NatsServer.swift
[241/254] Compiling SwiftyNats NatsSubject.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:153:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | logger.error("Server returned an error while trying to connect")
152 | } else {
153 | 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
154 | }
155 | })
/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:149:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | })
148 | futureConnection.whenSuccess({channel in
149 | if hasErrored {
| `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
150 | //throw NatsConnectionError("Server returned an error while trying to connect")
151 | 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:153:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | logger.error("Server returned an error while trying to connect")
152 | } else {
153 | 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
154 | }
155 | })
/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:149:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | })
148 | futureConnection.whenSuccess({channel in
149 | if hasErrored {
| `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
150 | //throw NatsConnectionError("Server returned an error while trying to connect")
151 | 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:153:17: warning: capture of 'self' with non-sendable type 'NatsClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | logger.error("Server returned an error while trying to connect")
152 | } else {
153 | 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
154 | }
155 | })
/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:149:16: warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | })
148 | futureConnection.whenSuccess({channel in
149 | if hasErrored {
| `- warning: reference to captured var 'hasErrored' in concurrently-executing code; this is an error in the Swift 6 language mode
150 | //throw NatsConnectionError("Server returned an error while trying to connect")
151 | 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 NatsError.swift
[250/254] Compiling SwiftyNats NatsEventHandler.swift
[251/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 |
[252/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 |
[253/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 |
[254/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 |
Build complete! (46.66s)
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.