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 DSFRegex, reference 3.4.0 (e0e648), with Swift 6.0 for Linux on 30 Nov 2024 21:11:59 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/DSFRegex.git
Reference: 3.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/dagronf/DSFRegex
 * tag               3.4.0      -> FETCH_HEAD
HEAD is now at e0e6480 Added privacy manifest
Cloned https://github.com/dagronf/DSFRegex.git
Revision (git rev-parse @):
e0e64805519b23b08dcca9c83ca2d4a2b3de4c33
SUCCESS checkout https://github.com/dagronf/DSFRegex.git at 3.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dagronf/DSFRegex.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/8] Write sources
[0/8] Copying PrivacyInfo.xcprivacy
[2/8] Write swift-version-24593BA9C3E375BF.txt
[4/12] Compiling DSFRegex resource_bundle_accessor.swift
[5/12] Compiling DSFRegex DSFRegex.swift
/host/spi-builder-workspace/Sources/DSFRegex/DSFRegex.swift:392:13: warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
390 | private extension DSFRegex.Capture {
391 | 	/// An empty capture object.
392 | 	static var empty = "".startIndex ..< "".endIndex
    |             |- warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'empty' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'empty' 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
393 | }
394 |
[6/12] Compiling DSFRegex String+CursorExtensions.swift
[7/12] Emitting module DSFRegex
/host/spi-builder-workspace/Sources/DSFRegex/DSFRegex.swift:392:13: warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
390 | private extension DSFRegex.Capture {
391 | 	/// An empty capture object.
392 | 	static var empty = "".startIndex ..< "".endIndex
    |             |- warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'empty' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'empty' 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
393 | }
394 |
[8/13] Wrapping AST for DSFRegex for debugging
[9/13] Write Objects.LinkFileList
[11/13] Archiving libDSFRegex-static.a
[12/13] Linking libDSFRegex-dynamic.so
Build complete! (8.42s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DSFRegex",
  "name" : "DSFRegex",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DSFRegex",
      "targets" : [
        "DSFRegex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DSFRegex-static",
      "targets" : [
        "DSFRegex"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "DSFRegex-dynamic",
      "targets" : [
        "DSFRegex"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSFRegexTests",
      "module_type" : "SwiftTarget",
      "name" : "DSFRegexTests",
      "path" : "Tests/DSFRegexTests",
      "sources" : [
        "DSFRegexTests.swift",
        "String+extensions.swift",
        "Tests+extensions.swift"
      ],
      "target_dependencies" : [
        "DSFRegex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DSFRegex",
      "module_type" : "SwiftTarget",
      "name" : "DSFRegex",
      "path" : "Sources/DSFRegex",
      "product_memberships" : [
        "DSFRegex",
        "DSFRegex-static",
        "DSFRegex-dynamic"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/DSFRegex/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "DSFRegex.swift",
        "String+CursorExtensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.