Build Information
Successful build of DNSClient, reference main (751226
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 12:29:12 UTC.
Swift 6 data race errors: 17
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/orlandos-nl/DNSClient.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/orlandos-nl/DNSClient
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7512266 Merge branch 'master'
Cloned https://github.com/orlandos-nl/DNSClient.git
Revision (git rev-parse @):
7512266cd5a212fb52596abac63febe77d963b27
SUCCESS checkout https://github.com/orlandos-nl/DNSClient.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/orlandos-nl/DNSClient.git
https://github.com/orlandos-nl/DNSClient.git
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-nio-transport-services",
"requirement" : {
"range" : [
{
"lower_bound" : "1.19.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-transport-services.git"
}
],
"manifest_display_name" : "DNSClient",
"name" : "DNSClient",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "DNSClient",
"targets" : [
"DNSClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DNSClientTests",
"module_type" : "SwiftTarget",
"name" : "DNSClientTests",
"path" : "Tests/DNSClientTests",
"product_dependencies" : [
"NIO"
],
"sources" : [
"DNSTCPClientTests.swift",
"DNSUDPClientTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"DNSClient"
],
"type" : "test"
},
{
"c99name" : "DNSClient",
"module_type" : "SwiftTarget",
"name" : "DNSClient",
"path" : "Sources/DNSClient",
"product_dependencies" : [
"NIOTransportServices",
"NIO"
],
"product_memberships" : [
"DNSClient"
],
"sources" : [
"Client.swift",
"DNSClient+Connect.swift",
"DNSClient+Query.swift",
"DNSDecoder.swift",
"DNSEncoder.swift",
"Errors.swift",
"Helpers.swift",
"Messages/Message.swift",
"Messages/MessageOptions.swift",
"PTR.swift",
"ResolvConf/ConfigParser.swift",
"SRV.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/25] Write sources
[1/25] Copying PrivacyInfo.xcprivacy
[4/25] Write sources
[14/25] Compiling CNIOWindows shim.c
[15/25] Compiling CNIOWindows WSAStartup.c
[16/25] Compiling CNIOWASI CNIOWASI.c
[17/25] Write sources
[18/25] Compiling CNIOLinux liburing_shims.c
[19/25] Compiling CNIOLinux shim.c
[20/25] Write swift-version-2F0A5646E1D333AE.txt
[21/25] Compiling _AtomicsShims.c
[22/68] Compiling CNIODarwin shim.c
[24/68] Compiling Atomics UnsafeAtomic.swift
[25/68] Compiling Atomics UnsafeAtomicLazyReference.swift
[26/68] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[27/68] Compiling Atomics AtomicBool.swift
[28/68] Compiling Atomics IntegerConformances.swift
[29/69] Compiling Atomics AtomicStorage.swift
[30/69] Compiling Atomics AtomicValue.swift
[31/69] Compiling Atomics PointerConformances.swift
[32/69] Compiling Atomics Primitives.native.swift
[33/69] Compiling _NIOBase64 Base64.swift
[34/69] Emitting module _NIOBase64
[37/69] Compiling Atomics ManagedAtomic.swift
[38/69] Compiling Atomics ManagedAtomicLazyReference.swift
[39/71] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[40/71] Compiling Atomics AtomicMemoryOrderings.swift
[41/71] Compiling Atomics DoubleWord.swift
[46/71] Compiling Atomics AtomicOptionalWrappable.swift
[47/71] Compiling Atomics AtomicReference.swift
[48/71] Emitting module InternalCollectionsUtilities
[51/71] Compiling Atomics Primitives.shims.swift
[52/71] Compiling Atomics AtomicInteger.swift
[61/71] Compiling Atomics IntegerOperations.swift
[62/71] Compiling Atomics Unmanaged extensions.swift
[63/87] Compiling _NIODataStructures PriorityQueue.swift
[64/87] Compiling DequeModule _DequeSlot.swift
[65/87] Compiling DequeModule _DequeBufferHeader.swift
[66/88] Compiling Atomics OptionalRawRepresentable.swift
[67/88] Compiling Atomics RawRepresentable.swift
[68/88] Emitting module Atomics
[69/88] Compiling DequeModule Deque+Extras.swift
[70/88] Compiling DequeModule Deque+Hashable.swift
[71/88] Compiling DequeModule Deque+Testing.swift
[72/88] Compiling DequeModule Deque._Storage.swift
[73/88] Emitting module _NIODataStructures
[74/88] Compiling _NIODataStructures _TinyArray.swift
[75/88] Compiling _NIODataStructures Heap.swift
[76/88] Compiling DequeModule _UnsafeWrappedBuffer.swift
[77/88] Compiling DequeModule _DequeBuffer.swift
[78/88] Compiling DequeModule Deque._UnsafeHandle.swift
[79/88] Compiling DequeModule Deque.swift
[80/88] Compiling DequeModule Deque+Equatable.swift
[81/88] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[82/88] Compiling DequeModule Deque+Codable.swift
[83/88] Compiling DequeModule Deque+Collection.swift
[84/88] Compiling DequeModule Deque+CustomReflectable.swift
[85/88] Compiling DequeModule Deque+Descriptions.swift
[86/88] Emitting module DequeModule
[86/88] Compiling c-nioatomics.c
[87/88] Compiling c-atomics.c
[89/94] Compiling NIOConcurrencyHelpers lock.swift
[90/94] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[91/94] Compiling NIOConcurrencyHelpers NIOLock.swift
[92/94] Compiling NIOConcurrencyHelpers atomics.swift
[93/94] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[94/94] Emitting module NIOConcurrencyHelpers
[95/155] Compiling NIOCore GlobalSingletons.swift
[96/155] Compiling NIOCore IO.swift
[97/155] Compiling NIOCore IOData.swift
[98/155] Compiling NIOCore IPProtocol.swift
[99/155] Compiling NIOCore IntegerBitPacking.swift
[100/155] Compiling NIOCore IntegerTypes.swift
[101/161] Compiling NIOCore AddressedEnvelope.swift
[102/161] Compiling NIOCore AsyncAwaitSupport.swift
[103/161] Compiling NIOCore AsyncChannel.swift
[104/161] Compiling NIOCore AsyncChannelHandler.swift
[105/161] Compiling NIOCore AsyncChannelInboundStream.swift
[106/161] Compiling NIOCore AsyncChannelOutboundWriter.swift
[107/161] Compiling NIOCore NIOAsyncSequenceProducer.swift
[108/161] Compiling NIOCore SocketOptionProvider.swift
[109/161] Compiling NIOCore SystemCallHelpers.swift
[110/161] Compiling NIOCore TimeAmount+Duration.swift
[111/161] Compiling NIOCore TypeAssistedChannelHandler.swift
[112/161] Compiling NIOCore UniversalBootstrapSupport.swift
[113/161] Compiling NIOCore Utilities.swift
[114/161] Compiling NIOCore Interfaces.swift
[115/161] Compiling NIOCore Linux.swift
[116/161] Compiling NIOCore MarkedCircularBuffer.swift
[117/161] Compiling NIOCore MulticastChannel.swift
[118/161] Compiling NIOCore NIOAny.swift
[119/161] Compiling NIOCore NIOCloseOnErrorHandler.swift
[120/161] Compiling NIOCore NIOLoopBound.swift
[121/161] Compiling NIOCore NIOScheduledCallback.swift
[122/161] Compiling NIOCore NIOSendable.swift
[123/161] Compiling NIOCore RecvByteBufferAllocator.swift
[124/161] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[125/161] Compiling NIOCore SocketAddresses.swift
[126/161] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[127/161] Compiling NIOCore EventLoopFuture+Deprecated.swift
[128/161] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[129/161] Compiling NIOCore EventLoopFuture.swift
[130/161] Compiling NIOCore FileDescriptor.swift
[131/161] Compiling NIOCore FileHandle.swift
[132/161] Compiling NIOCore FileRegion.swift
[133/161] Compiling NIOCore Codec.swift
[134/161] Compiling NIOCore ConvenienceOptionSupport.swift
[135/161] Compiling NIOCore DeadChannel.swift
[136/161] Compiling NIOCore DispatchQueue+WithFuture.swift
[137/161] Compiling NIOCore EventLoop+Deprecated.swift
[138/161] Compiling NIOCore EventLoop+SerialExecutor.swift
[139/161] Compiling NIOCore EventLoop.swift
[140/161] Compiling NIOCore Channel.swift
[141/161] Compiling NIOCore ChannelHandler.swift
[142/161] Compiling NIOCore ChannelHandlers.swift
[143/161] Compiling NIOCore ChannelInvoker.swift
[144/161] Compiling NIOCore ChannelOption.swift
[145/161] Compiling NIOCore ChannelPipeline.swift
[146/161] Compiling NIOCore CircularBuffer.swift
[147/161] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[148/161] Compiling NIOCore NIOAsyncWriter.swift
[149/161] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[150/161] Compiling NIOCore BSDSocketAPI.swift
[151/161] Compiling NIOCore ByteBuffer-aux.swift
[152/161] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[153/161] Compiling NIOCore ByteBuffer-conversions.swift
[154/161] Compiling NIOCore ByteBuffer-core.swift
[155/161] Compiling NIOCore ByteBuffer-hex.swift
[156/161] Compiling NIOCore ByteBuffer-int.swift
[157/161] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[158/161] Compiling NIOCore ByteBuffer-multi-int.swift
[159/161] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[160/161] Compiling NIOCore ByteBuffer-views.swift
[161/161] Emitting module NIOCore
[162/214] Compiling NIOEmbedded Embedded.swift
[163/214] Compiling NIOEmbedded AsyncTestingChannel.swift
[164/214] Emitting module NIOEmbedded
[165/214] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[166/214] Compiling NIOPosix Selectable.swift
[167/214] Compiling NIOPosix SelectableChannel.swift
[168/214] Compiling NIOPosix SelectableEventLoop.swift
[169/214] Compiling NIOPosix SelectorEpoll.swift
[170/214] Compiling NIOPosix SelectorGeneric.swift
[171/219] Emitting module NIOPosix
[172/219] Compiling NIOPosix SelectorKqueue.swift
[173/219] Compiling NIOPosix SelectorUring.swift
[174/219] Compiling NIOPosix ServerSocket.swift
[175/219] Compiling NIOPosix Socket.swift
[176/219] Compiling NIOPosix SocketChannel.swift
[177/219] Compiling NIOPosix PooledRecvBufferAllocator.swift
[178/219] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[179/219] Compiling NIOPosix PosixSingletons.swift
[180/219] Compiling NIOPosix RawSocketBootstrap.swift
[181/219] Compiling NIOPosix Resolver.swift
[182/219] Compiling NIOPosix BSDSocketAPICommon.swift
[183/219] Compiling NIOPosix BSDSocketAPIPosix.swift
[184/219] Compiling NIOPosix BSDSocketAPIWindows.swift
[185/219] Compiling NIOPosix BaseSocket.swift
[186/219] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[187/219] Compiling NIOPosix BaseSocketChannel.swift
[188/219] Compiling NIOPosix LinuxCPUSet.swift
[189/219] Compiling NIOPosix LinuxUring.swift
[190/219] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[191/219] Compiling NIOPosix NIOThreadPool.swift
[192/219] Compiling NIOPosix NonBlockingFileIO.swift
[193/219] Compiling NIOPosix GetaddrinfoResolver.swift
[194/219] Compiling NIOPosix HappyEyeballs.swift
[195/219] Compiling NIOPosix IO.swift
[196/219] Compiling NIOPosix IntegerBitPacking.swift
[197/219] Compiling NIOPosix IntegerTypes.swift
[198/219] Compiling NIOPosix Linux.swift
[199/219] Compiling NIOPosix PendingDatagramWritesManager.swift
[200/219] Compiling NIOPosix PendingWritesManager.swift
[201/219] Compiling NIOPosix PipeChannel.swift
[202/219] Compiling NIOPosix PipePair.swift
[203/219] Compiling NIOPosix Pool.swift
[204/219] Compiling NIOPosix SocketProtocols.swift
[205/219] Compiling NIOPosix System.swift
[206/219] Compiling NIOPosix Thread.swift
[207/219] Compiling NIOPosix ThreadPosix.swift
[208/219] Compiling NIOPosix ThreadWindows.swift
[209/219] Compiling NIOPosix BaseStreamSocketChannel.swift
[210/219] Compiling NIOPosix Bootstrap.swift
[211/219] Compiling NIOPosix ControlMessage.swift
[212/219] Compiling NIOPosix DatagramVectorReadManager.swift
[213/219] Compiling NIOPosix Errors+Any.swift
[214/219] Compiling NIOPosix FileDescriptor.swift
[215/219] Compiling NIOPosix UnsafeTransfer.swift
[216/219] Compiling NIOPosix Utilities.swift
[217/219] Compiling NIOPosix VsockAddress.swift
[218/219] Compiling NIOPosix VsockChannelEvents.swift
[219/219] Compiling NIOPosix resource_bundle_accessor.swift
[220/221] Emitting module NIO
[221/221] Compiling NIO Exports.swift
[222/232] Emitting module NIOTLS
[223/232] Compiling NIOTLS TLSEvents.swift
[224/232] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[225/232] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
[226/232] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[227/232] Compiling NIOTLS SNIHandler.swift
[228/232] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[229/232] Emitting module NIOFoundationCompat
[230/232] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[231/232] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[232/232] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[233/254] Emitting module NIOTransportServices
[234/256] Compiling NIOTransportServices NIOTSEventLoop.swift
[235/256] Compiling NIOTransportServices NIOTSEventLoopGroup.swift
[236/256] Compiling NIOTransportServices NIOTSConnectionChannel.swift
[237/256] Compiling NIOTransportServices NIOTSErrors.swift
[238/256] Compiling NIOTransportServices NIOTSNetworkEvents.swift
[239/256] Compiling NIOTransportServices NIOTSSingletons.swift
[240/256] Compiling NIOTransportServices NIOTSBootstraps.swift
[241/256] Compiling NIOTransportServices NIOTSChannelOptions.swift
[242/256] Compiling NIOTransportServices NIOTSConnectionBootstrap.swift
[243/256] Compiling NIOTransportServices SocketAddress+NWEndpoint.swift
[244/256] Compiling NIOTransportServices StateManagedChannel.swift
[245/256] Compiling NIOTransportServices NIOTSListenerBootstrap.swift
[246/256] Compiling NIOTransportServices NIOTSListenerChannel.swift
[247/256] Compiling NIOTransportServices TCPOptions+SocketChannelOption.swift
[248/256] Compiling NIOTransportServices UDPOptions+SocketChannelOption.swift
[249/256] Compiling NIOTransportServices NIOTSDatagramListener.swift
[250/256] Compiling NIOTransportServices NIOTSDatagramListenerChannel.swift
[251/256] Compiling NIOTransportServices NIOFilterEmptyWritesHandler.swift
[252/256] Compiling NIOTransportServices AcceptHandler.swift
[253/256] Compiling NIOTransportServices NIOTSDatagramBootstrap.swift
[254/256] Compiling NIOTransportServices NIOTSDatagramChannel.swift
[255/256] Compiling NIOTransportServices StateManagedListenerChannel.swift
[256/256] Compiling NIOTransportServices StateManagedNWConnectionChannel.swift
[257/268] Compiling DNSClient MessageOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:16:23: warning: static property 'answer' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
14 | }
15 |
16 | public static let answer: MessageOptions = 0b10000000_00000000
| |- warning: static property 'answer' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'answer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let authorativeAnswer: MessageOptions = 0b00000100_00000000
18 | public static let truncated: MessageOptions = 0b00000010_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:17:23: warning: static property 'authorativeAnswer' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
15 |
16 | public static let answer: MessageOptions = 0b10000000_00000000
17 | public static let authorativeAnswer: MessageOptions = 0b00000100_00000000
| |- warning: static property 'authorativeAnswer' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'authorativeAnswer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let truncated: MessageOptions = 0b00000010_00000000
19 | public static let recursionDesired: MessageOptions = 0b00000001_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:18:23: warning: static property 'truncated' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
16 | public static let answer: MessageOptions = 0b10000000_00000000
17 | public static let authorativeAnswer: MessageOptions = 0b00000100_00000000
18 | public static let truncated: MessageOptions = 0b00000010_00000000
| |- warning: static property 'truncated' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'truncated' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static let recursionDesired: MessageOptions = 0b00000001_00000000
20 | public static let recursionAvailable: MessageOptions = 0b00000000_10000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:19:23: warning: static property 'recursionDesired' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
17 | public static let authorativeAnswer: MessageOptions = 0b00000100_00000000
18 | public static let truncated: MessageOptions = 0b00000010_00000000
19 | public static let recursionDesired: MessageOptions = 0b00000001_00000000
| |- warning: static property 'recursionDesired' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'recursionDesired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let recursionAvailable: MessageOptions = 0b00000000_10000000
21 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:20:23: warning: static property 'recursionAvailable' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
18 | public static let truncated: MessageOptions = 0b00000010_00000000
19 | public static let recursionDesired: MessageOptions = 0b00000001_00000000
20 | public static let recursionAvailable: MessageOptions = 0b00000000_10000000
| |- warning: static property 'recursionAvailable' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'recursionAvailable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public static let standardQuery: MessageOptions = 0b00000000_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:22:23: warning: static property 'standardQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
20 | public static let recursionAvailable: MessageOptions = 0b00000000_10000000
21 |
22 | public static let standardQuery: MessageOptions = 0b00000000_00000000
| |- warning: static property 'standardQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardQuery' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | public static let inverseQuery: MessageOptions = 0b00001000_00000000
24 | public static let serverStatusQuery: MessageOptions = 0b00010000_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:23:23: warning: static property 'inverseQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
21 |
22 | public static let standardQuery: MessageOptions = 0b00000000_00000000
23 | public static let inverseQuery: MessageOptions = 0b00001000_00000000
| |- warning: static property 'inverseQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inverseQuery' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public static let serverStatusQuery: MessageOptions = 0b00010000_00000000
25 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:24:23: warning: static property 'serverStatusQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
22 | public static let standardQuery: MessageOptions = 0b00000000_00000000
23 | public static let inverseQuery: MessageOptions = 0b00001000_00000000
24 | public static let serverStatusQuery: MessageOptions = 0b00010000_00000000
| |- warning: static property 'serverStatusQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'serverStatusQuery' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | public static let resultCodeSuccess: MessageOptions = 0b00000000_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:26:23: warning: static property 'resultCodeSuccess' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
24 | public static let serverStatusQuery: MessageOptions = 0b00010000_00000000
25 |
26 | public static let resultCodeSuccess: MessageOptions = 0b00000000_00000000
| |- warning: static property 'resultCodeSuccess' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeSuccess' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | public static let resultCodeFormatError: MessageOptions = 0b00000000_00000001
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:27:23: warning: static property 'resultCodeFormatError' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
25 |
26 | public static let resultCodeSuccess: MessageOptions = 0b00000000_00000000
27 | public static let resultCodeFormatError: MessageOptions = 0b00000000_00000001
| |- warning: static property 'resultCodeFormatError' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeFormatError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:28:23: warning: static property 'resultCodeServerfailure' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
26 | public static let resultCodeSuccess: MessageOptions = 0b00000000_00000000
27 | public static let resultCodeFormatError: MessageOptions = 0b00000000_00000001
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
| |- warning: static property 'resultCodeServerfailure' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeServerfailure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
30 | public static let resultCodeNotImplemented: MessageOptions = 0b00000000_00000100
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:29:23: warning: static property 'resultCodeNameError' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
27 | public static let resultCodeFormatError: MessageOptions = 0b00000000_00000001
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
| |- warning: static property 'resultCodeNameError' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeNameError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public static let resultCodeNotImplemented: MessageOptions = 0b00000000_00000100
31 | public static let resultCodeNotRefused: MessageOptions = 0b00000000_00000101
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:30:23: warning: static property 'resultCodeNotImplemented' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
30 | public static let resultCodeNotImplemented: MessageOptions = 0b00000000_00000100
| |- warning: static property 'resultCodeNotImplemented' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeNotImplemented' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | public static let resultCodeNotRefused: MessageOptions = 0b00000000_00000101
32 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:31:23: warning: static property 'resultCodeNotRefused' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
30 | public static let resultCodeNotImplemented: MessageOptions = 0b00000000_00000100
31 | public static let resultCodeNotRefused: MessageOptions = 0b00000000_00000101
| |- warning: static property 'resultCodeNotRefused' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeNotRefused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | public static let multicastResponse: MessageOptions = 0b10000000_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:33:23: warning: static property 'multicastResponse' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
31 | public static let resultCodeNotRefused: MessageOptions = 0b00000000_00000101
32 |
33 | public static let multicastResponse: MessageOptions = 0b10000000_00000000
| |- warning: static property 'multicastResponse' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'multicastResponse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static let mutlicastUnauthenticatedDataAcceptable: MessageOptions = 0b00000000_00010000
35 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:34:23: warning: static property 'mutlicastUnauthenticatedDataAcceptable' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
32 |
33 | public static let multicastResponse: MessageOptions = 0b10000000_00000000
34 | public static let mutlicastUnauthenticatedDataAcceptable: MessageOptions = 0b00000000_00010000
| |- warning: static property 'mutlicastUnauthenticatedDataAcceptable' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mutlicastUnauthenticatedDataAcceptable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | public var isAnswer: Bool {
[258/269] Compiling DNSClient ConfigParser.swift
[259/269] Compiling DNSClient DNSClient+Query.swift
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:89:27: warning: type 'Message' does not conform to the 'Sendable' protocol
87 | /// - returns: A future with the response message
88 | public func sendQuery(forHost address: String, type: DNSResourceType, additionalOptions: MessageOptions? = nil) -> EventLoopFuture<Message> {
89 | channel.eventLoop.flatSubmit {
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
90 | let messageID = self.messageID.withLockedValue { id in
91 | let newID = id &+ 1
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:102:40: warning: capture of 'additionalOptions' with non-sendable type 'MessageOptions?' in a '@Sendable' closure
100 | }
101 |
102 | if let additionalOptions = additionalOptions {
| `- warning: capture of 'additionalOptions' with non-sendable type 'MessageOptions?' in a '@Sendable' closure
103 | options.insert(additionalOptions)
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:5:15: note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:108:66: warning: capture of 'type' with non-sendable type 'DNSResourceType' in a '@Sendable' closure
106 | let header = DNSMessageHeader(id: messageID, options: options, questionCount: 1, answerCount: 0, authorityCount: 0, additionalRecordCount: 0)
107 | let labels = address.split(separator: ".").map(String.init).map(DNSLabel.init)
108 | let question = QuestionSection(labels: labels, type: type, questionClass: .internet)
| `- warning: capture of 'type' with non-sendable type 'DNSResourceType' in a '@Sendable' closure
109 | let message = Message(header: header, questions: [question], answers: [], authorities: [], additionalData: [])
110 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:66:13: note: consider making enum 'DNSResourceType' conform to the 'Sendable' protocol
64 | ///
65 | /// The official standard list of all Resource Record (RR) Types. [IANA](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4)
66 | public enum DNSResourceType: UInt16 {
| `- note: consider making enum 'DNSResourceType' conform to the 'Sendable' protocol
67 | /// A request for an IPv4 address
68 | case a = 1
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:118:21: warning: type 'Message' does not conform to the 'Sendable' protocol
116 | let promise: EventLoopPromise<Message> = loop.makePromise()
117 |
118 | return loop.flatSubmit {
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:122:26: warning: type 'Message' does not conform to the 'Sendable' protocol
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
123 |
124 | struct DNSTimeoutError: Error {}
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:120:23: warning: capture of 'message' with non-sendable type 'Message' in a '@Sendable' closure
118 | return loop.flatSubmit {
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
| `- warning: capture of 'message' with non-sendable type 'Message' in a '@Sendable' closure
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:120:23: warning: capture of 'message' with non-sendable type 'Message' in an isolated closure; this is an error in the Swift 6 language mode
118 | return loop.flatSubmit {
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
| `- warning: capture of 'message' with non-sendable type 'Message' in an isolated closure; this is an error in the Swift 6 language mode
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSDecoder.swift:48:27: warning: type 'Message' does not conform to the 'Sendable' protocol
46 | }
47 |
48 | query.promise.succeed(message)
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
49 | cache[message.header.id] = nil
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
[260/269] Compiling DNSClient DNSDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:89:27: warning: type 'Message' does not conform to the 'Sendable' protocol
87 | /// - returns: A future with the response message
88 | public func sendQuery(forHost address: String, type: DNSResourceType, additionalOptions: MessageOptions? = nil) -> EventLoopFuture<Message> {
89 | channel.eventLoop.flatSubmit {
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
90 | let messageID = self.messageID.withLockedValue { id in
91 | let newID = id &+ 1
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:102:40: warning: capture of 'additionalOptions' with non-sendable type 'MessageOptions?' in a '@Sendable' closure
100 | }
101 |
102 | if let additionalOptions = additionalOptions {
| `- warning: capture of 'additionalOptions' with non-sendable type 'MessageOptions?' in a '@Sendable' closure
103 | options.insert(additionalOptions)
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:5:15: note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:108:66: warning: capture of 'type' with non-sendable type 'DNSResourceType' in a '@Sendable' closure
106 | let header = DNSMessageHeader(id: messageID, options: options, questionCount: 1, answerCount: 0, authorityCount: 0, additionalRecordCount: 0)
107 | let labels = address.split(separator: ".").map(String.init).map(DNSLabel.init)
108 | let question = QuestionSection(labels: labels, type: type, questionClass: .internet)
| `- warning: capture of 'type' with non-sendable type 'DNSResourceType' in a '@Sendable' closure
109 | let message = Message(header: header, questions: [question], answers: [], authorities: [], additionalData: [])
110 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:66:13: note: consider making enum 'DNSResourceType' conform to the 'Sendable' protocol
64 | ///
65 | /// The official standard list of all Resource Record (RR) Types. [IANA](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4)
66 | public enum DNSResourceType: UInt16 {
| `- note: consider making enum 'DNSResourceType' conform to the 'Sendable' protocol
67 | /// A request for an IPv4 address
68 | case a = 1
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:118:21: warning: type 'Message' does not conform to the 'Sendable' protocol
116 | let promise: EventLoopPromise<Message> = loop.makePromise()
117 |
118 | return loop.flatSubmit {
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:122:26: warning: type 'Message' does not conform to the 'Sendable' protocol
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
123 |
124 | struct DNSTimeoutError: Error {}
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:120:23: warning: capture of 'message' with non-sendable type 'Message' in a '@Sendable' closure
118 | return loop.flatSubmit {
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
| `- warning: capture of 'message' with non-sendable type 'Message' in a '@Sendable' closure
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:120:23: warning: capture of 'message' with non-sendable type 'Message' in an isolated closure; this is an error in the Swift 6 language mode
118 | return loop.flatSubmit {
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
| `- warning: capture of 'message' with non-sendable type 'Message' in an isolated closure; this is an error in the Swift 6 language mode
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSDecoder.swift:48:27: warning: type 'Message' does not conform to the 'Sendable' protocol
46 | }
47 |
48 | query.promise.succeed(message)
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
49 | cache[message.header.id] = nil
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
[261/269] Compiling DNSClient Helpers.swift
[262/269] Compiling DNSClient Message.swift
[263/269] Compiling DNSClient PTR.swift
[264/269] Compiling DNSClient Errors.swift
[265/269] Compiling DNSClient DNSEncoder.swift
[266/269] Emitting module DNSClient
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:120:21: warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
118 | .channelInitializer { channel in
119 | return channel.pipeline.addHandlers(
120 | EnvelopeInboundChannel(),
| `- warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSDecoder.swift:4:13: note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
2 | import NIOConcurrencyHelpers
3 |
4 | final class EnvelopeInboundChannel: ChannelInboundHandler {
| `- note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
5 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
6 | typealias InboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:122:21: warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
120 | EnvelopeInboundChannel(),
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
| `- warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
123 | DNSEncoder()
124 | )
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:3:13: note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
1 | import NIO
2 |
3 | final class EnvelopeOutboundChannel: ChannelOutboundHandler {
| `- note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
4 | typealias OutboundIn = ByteBuffer
5 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:123:21: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
123 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
124 | )
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:118:21: warning: type 'Message' does not conform to the 'Sendable' protocol
116 | let promise: EventLoopPromise<Message> = loop.makePromise()
117 |
118 | return loop.flatSubmit {
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:122:26: warning: type 'Message' does not conform to the 'Sendable' protocol
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
| `- warning: type 'Message' does not conform to the 'Sendable' protocol
123 |
124 | struct DNSTimeoutError: Error {}
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:120:23: warning: capture of 'message' with non-sendable type 'Message' in a '@Sendable' closure
118 | return loop.flatSubmit {
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
| `- warning: capture of 'message' with non-sendable type 'Message' in a '@Sendable' closure
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Query.swift:120:23: warning: capture of 'message' with non-sendable type 'Message' in an isolated closure; this is an error in the Swift 6 language mode
118 | return loop.flatSubmit {
119 | self.dnsDecoder.messageCache.withLockedValue { cache in
120 | cache[message.header.id] = SentQuery(message: message, promise: promise)
| `- warning: capture of 'message' with non-sendable type 'Message' in an isolated closure; this is an error in the Swift 6 language mode
121 | }
122 | self.channel.writeAndFlush(message, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/Message.swift:475:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
473 | }
474 |
475 | public struct Message {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
476 | public internal(set) var header: DNSMessageHeader
477 | public let questions: [QuestionSection]
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:16:23: warning: static property 'answer' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
14 | }
15 |
16 | public static let answer: MessageOptions = 0b10000000_00000000
| |- warning: static property 'answer' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'answer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let authorativeAnswer: MessageOptions = 0b00000100_00000000
18 | public static let truncated: MessageOptions = 0b00000010_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:17:23: warning: static property 'authorativeAnswer' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
15 |
16 | public static let answer: MessageOptions = 0b10000000_00000000
17 | public static let authorativeAnswer: MessageOptions = 0b00000100_00000000
| |- warning: static property 'authorativeAnswer' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'authorativeAnswer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let truncated: MessageOptions = 0b00000010_00000000
19 | public static let recursionDesired: MessageOptions = 0b00000001_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:18:23: warning: static property 'truncated' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
16 | public static let answer: MessageOptions = 0b10000000_00000000
17 | public static let authorativeAnswer: MessageOptions = 0b00000100_00000000
18 | public static let truncated: MessageOptions = 0b00000010_00000000
| |- warning: static property 'truncated' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'truncated' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static let recursionDesired: MessageOptions = 0b00000001_00000000
20 | public static let recursionAvailable: MessageOptions = 0b00000000_10000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:19:23: warning: static property 'recursionDesired' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
17 | public static let authorativeAnswer: MessageOptions = 0b00000100_00000000
18 | public static let truncated: MessageOptions = 0b00000010_00000000
19 | public static let recursionDesired: MessageOptions = 0b00000001_00000000
| |- warning: static property 'recursionDesired' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'recursionDesired' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let recursionAvailable: MessageOptions = 0b00000000_10000000
21 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:20:23: warning: static property 'recursionAvailable' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
18 | public static let truncated: MessageOptions = 0b00000010_00000000
19 | public static let recursionDesired: MessageOptions = 0b00000001_00000000
20 | public static let recursionAvailable: MessageOptions = 0b00000000_10000000
| |- warning: static property 'recursionAvailable' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'recursionAvailable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | public static let standardQuery: MessageOptions = 0b00000000_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:22:23: warning: static property 'standardQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
20 | public static let recursionAvailable: MessageOptions = 0b00000000_10000000
21 |
22 | public static let standardQuery: MessageOptions = 0b00000000_00000000
| |- warning: static property 'standardQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardQuery' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | public static let inverseQuery: MessageOptions = 0b00001000_00000000
24 | public static let serverStatusQuery: MessageOptions = 0b00010000_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:23:23: warning: static property 'inverseQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
21 |
22 | public static let standardQuery: MessageOptions = 0b00000000_00000000
23 | public static let inverseQuery: MessageOptions = 0b00001000_00000000
| |- warning: static property 'inverseQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'inverseQuery' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | public static let serverStatusQuery: MessageOptions = 0b00010000_00000000
25 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:24:23: warning: static property 'serverStatusQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
22 | public static let standardQuery: MessageOptions = 0b00000000_00000000
23 | public static let inverseQuery: MessageOptions = 0b00001000_00000000
24 | public static let serverStatusQuery: MessageOptions = 0b00010000_00000000
| |- warning: static property 'serverStatusQuery' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'serverStatusQuery' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | public static let resultCodeSuccess: MessageOptions = 0b00000000_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:26:23: warning: static property 'resultCodeSuccess' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
24 | public static let serverStatusQuery: MessageOptions = 0b00010000_00000000
25 |
26 | public static let resultCodeSuccess: MessageOptions = 0b00000000_00000000
| |- warning: static property 'resultCodeSuccess' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeSuccess' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | public static let resultCodeFormatError: MessageOptions = 0b00000000_00000001
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:27:23: warning: static property 'resultCodeFormatError' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
25 |
26 | public static let resultCodeSuccess: MessageOptions = 0b00000000_00000000
27 | public static let resultCodeFormatError: MessageOptions = 0b00000000_00000001
| |- warning: static property 'resultCodeFormatError' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeFormatError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:28:23: warning: static property 'resultCodeServerfailure' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
26 | public static let resultCodeSuccess: MessageOptions = 0b00000000_00000000
27 | public static let resultCodeFormatError: MessageOptions = 0b00000000_00000001
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
| |- warning: static property 'resultCodeServerfailure' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeServerfailure' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
30 | public static let resultCodeNotImplemented: MessageOptions = 0b00000000_00000100
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:29:23: warning: static property 'resultCodeNameError' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
27 | public static let resultCodeFormatError: MessageOptions = 0b00000000_00000001
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
| |- warning: static property 'resultCodeNameError' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeNameError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public static let resultCodeNotImplemented: MessageOptions = 0b00000000_00000100
31 | public static let resultCodeNotRefused: MessageOptions = 0b00000000_00000101
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:30:23: warning: static property 'resultCodeNotImplemented' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
28 | public static let resultCodeServerfailure: MessageOptions = 0b00000000_00000010
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
30 | public static let resultCodeNotImplemented: MessageOptions = 0b00000000_00000100
| |- warning: static property 'resultCodeNotImplemented' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeNotImplemented' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | public static let resultCodeNotRefused: MessageOptions = 0b00000000_00000101
32 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:31:23: warning: static property 'resultCodeNotRefused' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
29 | public static let resultCodeNameError: MessageOptions = 0b00000000_00000011
30 | public static let resultCodeNotImplemented: MessageOptions = 0b00000000_00000100
31 | public static let resultCodeNotRefused: MessageOptions = 0b00000000_00000101
| |- warning: static property 'resultCodeNotRefused' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'resultCodeNotRefused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | public static let multicastResponse: MessageOptions = 0b10000000_00000000
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:33:23: warning: static property 'multicastResponse' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
31 | public static let resultCodeNotRefused: MessageOptions = 0b00000000_00000101
32 |
33 | public static let multicastResponse: MessageOptions = 0b10000000_00000000
| |- warning: static property 'multicastResponse' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'multicastResponse' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static let mutlicastUnauthenticatedDataAcceptable: MessageOptions = 0b00000000_00010000
35 |
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/Messages/MessageOptions.swift:34:23: warning: static property 'mutlicastUnauthenticatedDataAcceptable' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// The options for a DNS message. These are used to specify the type of query, whether the message is an answer, and the result code.
5 | public struct MessageOptions: OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'MessageOptions' conform to the 'Sendable' protocol
6 | public var rawValue: UInt16
7 |
:
32 |
33 | public static let multicastResponse: MessageOptions = 0b10000000_00000000
34 | public static let mutlicastUnauthenticatedDataAcceptable: MessageOptions = 0b00000000_00010000
| |- warning: static property 'mutlicastUnauthenticatedDataAcceptable' is not concurrency-safe because non-'Sendable' type 'MessageOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'mutlicastUnauthenticatedDataAcceptable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | public var isAnswer: Bool {
[267/269] Compiling DNSClient Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:93:17: warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
91 | if let remoteAddress = remoteAddress {
92 | return channel.pipeline.addHandlers(
93 | EnvelopeInboundChannel(),
| `- warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
94 | context.decoder,
95 | EnvelopeOutboundChannel(address: remoteAddress),
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSDecoder.swift:4:13: note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
2 | import NIOConcurrencyHelpers
3 |
4 | final class EnvelopeInboundChannel: ChannelInboundHandler {
| `- note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
5 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
6 | typealias InboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:95:17: warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
93 | EnvelopeInboundChannel(),
94 | context.decoder,
95 | EnvelopeOutboundChannel(address: remoteAddress),
| `- warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
96 | DNSEncoder()
97 | )
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:3:13: note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
1 | import NIO
2 |
3 | final class EnvelopeOutboundChannel: ChannelOutboundHandler {
| `- note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
4 | typealias OutboundIn = ByteBuffer
5 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:96:17: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
94 | context.decoder,
95 | EnvelopeOutboundChannel(address: remoteAddress),
96 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
97 | )
98 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:99:66: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
97 | )
98 | } else {
99 | return channel.pipeline.addHandlers(context.decoder, DNSEncoder())
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:120:21: warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
118 | .channelInitializer { channel in
119 | return channel.pipeline.addHandlers(
120 | EnvelopeInboundChannel(),
| `- warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSDecoder.swift:4:13: note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
2 | import NIOConcurrencyHelpers
3 |
4 | final class EnvelopeInboundChannel: ChannelInboundHandler {
| `- note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
5 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
6 | typealias InboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:122:21: warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
120 | EnvelopeInboundChannel(),
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
| `- warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
123 | DNSEncoder()
124 | )
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:3:13: note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
1 | import NIO
2 |
3 | final class EnvelopeOutboundChannel: ChannelOutboundHandler {
| `- note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
4 | typealias OutboundIn = ByteBuffer
5 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:123:21: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
123 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
124 | )
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:156:21: warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
154 | .channelInitializer { channel in
155 | return channel.pipeline.addHandlers(
156 | ByteToMessageHandler(UInt16FrameDecoder()),
| `- warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
157 | MessageToByteHandler(UInt16FrameEncoder()),
158 | dnsDecoder,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:507:1: note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
505 |
506 | @available(*, unavailable)
507 | extension ByteToMessageHandler: Sendable {}
| `- note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
508 |
509 | // MARK: ByteToMessageHandler: Test Helpers
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:157:21: warning: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
155 | return channel.pipeline.addHandlers(
156 | ByteToMessageHandler(UInt16FrameDecoder()),
157 | MessageToByteHandler(UInt16FrameEncoder()),
| `- warning: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
158 | dnsDecoder,
159 | DNSEncoder()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:810:1: note: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' has been explicitly marked unavailable here
808 |
809 | @available(*, unavailable)
810 | extension MessageToByteHandler: Sendable {}
| `- note: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' has been explicitly marked unavailable here
811 |
812 | extension MessageToByteHandler {
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:159:21: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
157 | MessageToByteHandler(UInt16FrameEncoder()),
158 | dnsDecoder,
159 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
160 | )
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:214:61: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
212 |
213 | return NIOTSDatagramBootstrap(group: group).channelInitializer { channel in
214 | return channel.pipeline.addHandlers(dnsDecoder, DNSEncoder())
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
215 | }
216 | .connect(host: ipAddress, port: port)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:267:17: warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
265 | return NIOTSConnectionBootstrap(group: group).channelInitializer { channel in
266 | return channel.pipeline.addHandlers(
267 | ByteToMessageHandler(UInt16FrameDecoder()),
| `- warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
268 | MessageToByteHandler(UInt16FrameEncoder()),
269 | dnsDecoder,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:507:1: note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
505 |
506 | @available(*, unavailable)
507 | extension ByteToMessageHandler: Sendable {}
| `- note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
508 |
509 | // MARK: ByteToMessageHandler: Test Helpers
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:268:17: warning: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
266 | return channel.pipeline.addHandlers(
267 | ByteToMessageHandler(UInt16FrameDecoder()),
268 | MessageToByteHandler(UInt16FrameEncoder()),
| `- warning: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
269 | dnsDecoder,
270 | DNSEncoder()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:810:1: note: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' has been explicitly marked unavailable here
808 |
809 | @available(*, unavailable)
810 | extension MessageToByteHandler: Sendable {}
| `- note: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' has been explicitly marked unavailable here
811 |
812 | extension MessageToByteHandler {
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:270:17: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
268 | MessageToByteHandler(UInt16FrameEncoder()),
269 | dnsDecoder,
270 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
271 | )
272 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
[268/269] Compiling DNSClient DNSClient+Connect.swift
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:93:17: warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
91 | if let remoteAddress = remoteAddress {
92 | return channel.pipeline.addHandlers(
93 | EnvelopeInboundChannel(),
| `- warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
94 | context.decoder,
95 | EnvelopeOutboundChannel(address: remoteAddress),
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSDecoder.swift:4:13: note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
2 | import NIOConcurrencyHelpers
3 |
4 | final class EnvelopeInboundChannel: ChannelInboundHandler {
| `- note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
5 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
6 | typealias InboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:95:17: warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
93 | EnvelopeInboundChannel(),
94 | context.decoder,
95 | EnvelopeOutboundChannel(address: remoteAddress),
| `- warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
96 | DNSEncoder()
97 | )
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:3:13: note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
1 | import NIO
2 |
3 | final class EnvelopeOutboundChannel: ChannelOutboundHandler {
| `- note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
4 | typealias OutboundIn = ByteBuffer
5 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:96:17: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
94 | context.decoder,
95 | EnvelopeOutboundChannel(address: remoteAddress),
96 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
97 | )
98 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:99:66: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
97 | )
98 | } else {
99 | return channel.pipeline.addHandlers(context.decoder, DNSEncoder())
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:120:21: warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
118 | .channelInitializer { channel in
119 | return channel.pipeline.addHandlers(
120 | EnvelopeInboundChannel(),
| `- warning: type 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSDecoder.swift:4:13: note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
2 | import NIOConcurrencyHelpers
3 |
4 | final class EnvelopeInboundChannel: ChannelInboundHandler {
| `- note: class 'EnvelopeInboundChannel' does not conform to the 'Sendable' protocol
5 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
6 | typealias InboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:122:21: warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
120 | EnvelopeInboundChannel(),
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
| `- warning: type 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
123 | DNSEncoder()
124 | )
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:3:13: note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
1 | import NIO
2 |
3 | final class EnvelopeOutboundChannel: ChannelOutboundHandler {
| `- note: class 'EnvelopeOutboundChannel' does not conform to the 'Sendable' protocol
4 | typealias OutboundIn = ByteBuffer
5 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:123:21: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
121 | dnsDecoder,
122 | EnvelopeOutboundChannel(address: address),
123 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
124 | )
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:156:21: warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
154 | .channelInitializer { channel in
155 | return channel.pipeline.addHandlers(
156 | ByteToMessageHandler(UInt16FrameDecoder()),
| `- warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
157 | MessageToByteHandler(UInt16FrameEncoder()),
158 | dnsDecoder,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:507:1: note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
505 |
506 | @available(*, unavailable)
507 | extension ByteToMessageHandler: Sendable {}
| `- note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
508 |
509 | // MARK: ByteToMessageHandler: Test Helpers
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:157:21: warning: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
155 | return channel.pipeline.addHandlers(
156 | ByteToMessageHandler(UInt16FrameDecoder()),
157 | MessageToByteHandler(UInt16FrameEncoder()),
| `- warning: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
158 | dnsDecoder,
159 | DNSEncoder()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:810:1: note: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' has been explicitly marked unavailable here
808 |
809 | @available(*, unavailable)
810 | extension MessageToByteHandler: Sendable {}
| `- note: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' has been explicitly marked unavailable here
811 |
812 | extension MessageToByteHandler {
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:159:21: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
157 | MessageToByteHandler(UInt16FrameEncoder()),
158 | dnsDecoder,
159 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
160 | )
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:214:61: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
212 |
213 | return NIOTSDatagramBootstrap(group: group).channelInitializer { channel in
214 | return channel.pipeline.addHandlers(dnsDecoder, DNSEncoder())
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
215 | }
216 | .connect(host: ipAddress, port: port)
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:267:17: warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
265 | return NIOTSConnectionBootstrap(group: group).channelInitializer { channel in
266 | return channel.pipeline.addHandlers(
267 | ByteToMessageHandler(UInt16FrameDecoder()),
| `- warning: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
268 | MessageToByteHandler(UInt16FrameEncoder()),
269 | dnsDecoder,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:507:1: note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
505 |
506 | @available(*, unavailable)
507 | extension ByteToMessageHandler: Sendable {}
| `- note: conformance of 'ByteToMessageHandler<Decoder>' to 'Sendable' has been explicitly marked unavailable here
508 |
509 | // MARK: ByteToMessageHandler: Test Helpers
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:268:17: warning: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
266 | return channel.pipeline.addHandlers(
267 | ByteToMessageHandler(UInt16FrameDecoder()),
268 | MessageToByteHandler(UInt16FrameEncoder()),
| `- warning: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' is unavailable; this is an error in the Swift 6 language mode
269 | dnsDecoder,
270 | DNSEncoder()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Codec.swift:810:1: note: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' has been explicitly marked unavailable here
808 |
809 | @available(*, unavailable)
810 | extension MessageToByteHandler: Sendable {}
| `- note: conformance of 'MessageToByteHandler<Encoder>' to 'Sendable' has been explicitly marked unavailable here
811 |
812 | extension MessageToByteHandler {
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSClient+Connect.swift:270:17: warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
268 | MessageToByteHandler(UInt16FrameEncoder()),
269 | dnsDecoder,
270 | DNSEncoder()
| `- warning: type 'DNSEncoder' does not conform to the 'Sendable' protocol
271 | )
272 | }
/Users/admin/builder/spi-builder-workspace/Sources/DNSClient/DNSEncoder.swift:50:20: note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
48 | }
49 |
50 | public final class DNSEncoder: ChannelOutboundHandler {
| `- note: class 'DNSEncoder' does not conform to the 'Sendable' protocol
51 | public typealias OutboundIn = Message
52 | public typealias OutboundOut = ByteBuffer
[269/269] Compiling DNSClient SRV.swift
Build complete! (23.71s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-nio-transport-services.git from cache
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.62s)
Fetched https://github.com/apple/swift-nio.git from cache (0.97s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.24.0 (1.51s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.41s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.1 (1.17s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.72s)
Fetched https://github.com/apple/swift-collections.git from cache (0.73s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.23s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.44s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.73s)
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-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
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.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.1
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-nio-transport-services",
"requirement" : {
"range" : [
{
"lower_bound" : "1.19.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-transport-services.git"
}
],
"manifest_display_name" : "DNSClient",
"name" : "DNSClient",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "DNSClient",
"targets" : [
"DNSClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DNSClientTests",
"module_type" : "SwiftTarget",
"name" : "DNSClientTests",
"path" : "Tests/DNSClientTests",
"product_dependencies" : [
"NIO"
],
"sources" : [
"DNSTCPClientTests.swift",
"DNSUDPClientTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"DNSClient"
],
"type" : "test"
},
{
"c99name" : "DNSClient",
"module_type" : "SwiftTarget",
"name" : "DNSClient",
"path" : "Sources/DNSClient",
"product_dependencies" : [
"NIOTransportServices",
"NIO"
],
"product_memberships" : [
"DNSClient"
],
"sources" : [
"Client.swift",
"DNSClient+Connect.swift",
"DNSClient+Query.swift",
"DNSDecoder.swift",
"DNSEncoder.swift",
"Errors.swift",
"Helpers.swift",
"Messages/Message.swift",
"Messages/MessageOptions.swift",
"PTR.swift",
"ResolvConf/ConfigParser.swift",
"SRV.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.