Build Information
Successful build of swift-async-dns-resolver, reference 0.4.0 (08c07f
), with Swift 6.1 for Linux on 28 Apr 2025 20:16:40 UTC.
Swift 6 data race errors: 9
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/swift-async-dns-resolver.git
Reference: 0.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/apple/swift-async-dns-resolver
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 08c07ff Simplify AsyncDNSResolver.Error (#27)
Submodule path 'Sources/CAsyncDNSResolver/c-ares': checked out '6360e96b5cf8e5980c887ce58ef727e53d77243a'
Submodule 'c-ares' (https://github.com/c-ares/c-ares.git) registered for path 'Sources/CAsyncDNSResolver/c-ares'
Cloning into '/host/spi-builder-workspace/Sources/CAsyncDNSResolver/c-ares'...
Cloned https://github.com/apple/swift-async-dns-resolver.git
Revision (git rev-parse @):
08c07ff31a745ee5e522ac10132fb4949834d925
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-async-dns-resolver.git at 0.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/apple/swift-async-dns-resolver.git
https://github.com/apple/swift-async-dns-resolver.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"c_language_standard" : "gnu11",
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-async-dns-resolver",
"name" : "swift-async-dns-resolver",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AsyncDNSResolver",
"targets" : [
"AsyncDNSResolver"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CAsyncDNSResolver",
"module_type" : "ClangTarget",
"name" : "CAsyncDNSResolver",
"path" : "Sources/CAsyncDNSResolver",
"product_memberships" : [
"AsyncDNSResolver"
],
"sources" : [
"c-ares/src/lib/ares__addrinfo2hostent.c",
"c-ares/src/lib/ares__addrinfo_localhost.c",
"c-ares/src/lib/ares__close_sockets.c",
"c-ares/src/lib/ares__get_hostent.c",
"c-ares/src/lib/ares__parse_into_addrinfo.c",
"c-ares/src/lib/ares__read_line.c",
"c-ares/src/lib/ares__readaddrinfo.c",
"c-ares/src/lib/ares__sortaddrinfo.c",
"c-ares/src/lib/ares__timeval.c",
"c-ares/src/lib/ares_android.c",
"c-ares/src/lib/ares_cancel.c",
"c-ares/src/lib/ares_create_query.c",
"c-ares/src/lib/ares_data.c",
"c-ares/src/lib/ares_destroy.c",
"c-ares/src/lib/ares_expand_name.c",
"c-ares/src/lib/ares_expand_string.c",
"c-ares/src/lib/ares_fds.c",
"c-ares/src/lib/ares_free_hostent.c",
"c-ares/src/lib/ares_free_string.c",
"c-ares/src/lib/ares_freeaddrinfo.c",
"c-ares/src/lib/ares_getaddrinfo.c",
"c-ares/src/lib/ares_getenv.c",
"c-ares/src/lib/ares_gethostbyaddr.c",
"c-ares/src/lib/ares_gethostbyname.c",
"c-ares/src/lib/ares_getnameinfo.c",
"c-ares/src/lib/ares_getsock.c",
"c-ares/src/lib/ares_init.c",
"c-ares/src/lib/ares_library_init.c",
"c-ares/src/lib/ares_llist.c",
"c-ares/src/lib/ares_mkquery.c",
"c-ares/src/lib/ares_nowarn.c",
"c-ares/src/lib/ares_options.c",
"c-ares/src/lib/ares_parse_a_reply.c",
"c-ares/src/lib/ares_parse_aaaa_reply.c",
"c-ares/src/lib/ares_parse_caa_reply.c",
"c-ares/src/lib/ares_parse_mx_reply.c",
"c-ares/src/lib/ares_parse_naptr_reply.c",
"c-ares/src/lib/ares_parse_ns_reply.c",
"c-ares/src/lib/ares_parse_ptr_reply.c",
"c-ares/src/lib/ares_parse_soa_reply.c",
"c-ares/src/lib/ares_parse_srv_reply.c",
"c-ares/src/lib/ares_parse_txt_reply.c",
"c-ares/src/lib/ares_parse_uri_reply.c",
"c-ares/src/lib/ares_platform.c",
"c-ares/src/lib/ares_process.c",
"c-ares/src/lib/ares_query.c",
"c-ares/src/lib/ares_rand.c",
"c-ares/src/lib/ares_search.c",
"c-ares/src/lib/ares_send.c",
"c-ares/src/lib/ares_strcasecmp.c",
"c-ares/src/lib/ares_strdup.c",
"c-ares/src/lib/ares_strerror.c",
"c-ares/src/lib/ares_strsplit.c",
"c-ares/src/lib/ares_timeout.c",
"c-ares/src/lib/ares_version.c",
"c-ares/src/lib/ares_writev.c",
"c-ares/src/lib/bitncmp.c",
"c-ares/src/lib/inet_net_pton.c",
"c-ares/src/lib/inet_ntop.c",
"c-ares/src/lib/windows_port.c"
],
"type" : "library"
},
{
"c99name" : "AsyncDNSResolverTests",
"module_type" : "SwiftTarget",
"name" : "AsyncDNSResolverTests",
"path" : "Tests/AsyncDNSResolverTests",
"sources" : [
"c-ares/AresChannelTests.swift",
"c-ares/AresErrorTests.swift",
"c-ares/AresOptionsTests.swift",
"c-ares/CAresDNSResolverTests.swift",
"dnssd/DNSDArraySliceTests.swift",
"dnssd/DNSSDDNSResolverTests.swift",
"dnssd/DNSSDErrorTests.swift"
],
"target_dependencies" : [
"AsyncDNSResolver"
],
"type" : "test"
},
{
"c99name" : "AsyncDNSResolver",
"module_type" : "SwiftTarget",
"name" : "AsyncDNSResolver",
"path" : "Sources/AsyncDNSResolver",
"product_memberships" : [
"AsyncDNSResolver"
],
"sources" : [
"AsyncDNSResolver.swift",
"Errors.swift",
"c-ares/AresChannel.swift",
"c-ares/AresOptions.swift",
"c-ares/DNSResolver_c-ares.swift",
"c-ares/Errors_c-ares.swift",
"dnssd/DNSResolver_dnssd.swift",
"dnssd/Errors_dnssd.swift"
],
"target_dependencies" : [
"CAsyncDNSResolver"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2049] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.51s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (1.25s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3377] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.32s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.83s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/64] Compiling ares_android.c
[3/64] Compiling ares__read_line.c
[4/64] Compiling ares__addrinfo2hostent.c
[5/64] Compiling ares__close_sockets.c
[5/64] Compiling ares__addrinfo_localhost.c
[7/64] Compiling windows_port.c
[8/64] Compiling inet_ntop.c
[9/64] Compiling bitncmp.c
[10/64] Compiling inet_net_pton.c
[10/64] Compiling ares_writev.c
[12/64] Compiling ares_version.c
[13/64] Compiling ares_strsplit.c
[14/64] Compiling ares_strerror.c
[15/64] Compiling ares_timeout.c
[16/64] Compiling ares_strdup.c
[17/64] Compiling ares_strcasecmp.c
[18/64] Compiling ares__parse_into_addrinfo.c
[19/64] Write swift-version-24593BA9C3E375BF.txt
[20/64] Compiling ares_search.c
[20/64] Compiling ares_send.c
[22/64] Compiling ares_rand.c
[23/64] Compiling ares_query.c
[24/64] Compiling ares_platform.c
[25/64] Compiling ares_parse_uri_reply.c
[26/64] Compiling ares_parse_ns_reply.c
[27/64] Compiling ares_parse_ptr_reply.c
[28/64] Compiling ares_parse_naptr_reply.c
[28/64] Compiling ares_parse_soa_reply.c
[30/64] Compiling ares_parse_txt_reply.c
[31/64] Compiling ares_parse_srv_reply.c
[31/64] Compiling ares_parse_mx_reply.c
[33/64] Compiling ares_process.c
[34/64] Compiling ares_parse_caa_reply.c
[35/64] Compiling ares_llist.c
[35/64] Compiling ares_nowarn.c
[37/64] Compiling ares_library_init.c
[37/64] Compiling ares_parse_a_reply.c
[39/64] Compiling ares_options.c
[39/64] Compiling ares_parse_aaaa_reply.c
[41/64] Compiling ares_mkquery.c
[42/64] Compiling ares_getsock.c
[43/64] Compiling ares_getenv.c
[44/64] Compiling ares_gethostbyname.c
[45/64] Compiling ares_init.c
[46/64] Compiling ares_gethostbyaddr.c
[47/64] Compiling ares_free_string.c
[47/64] Compiling ares_freeaddrinfo.c
[47/64] Compiling ares_getnameinfo.c
[50/64] Compiling ares_getaddrinfo.c
[51/64] Compiling ares_free_hostent.c
[52/64] Compiling ares_fds.c
[52/64] Compiling ares_destroy.c
[54/64] Compiling ares_data.c
[55/64] Compiling ares_expand_string.c
[56/64] Write sources
[57/64] Compiling ares_cancel.c
[58/64] Compiling ares__timeval.c
[59/64] Compiling ares_expand_name.c
[60/64] Compiling ares_create_query.c
[61/64] Compiling ares__readaddrinfo.c
[62/64] Compiling ares__sortaddrinfo.c
[63/64] Compiling ares__get_hostent.c
[65/72] Compiling AsyncDNSResolver DNSResolver_dnssd.swift
[66/73] Compiling AsyncDNSResolver Errors_dnssd.swift
[67/73] Compiling AsyncDNSResolver DNSResolver_c-ares.swift
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/DNSResolver_c-ares.swift:179:17: warning: capture of 'self' with non-sendable type 'Ares' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 |
123 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
124 | class Ares {
| `- note: class 'Ares' does not conform to the 'Sendable' protocol
125 | typealias QueryCallback = @convention(c) (UnsafeMutableRawPointer?, CInt, CInt, UnsafeMutablePointer<CUnsignedChar>?, CInt) -> Void
126 |
:
177 | },
178 | onCancel: {
179 | self.channel.withChannel { channel in
| `- warning: capture of 'self' with non-sendable type 'Ares' in a '@Sendable' closure; this is an error in the Swift 6 language mode
180 | ares_cancel(channel)
181 | }
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/DNSResolver_c-ares.swift:250:37: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 |
249 | private func schedule() {
250 | self.pollingTask = Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
251 | guard let s = self else {
| `- note: closure captures 'self' which is accessible to code in the current task
252 | return
253 | }
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/DNSResolver_c-ares.swift:276:34: warning: sending 'reply' risks causing data races; this is an error in the Swift 6 language mode
274 | do {
275 | let reply = try parser.parse(buffer: buffer, length: length)
276 | continuation.resume(returning: reply)
| |- warning: sending 'reply' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'reply' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
277 | } catch {
278 | continuation.resume(throwing: error)
[68/73] Compiling AsyncDNSResolver Errors_c-ares.swift
[69/73] Compiling AsyncDNSResolver AresOptions.swift
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:102:27: warning: static property 'USEVC' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
100 |
101 | /// Always use TCP queries (the "virtual circuit") instead of UDP queries. Normally, TCP is only used if a UDP query yields a truncated result.
102 | public static let USEVC = Flags(rawValue: ARES_FLAG_USEVC)
| |- warning: static property 'USEVC' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'USEVC' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | /// Only query the first server in the list of servers to query.
104 | public static let PRIMARY = Flags(rawValue: ARES_FLAG_PRIMARY)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:104:27: warning: static property 'PRIMARY' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
102 | public static let USEVC = Flags(rawValue: ARES_FLAG_USEVC)
103 | /// Only query the first server in the list of servers to query.
104 | public static let PRIMARY = Flags(rawValue: ARES_FLAG_PRIMARY)
| |- warning: static property 'PRIMARY' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'PRIMARY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// If a truncated response to a UDP query is received, do not fall back to TCP; simply continue on with the truncated response.
106 | public static let IGNTC = Flags(rawValue: ARES_FLAG_IGNTC)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:106:27: warning: static property 'IGNTC' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
104 | public static let PRIMARY = Flags(rawValue: ARES_FLAG_PRIMARY)
105 | /// If a truncated response to a UDP query is received, do not fall back to TCP; simply continue on with the truncated response.
106 | public static let IGNTC = Flags(rawValue: ARES_FLAG_IGNTC)
| |- warning: static property 'IGNTC' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'IGNTC' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | /// Do not set the "recursion desired" bit on outgoing queries, so that the name server being contacted will not try to fetch the answer
108 | /// from other servers if it doesn't know the answer locally. Be aware that this library will not do the recursion for you. Recursion must be
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:110:27: warning: static property 'NORECURSE' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
108 | /// from other servers if it doesn't know the answer locally. Be aware that this library will not do the recursion for you. Recursion must be
109 | /// handled by the client calling this library.
110 | public static let NORECURSE = Flags(rawValue: ARES_FLAG_NORECURSE)
| |- warning: static property 'NORECURSE' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'NORECURSE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | /// Do not close communications sockets when the number of active queries drops to zero.
112 | public static let STAYOPEN = Flags(rawValue: ARES_FLAG_STAYOPEN)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:112:27: warning: static property 'STAYOPEN' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
110 | public static let NORECURSE = Flags(rawValue: ARES_FLAG_NORECURSE)
111 | /// Do not close communications sockets when the number of active queries drops to zero.
112 | public static let STAYOPEN = Flags(rawValue: ARES_FLAG_STAYOPEN)
| |- warning: static property 'STAYOPEN' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'STAYOPEN' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | /// Do not use the default search domains; only query hostnames as-is or as aliases.
114 | public static let NOSEARCH = Flags(rawValue: ARES_FLAG_NOSEARCH)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:114:27: warning: static property 'NOSEARCH' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
112 | public static let STAYOPEN = Flags(rawValue: ARES_FLAG_STAYOPEN)
113 | /// Do not use the default search domains; only query hostnames as-is or as aliases.
114 | public static let NOSEARCH = Flags(rawValue: ARES_FLAG_NOSEARCH)
| |- warning: static property 'NOSEARCH' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'NOSEARCH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | /// Do not honor the HOSTALIASES environment variable, which normally specifies a file of hostname translations.
116 | public static let NOALIASES = Flags(rawValue: ARES_FLAG_NOALIASES)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:116:27: warning: static property 'NOALIASES' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
114 | public static let NOSEARCH = Flags(rawValue: ARES_FLAG_NOSEARCH)
115 | /// Do not honor the HOSTALIASES environment variable, which normally specifies a file of hostname translations.
116 | public static let NOALIASES = Flags(rawValue: ARES_FLAG_NOALIASES)
| |- warning: static property 'NOALIASES' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'NOALIASES' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | /// Do not discard responses with the SERVFAIL, NOTIMP, or REFUSED response code or responses whose questions don't match the
118 | /// questions in the request. Primarily useful for writing clients which might be used to test or debug name servers.
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:119:27: warning: static property 'NOCHECKRESP' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
117 | /// Do not discard responses with the SERVFAIL, NOTIMP, or REFUSED response code or responses whose questions don't match the
118 | /// questions in the request. Primarily useful for writing clients which might be used to test or debug name servers.
119 | public static let NOCHECKRESP = Flags(rawValue: ARES_FLAG_NOCHECKRESP)
| |- warning: static property 'NOCHECKRESP' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'NOCHECKRESP' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /// Include an EDNS pseudo-resource record (RFC 2671) in generated requests.
121 | public static let EDNS = Flags(rawValue: ARES_FLAG_EDNS)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:121:27: warning: static property 'EDNS' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
119 | public static let NOCHECKRESP = Flags(rawValue: ARES_FLAG_NOCHECKRESP)
120 | /// Include an EDNS pseudo-resource record (RFC 2671) in generated requests.
121 | public static let EDNS = Flags(rawValue: ARES_FLAG_EDNS)
| |- warning: static property 'EDNS' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EDNS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 | }
123 | }
[70/73] Compiling AsyncDNSResolver Errors.swift
[71/73] Compiling AsyncDNSResolver AresChannel.swift
[72/73] Compiling AsyncDNSResolver AsyncDNSResolver.swift
[73/73] Emitting module AsyncDNSResolver
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:102:27: warning: static property 'USEVC' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
100 |
101 | /// Always use TCP queries (the "virtual circuit") instead of UDP queries. Normally, TCP is only used if a UDP query yields a truncated result.
102 | public static let USEVC = Flags(rawValue: ARES_FLAG_USEVC)
| |- warning: static property 'USEVC' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'USEVC' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | /// Only query the first server in the list of servers to query.
104 | public static let PRIMARY = Flags(rawValue: ARES_FLAG_PRIMARY)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:104:27: warning: static property 'PRIMARY' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
102 | public static let USEVC = Flags(rawValue: ARES_FLAG_USEVC)
103 | /// Only query the first server in the list of servers to query.
104 | public static let PRIMARY = Flags(rawValue: ARES_FLAG_PRIMARY)
| |- warning: static property 'PRIMARY' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'PRIMARY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// If a truncated response to a UDP query is received, do not fall back to TCP; simply continue on with the truncated response.
106 | public static let IGNTC = Flags(rawValue: ARES_FLAG_IGNTC)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:106:27: warning: static property 'IGNTC' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
104 | public static let PRIMARY = Flags(rawValue: ARES_FLAG_PRIMARY)
105 | /// If a truncated response to a UDP query is received, do not fall back to TCP; simply continue on with the truncated response.
106 | public static let IGNTC = Flags(rawValue: ARES_FLAG_IGNTC)
| |- warning: static property 'IGNTC' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'IGNTC' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | /// Do not set the "recursion desired" bit on outgoing queries, so that the name server being contacted will not try to fetch the answer
108 | /// from other servers if it doesn't know the answer locally. Be aware that this library will not do the recursion for you. Recursion must be
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:110:27: warning: static property 'NORECURSE' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
108 | /// from other servers if it doesn't know the answer locally. Be aware that this library will not do the recursion for you. Recursion must be
109 | /// handled by the client calling this library.
110 | public static let NORECURSE = Flags(rawValue: ARES_FLAG_NORECURSE)
| |- warning: static property 'NORECURSE' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'NORECURSE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | /// Do not close communications sockets when the number of active queries drops to zero.
112 | public static let STAYOPEN = Flags(rawValue: ARES_FLAG_STAYOPEN)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:112:27: warning: static property 'STAYOPEN' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
110 | public static let NORECURSE = Flags(rawValue: ARES_FLAG_NORECURSE)
111 | /// Do not close communications sockets when the number of active queries drops to zero.
112 | public static let STAYOPEN = Flags(rawValue: ARES_FLAG_STAYOPEN)
| |- warning: static property 'STAYOPEN' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'STAYOPEN' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | /// Do not use the default search domains; only query hostnames as-is or as aliases.
114 | public static let NOSEARCH = Flags(rawValue: ARES_FLAG_NOSEARCH)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:114:27: warning: static property 'NOSEARCH' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
112 | public static let STAYOPEN = Flags(rawValue: ARES_FLAG_STAYOPEN)
113 | /// Do not use the default search domains; only query hostnames as-is or as aliases.
114 | public static let NOSEARCH = Flags(rawValue: ARES_FLAG_NOSEARCH)
| |- warning: static property 'NOSEARCH' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'NOSEARCH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | /// Do not honor the HOSTALIASES environment variable, which normally specifies a file of hostname translations.
116 | public static let NOALIASES = Flags(rawValue: ARES_FLAG_NOALIASES)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:116:27: warning: static property 'NOALIASES' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
114 | public static let NOSEARCH = Flags(rawValue: ARES_FLAG_NOSEARCH)
115 | /// Do not honor the HOSTALIASES environment variable, which normally specifies a file of hostname translations.
116 | public static let NOALIASES = Flags(rawValue: ARES_FLAG_NOALIASES)
| |- warning: static property 'NOALIASES' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'NOALIASES' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | /// Do not discard responses with the SERVFAIL, NOTIMP, or REFUSED response code or responses whose questions don't match the
118 | /// questions in the request. Primarily useful for writing clients which might be used to test or debug name servers.
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:119:27: warning: static property 'NOCHECKRESP' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
117 | /// Do not discard responses with the SERVFAIL, NOTIMP, or REFUSED response code or responses whose questions don't match the
118 | /// questions in the request. Primarily useful for writing clients which might be used to test or debug name servers.
119 | public static let NOCHECKRESP = Flags(rawValue: ARES_FLAG_NOCHECKRESP)
| |- warning: static property 'NOCHECKRESP' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'NOCHECKRESP' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /// Include an EDNS pseudo-resource record (RFC 2671) in generated requests.
121 | public static let EDNS = Flags(rawValue: ARES_FLAG_EDNS)
/host/spi-builder-workspace/Sources/AsyncDNSResolver/c-ares/AresOptions.swift:121:27: warning: static property 'EDNS' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
92 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
93 | extension CAresDNSResolver.Options {
94 | public struct Flags: OptionSet {
| `- note: consider making struct 'Flags' conform to the 'Sendable' protocol
95 | public let rawValue: Int32
96 |
:
119 | public static let NOCHECKRESP = Flags(rawValue: ARES_FLAG_NOCHECKRESP)
120 | /// Include an EDNS pseudo-resource record (RFC 2671) in generated requests.
121 | public static let EDNS = Flags(rawValue: ARES_FLAG_EDNS)
| |- warning: static property 'EDNS' is not concurrency-safe because non-'Sendable' type 'CAresDNSResolver.Options.Flags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EDNS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 | }
123 | }
Build complete! (25.21s)
Build complete.
{
"c_language_standard" : "gnu11",
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-async-dns-resolver",
"name" : "swift-async-dns-resolver",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AsyncDNSResolver",
"targets" : [
"AsyncDNSResolver"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CAsyncDNSResolver",
"module_type" : "ClangTarget",
"name" : "CAsyncDNSResolver",
"path" : "Sources/CAsyncDNSResolver",
"product_memberships" : [
"AsyncDNSResolver"
],
"sources" : [
"c-ares/src/lib/ares__addrinfo2hostent.c",
"c-ares/src/lib/ares__addrinfo_localhost.c",
"c-ares/src/lib/ares__close_sockets.c",
"c-ares/src/lib/ares__get_hostent.c",
"c-ares/src/lib/ares__parse_into_addrinfo.c",
"c-ares/src/lib/ares__read_line.c",
"c-ares/src/lib/ares__readaddrinfo.c",
"c-ares/src/lib/ares__sortaddrinfo.c",
"c-ares/src/lib/ares__timeval.c",
"c-ares/src/lib/ares_android.c",
"c-ares/src/lib/ares_cancel.c",
"c-ares/src/lib/ares_create_query.c",
"c-ares/src/lib/ares_data.c",
"c-ares/src/lib/ares_destroy.c",
"c-ares/src/lib/ares_expand_name.c",
"c-ares/src/lib/ares_expand_string.c",
"c-ares/src/lib/ares_fds.c",
"c-ares/src/lib/ares_free_hostent.c",
"c-ares/src/lib/ares_free_string.c",
"c-ares/src/lib/ares_freeaddrinfo.c",
"c-ares/src/lib/ares_getaddrinfo.c",
"c-ares/src/lib/ares_getenv.c",
"c-ares/src/lib/ares_gethostbyaddr.c",
"c-ares/src/lib/ares_gethostbyname.c",
"c-ares/src/lib/ares_getnameinfo.c",
"c-ares/src/lib/ares_getsock.c",
"c-ares/src/lib/ares_init.c",
"c-ares/src/lib/ares_library_init.c",
"c-ares/src/lib/ares_llist.c",
"c-ares/src/lib/ares_mkquery.c",
"c-ares/src/lib/ares_nowarn.c",
"c-ares/src/lib/ares_options.c",
"c-ares/src/lib/ares_parse_a_reply.c",
"c-ares/src/lib/ares_parse_aaaa_reply.c",
"c-ares/src/lib/ares_parse_caa_reply.c",
"c-ares/src/lib/ares_parse_mx_reply.c",
"c-ares/src/lib/ares_parse_naptr_reply.c",
"c-ares/src/lib/ares_parse_ns_reply.c",
"c-ares/src/lib/ares_parse_ptr_reply.c",
"c-ares/src/lib/ares_parse_soa_reply.c",
"c-ares/src/lib/ares_parse_srv_reply.c",
"c-ares/src/lib/ares_parse_txt_reply.c",
"c-ares/src/lib/ares_parse_uri_reply.c",
"c-ares/src/lib/ares_platform.c",
"c-ares/src/lib/ares_process.c",
"c-ares/src/lib/ares_query.c",
"c-ares/src/lib/ares_rand.c",
"c-ares/src/lib/ares_search.c",
"c-ares/src/lib/ares_send.c",
"c-ares/src/lib/ares_strcasecmp.c",
"c-ares/src/lib/ares_strdup.c",
"c-ares/src/lib/ares_strerror.c",
"c-ares/src/lib/ares_strsplit.c",
"c-ares/src/lib/ares_timeout.c",
"c-ares/src/lib/ares_version.c",
"c-ares/src/lib/ares_writev.c",
"c-ares/src/lib/bitncmp.c",
"c-ares/src/lib/inet_net_pton.c",
"c-ares/src/lib/inet_ntop.c",
"c-ares/src/lib/windows_port.c"
],
"type" : "library"
},
{
"c99name" : "AsyncDNSResolverTests",
"module_type" : "SwiftTarget",
"name" : "AsyncDNSResolverTests",
"path" : "Tests/AsyncDNSResolverTests",
"sources" : [
"c-ares/AresChannelTests.swift",
"c-ares/AresErrorTests.swift",
"c-ares/AresOptionsTests.swift",
"c-ares/CAresDNSResolverTests.swift",
"dnssd/DNSDArraySliceTests.swift",
"dnssd/DNSSDDNSResolverTests.swift",
"dnssd/DNSSDErrorTests.swift"
],
"target_dependencies" : [
"AsyncDNSResolver"
],
"type" : "test"
},
{
"c99name" : "AsyncDNSResolver",
"module_type" : "SwiftTarget",
"name" : "AsyncDNSResolver",
"path" : "Sources/AsyncDNSResolver",
"product_memberships" : [
"AsyncDNSResolver"
],
"sources" : [
"AsyncDNSResolver.swift",
"Errors.swift",
"c-ares/AresChannel.swift",
"c-ares/AresOptions.swift",
"c-ares/DNSResolver_c-ares.swift",
"c-ares/Errors_c-ares.swift",
"dnssd/DNSResolver_dnssd.swift",
"dnssd/Errors_dnssd.swift"
],
"target_dependencies" : [
"CAsyncDNSResolver"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.