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 GraphViz, reference main (5e597d), with Swift 6.0 for macOS (SPM) on 14 Oct 2024 09:33:25 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wabiverse/GraphViz.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wabiverse/GraphViz
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5e597d2 Rollback GraphViz to v0.2.0, fix for Swift 6.
Cloned https://github.com/wabiverse/GraphViz.git
Revision (git rev-parse @):
5e597d2f580f543cf7185f260c69b6b482a68d0f
SUCCESS checkout https://github.com/wabiverse/GraphViz.git at main
========================================
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": "graphviz",
      "name": "GraphViz",
      "url": "https://github.com/wabiverse/GraphViz.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/GraphViz",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/wabiverse/GraphViz.git
[1/575] Fetching graphviz
Fetched https://github.com/wabiverse/GraphViz.git from cache (0.92s)
Creating working copy for https://github.com/wabiverse/GraphViz.git
Working copy of https://github.com/wabiverse/GraphViz.git resolved at main (5e597d2)
warning: '.resolve-product-dependencies': dependency 'graphviz' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/wabiverse/GraphViz.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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/5] Write sources
[4/5] Write swift-version--4A847ED0836F2485.txt
[6/21] Compiling GraphViz Rectangle.swift
[7/22] Compiling GraphViz Position.swift
[8/22] Compiling GraphViz Size.swift
[9/22] Compiling GraphViz Point.swift
[10/22] Compiling GraphViz Location.swift
[11/22] Compiling GraphViz Ordering.swift
[12/22] Compiling GraphViz AspectRatio.swift
[13/22] Compiling GraphViz Color.swift
[14/22] Compiling GraphViz Node.swift
[15/22] Compiling GraphViz Format.swift
[16/22] Compiling GraphViz KeyValuePairs+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/GraphViz/Extensions/KeyValuePairs+Extensions.swift:1:1: warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 1 | extension KeyValuePairs: Equatable where Key: Equatable, Value: Equatable {
   | |- warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 2 |     public static func == (lhs: KeyValuePairs<Key, Value>, rhs: KeyValuePairs<Key, Value>) -> Bool {
 3 |         guard lhs.count == rhs.count else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/GraphViz/Extensions/KeyValuePairs+Extensions.swift:12:1: warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
10 | }
11 |
12 | extension KeyValuePairs: Hashable where Key: Hashable, Value: Hashable {
   | |- warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
13 |     public func hash(into hasher: inout Hasher) {
14 |         for (key, value) in self {
[17/22] Compiling GraphViz Graph.swift
/Users/admin/builder/spi-builder-workspace/Sources/GraphViz/Extensions/KeyValuePairs+Extensions.swift:1:1: warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 1 | extension KeyValuePairs: Equatable where Key: Equatable, Value: Equatable {
   | |- warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 2 |     public static func == (lhs: KeyValuePairs<Key, Value>, rhs: KeyValuePairs<Key, Value>) -> Bool {
 3 |         guard lhs.count == rhs.count else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/GraphViz/Extensions/KeyValuePairs+Extensions.swift:12:1: warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
10 | }
11 |
12 | extension KeyValuePairs: Hashable where Key: Hashable, Value: Hashable {
   | |- warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
13 |     public func hash(into hasher: inout Hasher) {
14 |         for (key, value) in self {
[18/22] Compiling GraphViz Attribute.swift
[19/22] Compiling GraphViz Edge.swift
[20/22] Emitting module GraphViz
/Users/admin/builder/spi-builder-workspace/Sources/GraphViz/Extensions/KeyValuePairs+Extensions.swift:1:1: warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 1 | extension KeyValuePairs: Equatable where Key: Equatable, Value: Equatable {
   | |- warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 2 |     public static func == (lhs: KeyValuePairs<Key, Value>, rhs: KeyValuePairs<Key, Value>) -> Bool {
 3 |         guard lhs.count == rhs.count else { return false }
/Users/admin/builder/spi-builder-workspace/Sources/GraphViz/Extensions/KeyValuePairs+Extensions.swift:12:1: warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
10 | }
11 |
12 | extension KeyValuePairs: Hashable where Key: Hashable, Value: Hashable {
   | |- warning: extension declares a conformance of imported type 'KeyValuePairs' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
13 |     public func hash(into hasher: inout Hasher) {
14 |         for (key, value) in self {
[21/22] Compiling GraphViz LayoutAlgorithm.swift
[22/22] Compiling GraphViz Subgraph.swift
[23/36] Compiling GraphVizBuilder UndirectedEdgeOperator.swift
[24/37] Emitting module GraphVizBuilder
[25/37] Compiling GraphVizBuilder GraphBuilder.swift
[26/37] Compiling GraphVizBuilder BackwardEdgeOperator.swift
[27/37] Compiling GraphVizBuilder BidirectionalEdgeOperator.swift
[28/37] Compiling GraphVizBuilder ForwardEdgeOperator.swift
[29/37] Compiling GraphVizBuilder Edge+Extensions.swift
[30/37] Compiling GraphVizBuilder Graph+Extensions.swift
[31/37] Compiling GraphVizBuilder Subgraph+Extensions.swift
[32/37] Compiling GraphVizBuilder Node+Extensions.swift
[33/37] Compiling GraphVizBuilder SubgraphBuilder.swift
[34/37] Compiling DOT DOTRepresentable.swift
[35/37] Compiling DOT DOTEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DOT/DOTEncoder.swift:25:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DOTEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
  5 | /// For more information about the DOT language,
  6 | /// see <https://www.graphviz.org/doc/info/lang.html>.
  7 | public struct DOTEncoder {
    |               `- note: consider making struct 'DOTEncoder' conform to the 'Sendable' protocol
  8 |     public enum Delimiter: String {
  9 |         case comma = ","
    :
 23 |     public var omitEmptyNodes: Bool = true
 24 |
 25 |     private static let shared = DOTEncoder()
    |                        |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DOTEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |
 27 |     /// Creates a new DOT encoder.
[36/37] Compiling DOT DOT.swift
[37/37] Emitting module DOT
/Users/admin/builder/spi-builder-workspace/Sources/DOT/DOTEncoder.swift:25:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DOTEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
  5 | /// For more information about the DOT language,
  6 | /// see <https://www.graphviz.org/doc/info/lang.html>.
  7 | public struct DOTEncoder {
    |               `- note: consider making struct 'DOTEncoder' conform to the 'Sendable' protocol
  8 |     public enum Delimiter: String {
  9 |         case comma = ","
    :
 23 |     public var omitEmptyNodes: Bool = true
 24 |
 25 |     private static let shared = DOTEncoder()
    |                        |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DOTEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 |
 27 |     /// Creates a new DOT encoder.
[38/41] Compiling Tools Graph+Rendering.swift
[39/41] Compiling Tools which.swift
[40/41] Emitting module Tools
[41/41] Compiling Tools Renderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Tools/Renderer.swift:83:13: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
 81 |         defer { outputPipe.fileHandleForReading.closeFile() }
 82 |         outputPipe.fileHandleForReading.readabilityHandler = { fileHandle in
 83 |             data.append(fileHandle.availableData)
    |             `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
 84 |         }
 85 |         task.standardOutput = outputPipe
Build complete! (15.25s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GraphViz",
  "name" : "GraphViz",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "GraphViz",
      "targets" : [
        "GraphViz",
        "DOT",
        "Tools"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "GraphVizBuilder",
      "targets" : [
        "GraphVizBuilder"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Tools",
      "module_type" : "SwiftTarget",
      "name" : "Tools",
      "path" : "Sources/Tools",
      "product_memberships" : [
        "GraphViz"
      ],
      "sources" : [
        "Extensions/Graph+Rendering.swift",
        "Renderer.swift",
        "which.swift"
      ],
      "target_dependencies" : [
        "GraphViz",
        "DOT"
      ],
      "type" : "library"
    },
    {
      "c99name" : "GraphVizTests",
      "module_type" : "SwiftTarget",
      "name" : "GraphVizTests",
      "path" : "Tests/GraphVizTests",
      "sources" : [
        "AttributesTest.swift",
        "EdgeTests.swift",
        "GraphTests.swift",
        "NodeTests.swift",
        "RenderingTests.swift",
        "SubgraphTests.swift"
      ],
      "target_dependencies" : [
        "GraphViz",
        "DOT",
        "Tools"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GraphVizBuilderTests",
      "module_type" : "SwiftTarget",
      "name" : "GraphVizBuilderTests",
      "path" : "Tests/GraphVizBuilderTests",
      "sources" : [
        "GraphBuilderTests.swift",
        "SubgraphBuilderTests.swift"
      ],
      "target_dependencies" : [
        "GraphViz",
        "DOT",
        "GraphVizBuilder"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GraphVizBuilder",
      "module_type" : "SwiftTarget",
      "name" : "GraphVizBuilder",
      "path" : "Sources/GraphVizBuilder",
      "product_memberships" : [
        "GraphVizBuilder"
      ],
      "sources" : [
        "Extensions/Edge+Extensions.swift",
        "Extensions/Graph+Extensions.swift",
        "Extensions/Node+Extensions.swift",
        "Extensions/Subgraph+Extensions.swift",
        "GraphBuilder.swift",
        "Operators/BackwardEdgeOperator.swift",
        "Operators/BidirectionalEdgeOperator.swift",
        "Operators/ForwardEdgeOperator.swift",
        "Operators/UndirectedEdgeOperator.swift",
        "SubgraphBuilder.swift"
      ],
      "target_dependencies" : [
        "GraphViz"
      ],
      "type" : "library"
    },
    {
      "c99name" : "GraphViz",
      "module_type" : "SwiftTarget",
      "name" : "GraphViz",
      "path" : "Sources/GraphViz",
      "product_memberships" : [
        "GraphViz",
        "GraphVizBuilder"
      ],
      "sources" : [
        "Attribute.swift",
        "Edge.swift",
        "Extensions/KeyValuePairs+Extensions.swift",
        "Graph.swift",
        "Node.swift",
        "Rendering/Format.swift",
        "Rendering/LayoutAlgorithm.swift",
        "Subgraph.swift",
        "Supporting Types/AspectRatio.swift",
        "Supporting Types/Color.swift",
        "Supporting Types/Location.swift",
        "Supporting Types/Ordering.swift",
        "Supporting Types/Point.swift",
        "Supporting Types/Position.swift",
        "Supporting Types/Rectangle.swift",
        "Supporting Types/Size.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DOT",
      "module_type" : "SwiftTarget",
      "name" : "DOT",
      "path" : "Sources/DOT",
      "product_memberships" : [
        "GraphViz"
      ],
      "sources" : [
        "DOT.swift",
        "DOTEncoder.swift",
        "DOTRepresentable.swift"
      ],
      "target_dependencies" : [
        "GraphViz"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.