This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/bdbergeron/Stubby.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[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-6F35C1178C84523A.txt
[5/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 non-isolated 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 non-isolated 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 | }
[6/8] Compiling Stubby StubbyURLProtocol.swift
[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 non-isolated 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 non-isolated 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! (34.87s)
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/1458] Fetching swift-docc-plugin
[687/4316] 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 (0.99s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.74s)
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
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.