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 Stubby, reference main (ff7d28), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 02:01:19 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bdbergeron/Stubby.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/bdbergeron/Stubby
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ff7d288 Add more APIs (#4)
Cloned https://github.com/bdbergeron/Stubby.git
Revision (git rev-parse @):
ff7d288c6139a3708bf1b42e9edebb7c20bdff49
SUCCESS checkout https://github.com/bdbergeron/Stubby.git at main
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2038] Fetching swift-docc-plugin
[226/5225] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-plugin from cache (1.31s)
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.31s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (3.02s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.62s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/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.3.0
========================================
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": "stubby",
      "name": "Stubby",
      "url": "https://github.com/bdbergeron/Stubby.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Stubby",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/bdbergeron/Stubby.git
[6/255] Fetching stubby
Fetched https://github.com/bdbergeron/Stubby.git from cache (0.92s)
Creating working copy for https://github.com/bdbergeron/Stubby.git
Working copy of https://github.com/bdbergeron/Stubby.git resolved at main (ff7d288)
warning: '.resolve-product-dependencies': dependency 'stubby' 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/bdbergeron/Stubby.git
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Stubby",
  "name" : "Stubby",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Stubby",
      "targets" : [
        "Stubby"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StubbyTests",
      "module_type" : "SwiftTarget",
      "name" : "StubbyTests",
      "path" : "Tests/StubbyTests",
      "sources" : [
        "StubbyTests.swift",
        "TestResponseProvider.swift"
      ],
      "target_dependencies" : [
        "Stubby"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Stubby",
      "module_type" : "SwiftTarget",
      "name" : "Stubby",
      "path" : "Sources/Stubby",
      "product_memberships" : [
        "Stubby"
      ],
      "sources" : [
        "StubbyResponse.swift",
        "StubbyURLProtocol.swift",
        "URLSession+Stubbed.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/8] Compiling Stubby StubbyURLProtocol.swift
[6/8] Compiling Stubby URLSession+Stubbed.swift
/Users/admin/builder/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:128:22: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 |   // MARK: Private
127 |
128 |   private static var stubs = [URL: Stub]()
    |                      |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'stubs' 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
129 |
130 | }
[7/8] Emitting module Stubby
/Users/admin/builder/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:128:22: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
126 |   // MARK: Private
127 |
128 |   private static var stubs = [URL: Stub]()
    |                      |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'stubs' 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
129 |
130 | }
[8/8] Compiling Stubby StubbyResponse.swift
Build complete! (18.26s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Stubby",
  "name" : "Stubby",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Stubby",
      "targets" : [
        "Stubby"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StubbyTests",
      "module_type" : "SwiftTarget",
      "name" : "StubbyTests",
      "path" : "Tests/StubbyTests",
      "sources" : [
        "StubbyTests.swift",
        "TestResponseProvider.swift"
      ],
      "target_dependencies" : [
        "Stubby"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Stubby",
      "module_type" : "SwiftTarget",
      "name" : "Stubby",
      "path" : "Sources/Stubby",
      "product_memberships" : [
        "Stubby"
      ],
      "sources" : [
        "StubbyResponse.swift",
        "StubbyURLProtocol.swift",
        "URLSession+Stubbed.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.