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 MiniGraphviz, reference main (aa15c5), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 08:02:01 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/LuizZak/MiniGraphviz.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/LuizZak/MiniGraphviz
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at aa15c50 Adding Attributes parameter to addConnection(fromLabel:toLabel:)
Cloned https://github.com/LuizZak/MiniGraphviz.git
Revision (git rev-parse @):
aa15c50cf8027dae6dde860a40987c238070d849
SUCCESS checkout https://github.com/LuizZak/MiniGraphviz.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": "minigraphviz",
      "name": "MiniGraphviz",
      "url": "https://github.com/LuizZak/MiniGraphviz.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MiniGraphviz",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/LuizZak/MiniGraphviz.git
[1/41] Fetching minigraphviz
Fetched https://github.com/LuizZak/MiniGraphviz.git from cache (0.64s)
Creating working copy for https://github.com/LuizZak/MiniGraphviz.git
Working copy of https://github.com/LuizZak/MiniGraphviz.git resolved at main (aa15c50)
warning: '.resolve-product-dependencies': dependency 'minigraphviz' 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/LuizZak/MiniGraphviz.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling MiniGraphviz GraphViz+GraphAttributes.swift
[4/6] Compiling MiniGraphviz GraphViz.swift
/Users/admin/builder/spi-builder-workspace/Sources/MiniGraphviz/GraphViz.swift:915:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GraphViz.Options' may have shared mutable state; this is an error in the Swift 6 language mode
 911 |
 912 |     /// Options for graph generation
 913 |     public struct Options {
     |                   `- note: consider making struct 'Options' conform to the 'Sendable' protocol
 914 |         /// Default generation options
 915 |         public static let `default`: Self = Self()
     |                           |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GraphViz.Options' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'default' 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
 916 |
 917 |         /// Whether to simplify groups before emitting the final graph file.
[5/6] Compiling MiniGraphviz GraphViz+Attribute.swift
[6/6] Emitting module MiniGraphviz
/Users/admin/builder/spi-builder-workspace/Sources/MiniGraphviz/GraphViz.swift:915:27: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GraphViz.Options' may have shared mutable state; this is an error in the Swift 6 language mode
 911 |
 912 |     /// Options for graph generation
 913 |     public struct Options {
     |                   `- note: consider making struct 'Options' conform to the 'Sendable' protocol
 914 |         /// Default generation options
 915 |         public static let `default`: Self = Self()
     |                           |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'GraphViz.Options' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'default' 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
 916 |
 917 |         /// Whether to simplify groups before emitting the final graph file.
Build complete! (7.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MiniGraphviz",
  "name" : "MiniGraphviz",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MiniGraphviz",
      "targets" : [
        "MiniGraphviz"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MiniGraphvizTests",
      "module_type" : "SwiftTarget",
      "name" : "MiniGraphvizTests",
      "path" : "Tests/MiniGraphvizTests",
      "sources" : [
        "GraphViz+GraphAttributesTests.swift",
        "GraphVizTests.swift",
        "MiniGraphvizTests.swift",
        "TestSupport/StringDiffTesting+Tests.swift",
        "TestSupport/StringDiffTesting.swift"
      ],
      "target_dependencies" : [
        "MiniGraphviz"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MiniGraphviz",
      "module_type" : "SwiftTarget",
      "name" : "MiniGraphviz",
      "path" : "Sources/MiniGraphviz",
      "product_memberships" : [
        "MiniGraphviz"
      ],
      "sources" : [
        "GraphViz+Attribute.swift",
        "GraphViz+GraphAttributes.swift",
        "GraphViz.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.