The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of IPAddress, reference master (5d04aa), with Swift 6.0 for Linux on 4 Nov 2024 04:56:55 UTC.

Swift 6 data race errors: 5

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vkill/SwiftIPAddress.git
Reference: master
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/vkill/SwiftIPAddress
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5d04aaa Merge pull request #4 from Fleuronic/swift5.1
Cloned https://github.com/vkill/SwiftIPAddress.git
Revision (git rev-parse @):
5d04aaa9b158d49c629be437a41598345cde9782
SUCCESS checkout https://github.com/vkill/SwiftIPAddress.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vkill/SwiftIPAddress.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/10] Emitting module IPAddress
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:287:24: warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
285 |     public static var any: IPv4Address {
286 |         struct Static {
287 |             static let anyAddress = IPv4Address.init()
    |                        |- warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'anyAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 |         }
289 |         return Static.anyAddress
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:295:24: warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
293 |     public static var loopback: IPv4Address {
294 |         struct Static {
295 |             static let loopbackAddress =
    |                        |- warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'loopbackAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |                 IPv4Address.init(fromUInt32: 0x0100007F)
297 |         }
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:305:24: warning: static property 'broadcastAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
303 |     public static var broadcast: IPv4Address {
304 |         struct Static {
305 |             static let broadcastAddress =
    |                        |- warning: static property 'broadcastAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'broadcastAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 |                 IPv4Address.init(fromUInt32: 0xFFFFFFFF)
307 |         }
/host/spi-builder-workspace/Sources/IPAddress/IPv6Address.swift:465:24: warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
 49 | /// - Author: Andrew Dunn.
 50 | ///
 51 | public struct IPv6Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv6Address' conform to the 'Sendable' protocol
 52 |     fileprivate let high, low: UInt64
 53 |
    :
463 |     public static var any: IPv6Address {
464 |         struct Static {
465 |             static let anyAddress = IPv6Address.init()
    |                        |- warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'anyAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
466 |         }
467 |         return Static.anyAddress
/host/spi-builder-workspace/Sources/IPAddress/IPv6Address.swift:473:24: warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
 49 | /// - Author: Andrew Dunn.
 50 | ///
 51 | public struct IPv6Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv6Address' conform to the 'Sendable' protocol
 52 |     fileprivate let high, low: UInt64
 53 |
    :
471 |     public static var loopback: IPv6Address {
472 |         struct Static {
473 |             static let loopbackAddress = IPv6Address.init(parts: 0, 0, 0, 0, 0, 0, 0, 1)
    |                        |- warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'loopbackAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
474 |         }
475 |         return Static.loopbackAddress
[5/10] Compiling IPAddress IPv4Address.swift
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:287:24: warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
285 |     public static var any: IPv4Address {
286 |         struct Static {
287 |             static let anyAddress = IPv4Address.init()
    |                        |- warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'anyAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 |         }
289 |         return Static.anyAddress
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:295:24: warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
293 |     public static var loopback: IPv4Address {
294 |         struct Static {
295 |             static let loopbackAddress =
    |                        |- warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'loopbackAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |                 IPv4Address.init(fromUInt32: 0x0100007F)
297 |         }
/host/spi-builder-workspace/Sources/IPAddress/IPv4Address.swift:305:24: warning: static property 'broadcastAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
 80 | /// - Author: Andrew Dunn.
 81 | ///
 82 | public struct IPv4Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv4Address' conform to the 'Sendable' protocol
 83 |     // Store the value in an array to enable simple typecasting to an array of
 84 |     // [UInt8] values.
    :
303 |     public static var broadcast: IPv4Address {
304 |         struct Static {
305 |             static let broadcastAddress =
    |                        |- warning: static property 'broadcastAddress' is not concurrency-safe because non-'Sendable' type 'IPv4Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'broadcastAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
306 |                 IPv4Address.init(fromUInt32: 0xFFFFFFFF)
307 |         }
[6/10] Compiling IPAddress IPv6Address.swift
/host/spi-builder-workspace/Sources/IPAddress/IPv6Address.swift:465:24: warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
 49 | /// - Author: Andrew Dunn.
 50 | ///
 51 | public struct IPv6Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv6Address' conform to the 'Sendable' protocol
 52 |     fileprivate let high, low: UInt64
 53 |
    :
463 |     public static var any: IPv6Address {
464 |         struct Static {
465 |             static let anyAddress = IPv6Address.init()
    |                        |- warning: static property 'anyAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'anyAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
466 |         }
467 |         return Static.anyAddress
/host/spi-builder-workspace/Sources/IPAddress/IPv6Address.swift:473:24: warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
 49 | /// - Author: Andrew Dunn.
 50 | ///
 51 | public struct IPv6Address: LosslessStringConvertible, Equatable {
    |               `- note: consider making struct 'IPv6Address' conform to the 'Sendable' protocol
 52 |     fileprivate let high, low: UInt64
 53 |
    :
471 |     public static var loopback: IPv6Address {
472 |         struct Static {
473 |             static let loopbackAddress = IPv6Address.init(parts: 0, 0, 0, 0, 0, 0, 0, 1)
    |                        |- warning: static property 'loopbackAddress' is not concurrency-safe because non-'Sendable' type 'IPv6Address' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'loopbackAddress' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
474 |         }
475 |         return Static.loopbackAddress
[7/11] Wrapping AST for IPAddress for debugging
[9/15] Emitting module IPAddressBenchmarks
[10/15] Compiling IPAddressBenchmarks HighResolutionTimer.swift
[11/15] Compiling IPAddressBenchmarks Utils.swift
[12/15] Compiling IPAddressBenchmarks main.swift
[13/16] Wrapping AST for IPAddressBenchmarks for debugging
[14/16] Write Objects.LinkFileList
[15/16] Linking IPAddressBenchmarks
Build complete! (17.68s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IPAddress",
  "name" : "IPAddress",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "IPAddress",
      "targets" : [
        "IPAddress"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "IPAddressBenchmarks",
      "targets" : [
        "IPAddressBenchmarks"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "IPAddressBenchmarks",
      "module_type" : "SwiftTarget",
      "name" : "IPAddressBenchmarks",
      "path" : "Sources/IPAddressBenchmarks",
      "product_memberships" : [
        "IPAddressBenchmarks"
      ],
      "sources" : [
        "HighResolutionTimer.swift",
        "Utils.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "IPAddress"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "IPAddress",
      "module_type" : "SwiftTarget",
      "name" : "IPAddress",
      "path" : "Sources/IPAddress",
      "product_memberships" : [
        "IPAddress",
        "IPAddressBenchmarks"
      ],
      "sources" : [
        "IPv4Address.swift",
        "IPv6Address.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.