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 PacketCaptureBPF, reference main (4b7ae0), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 01:44:21 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/PacketCaptureBPF.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/OperatorFoundation/PacketCaptureBPF
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4b7ae02 swift-tools-version:5.8 macOS 13
Cloned https://github.com/OperatorFoundation/PacketCaptureBPF.git
Revision (git rev-parse @):
4b7ae02db84a5d9412fba27292b3a577eb6304d0
SUCCESS checkout https://github.com/OperatorFoundation/PacketCaptureBPF.git at main
Fetching https://github.com/OperatorFoundation/PacketStream.git
[1/45] Fetching packetstream
Fetched https://github.com/OperatorFoundation/PacketStream.git from cache (0.65s)
Fetching https://github.com/OperatorFoundation/Datable.git
[1/399] Fetching datable
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.77s)
Fetching https://github.com/OperatorFoundation/InternetProtocols.git
[1/467] Fetching internetprotocols
Fetched https://github.com/OperatorFoundation/InternetProtocols.git from cache (1.11s)
Fetching https://github.com/OperatorFoundation/Bits.git
[1/122] Fetching bits
Fetched https://github.com/OperatorFoundation/Bits.git from cache (0.72s)
Fetching https://github.com/OperatorFoundation/SwiftQueue.git
[1/70] Fetching swiftqueue
Fetched https://github.com/OperatorFoundation/SwiftQueue.git from cache (0.66s)
Fetching https://github.com/OperatorFoundation/Net.git
[1/105] Fetching net
Fetched https://github.com/OperatorFoundation/Net.git from cache (0.70s)
Fetching https://github.com/OperatorFoundation/SwiftHexTools.git
[1/96] Fetching swifthextools
Fetched https://github.com/OperatorFoundation/SwiftHexTools.git from cache (0.76s)
Creating working copy for https://github.com/OperatorFoundation/InternetProtocols.git
Working copy of https://github.com/OperatorFoundation/InternetProtocols.git resolved at main (c7d0f9f)
Creating working copy for https://github.com/OperatorFoundation/SwiftHexTools.git
Working copy of https://github.com/OperatorFoundation/SwiftHexTools.git resolved at main (3d4b5a9)
Creating working copy for https://github.com/OperatorFoundation/Net.git
Working copy of https://github.com/OperatorFoundation/Net.git resolved at main (20e37b7)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at main (b896773)
Creating working copy for https://github.com/OperatorFoundation/Bits.git
Working copy of https://github.com/OperatorFoundation/Bits.git resolved at main (cc7079e)
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue.git
Working copy of https://github.com/OperatorFoundation/SwiftQueue.git resolved at main (5d59db6)
Creating working copy for https://github.com/OperatorFoundation/PacketStream.git
Working copy of https://github.com/OperatorFoundation/PacketStream.git resolved at main (7916aee)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "packetcapturebpf",
      "name": "PacketCaptureBPF",
      "url": "https://github.com/OperatorFoundation/PacketCaptureBPF.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PacketCaptureBPF",
      "dependencies": [
        {
          "identity": "packetstream",
          "name": "PacketStream",
          "url": "https://github.com/OperatorFoundation/PacketStream.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PacketStream",
          "dependencies": [
          ]
        },
        {
          "identity": "datable",
          "name": "Datable",
          "url": "https://github.com/OperatorFoundation/Datable.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Datable",
          "dependencies": [
          ]
        },
        {
          "identity": "bits",
          "name": "Bits",
          "url": "https://github.com/OperatorFoundation/Bits.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Bits",
          "dependencies": [
            {
              "identity": "datable",
              "name": "Datable",
              "url": "https://github.com/OperatorFoundation/Datable.git",
              "version": "unspecified",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Datable",
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "swiftqueue",
          "name": "SwiftQueue",
          "url": "https://github.com/OperatorFoundation/SwiftQueue.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftQueue",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/OperatorFoundation/PacketCaptureBPF.git
[1/145] Fetching packetcapturebpf
Fetched https://github.com/OperatorFoundation/PacketCaptureBPF.git from cache (0.78s)
Fetching https://github.com/OperatorFoundation/PacketStream.git from cache
Fetched https://github.com/OperatorFoundation/PacketStream.git from cache (0.52s)
Fetching https://github.com/OperatorFoundation/Datable.git from cache
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.51s)
Fetching https://github.com/OperatorFoundation/Bits.git from cache
Fetched https://github.com/OperatorFoundation/Bits.git from cache (0.53s)
Fetching https://github.com/OperatorFoundation/SwiftQueue.git from cache
Fetched https://github.com/OperatorFoundation/SwiftQueue.git from cache (0.49s)
Creating working copy for https://github.com/OperatorFoundation/PacketCaptureBPF.git
Working copy of https://github.com/OperatorFoundation/PacketCaptureBPF.git resolved at main (4b7ae02)
Creating working copy for https://github.com/OperatorFoundation/Bits.git
Working copy of https://github.com/OperatorFoundation/Bits.git resolved at main (cc7079e)
Creating working copy for https://github.com/OperatorFoundation/PacketStream.git
Working copy of https://github.com/OperatorFoundation/PacketStream.git resolved at main (7916aee)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at main (1186348)
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue.git
Working copy of https://github.com/OperatorFoundation/SwiftQueue.git resolved at main (3d099bc)
warning: '.resolve-product-dependencies': dependency 'packetcapturebpf' is not used by any target
Found 4 product dependencies
  - PacketStream
  - Datable
  - Bits
  - SwiftQueue
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/OperatorFoundation/PacketCaptureBPF.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version--7754E27361AE5C74.txt
[7/42] Emitting module Datable
[8/45] Compiling Datable UInt+Datable.swift
[9/45] Compiling Datable UInt+MaybeNetworkDatable.swift
[10/45] Compiling Datable UInt+Stringable.swift
[11/45] Compiling SwiftQueue Queue.swift
[12/45] Compiling Datable NetworkIntable.swift
[13/45] Compiling Datable String+Arrayable.swift
[14/45] Compiling Datable String+Datable.swift
[15/45] Emitting module SwiftQueue
[16/45] Compiling SwiftQueue LinkedList.swift
[17/45] Compiling PacketStream PacketStream.swift
[18/45] Emitting module PacketStream
[19/45] Compiling Datable String+Intable.swift
[20/45] Compiling Datable Stringable.swift
[21/45] Compiling Datable StringableArray+CSVable.swift
[22/45] Compiling Datable Data+MaybeNetworkIntable.swift
[23/45] Compiling Datable Data+Stringable.swift
[24/45] Compiling Datable Datable.swift
[25/45] Compiling Datable DatableConfig.swift
[26/45] Compiling Datable Int+Stringable.swift
[27/45] Compiling Datable Intable.swift
[28/45] Compiling Datable MaybeDatable.swift
[29/45] Compiling Datable Double+MaybeDatable.swift
[30/45] Compiling Datable Double+Stringable.swift
[31/45] Compiling Datable File.swift
[32/45] Compiling Datable Arrayable.swift
[33/45] Compiling Datable CSVable.swift
[34/45] Compiling Datable Data+Arrayable.swift
[35/45] Compiling Datable Data+Base64.swift
[36/45] Compiling Datable MaybeIntable.swift
[37/45] Compiling Datable MaybeNetworkIntable.swift
[38/45] Compiling Datable NetworkDatable.swift
[39/45] Compiling Datable Data+Datable.swift
[40/45] Compiling Datable Data+ExpressibleByStringLiteral.swift
[41/45] Compiling Datable Data+Floatable.swift
[42/45] Compiling Datable Data+MaybeIntable.swift
[43/45] Compiling Datable Float+MaybeDatable.swift
[44/45] Compiling Datable Floatable.swift
[45/45] Compiling Datable Int+MaybeDatable.swift
[46/49] Compiling Bits SimpleBits+MaybeIntable.swift
[47/49] Compiling Bits Bits+MaybeIntable.swift
[48/49] Compiling Bits Bits.swift
[49/49] Emitting module Bits
[50/51] Compiling PacketCaptureBPF CaptureDevice.swift
/Users/admin/builder/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:193:31: warning: reference to class property 'endianess' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
191 |             {
192 |                 //get the seconds
193 |                 DatableConfig.endianess = .little
    |                               `- warning: reference to class property 'endianess' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
194 |                 guard let tv_sec_bits = bits.unpack(bytes: 4) else
195 |                 {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Datable/Sources/Datable/DatableConfig.swift:14:23: note: class property declared here
12 |     public static var stringEncoding: String.Encoding = .utf8
13 |     public static var stringLiteralEncoding: StringLiteralEncoding = .utf8
14 |     public static var endianess: Endianness = .big
   |                       `- note: class property declared here
15 |     public static let localEndianness: Endianness = determineLocalEndianness()
16 | }
[51/51] Emitting module PacketCaptureBPF
/Users/admin/builder/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:193:31: warning: reference to class property 'endianess' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
191 |             {
192 |                 //get the seconds
193 |                 DatableConfig.endianess = .little
    |                               `- warning: reference to class property 'endianess' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
194 |                 guard let tv_sec_bits = bits.unpack(bytes: 4) else
195 |                 {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Datable/Sources/Datable/DatableConfig.swift:14:23: note: class property declared here
12 |     public static var stringEncoding: String.Encoding = .utf8
13 |     public static var stringLiteralEncoding: StringLiteralEncoding = .utf8
14 |     public static var endianess: Endianness = .big
   |                       `- note: class property declared here
15 |     public static let localEndianness: Endianness = determineLocalEndianness()
16 | }
Build complete! (27.97s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "packetstream",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OperatorFoundation/PacketStream.git"
    },
    {
      "identity" : "datable",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OperatorFoundation/Datable.git"
    },
    {
      "identity" : "internetprotocols",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OperatorFoundation/InternetProtocols.git"
    },
    {
      "identity" : "bits",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OperatorFoundation/Bits.git"
    },
    {
      "identity" : "swiftqueue",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OperatorFoundation/SwiftQueue.git"
    }
  ],
  "manifest_display_name" : "PacketCaptureBPF",
  "name" : "PacketCaptureBPF",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "PacketCaptureBPF",
      "targets" : [
        "PacketCaptureBPF"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "PacketCaptureBPFTests",
      "module_type" : "SwiftTarget",
      "name" : "PacketCaptureBPFTests",
      "path" : "Tests/PacketCaptureBPFTests",
      "product_dependencies" : [
        "InternetProtocols"
      ],
      "sources" : [
        "PacketCaptureBPFTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "PacketCaptureBPF"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PacketCaptureBPF",
      "module_type" : "SwiftTarget",
      "name" : "PacketCaptureBPF",
      "path" : "Sources/PacketCaptureBPF",
      "product_dependencies" : [
        "PacketStream",
        "Datable",
        "Bits",
        "SwiftQueue"
      ],
      "product_memberships" : [
        "PacketCaptureBPF"
      ],
      "sources" : [
        "CaptureDevice.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.