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 CanProceed, reference 1.0.1 (5d4760), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 10:36:10 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ptsochantaris/can-proceed.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ptsochantaris/can-proceed
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 5d47608 Bumped up iOS support to correct level
Cloned https://github.com/ptsochantaris/can-proceed.git
Revision (git rev-parse @):
5d476082d14e4761b5d76c19b060224c1cb60b25
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ptsochantaris/can-proceed.git at 1.0.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ptsochantaris/can-proceed.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-117DEE11B69C53C9.txt
[4/5] Emitting module Lista
[5/5] Compiling Lista Lista.swift
[6/11] Compiling CanProceed GroupMemberRecord.swift
/Users/admin/builder/spi-builder-workspace/Sources/CanProceed/GroupMemberRecord.swift:12:28: warning: static property 'regexSpecialChars' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
10 |         let regex: Regex<Substring>
11 |
12 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
   |                            |- warning: static property 'regexSpecialChars' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: annotate 'regexSpecialChars' 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
13 |         private static let wildCardPattern = #/\*/#
14 |         private static let EOLPattern = #/\\\$$/#
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CanProceed/GroupMemberRecord.swift:13:28: warning: static property 'wildCardPattern' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
13 |         private static let wildCardPattern = #/\*/#
   |                            |- warning: static property 'wildCardPattern' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: annotate 'wildCardPattern' 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
14 |         private static let EOLPattern = #/\\\$$/#
15 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CanProceed/GroupMemberRecord.swift:14:28: warning: static property 'EOLPattern' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
13 |         private static let wildCardPattern = #/\*/#
14 |         private static let EOLPattern = #/\\\$$/#
   |                            |- warning: static property 'EOLPattern' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: annotate 'EOLPattern' 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
15 |
16 |         /// Initialise a representation of an access control record from a line of text in the robots file.
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[7/11] Compiling CanProceed Collection+Extension.swift
[8/11] Compiling CanProceed CanProceed.swift
[9/11] Compiling CanProceed Agent.swift
[10/11] Emitting module CanProceed
/Users/admin/builder/spi-builder-workspace/Sources/CanProceed/GroupMemberRecord.swift:12:28: warning: static property 'regexSpecialChars' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
10 |         let regex: Regex<Substring>
11 |
12 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
   |                            |- warning: static property 'regexSpecialChars' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: annotate 'regexSpecialChars' 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
13 |         private static let wildCardPattern = #/\*/#
14 |         private static let EOLPattern = #/\\\$$/#
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CanProceed/GroupMemberRecord.swift:13:28: warning: static property 'wildCardPattern' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
13 |         private static let wildCardPattern = #/\*/#
   |                            |- warning: static property 'wildCardPattern' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: annotate 'wildCardPattern' 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
14 |         private static let EOLPattern = #/\\\$$/#
15 |
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/CanProceed/GroupMemberRecord.swift:14:28: warning: static property 'EOLPattern' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
13 |         private static let wildCardPattern = #/\*/#
14 |         private static let EOLPattern = #/\\\$$/#
   |                            |- warning: static property 'EOLPattern' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: annotate 'EOLPattern' 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
15 |
16 |         /// Initialise a representation of an access control record from a line of text in the robots file.
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
  |               `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 |     public var regex: Regex<Output> { get }
4 |     @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[11/11] Compiling CanProceed Decision.swift
Build complete! (11.26s)
Fetching https://github.com/ptsochantaris/lista
[1/127] Fetching lista
Fetched https://github.com/ptsochantaris/lista from cache (0.66s)
Creating working copy for https://github.com/ptsochantaris/lista
Working copy of https://github.com/ptsochantaris/lista resolved at main (7d6cf8b)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "lista",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ptsochantaris/lista"
    }
  ],
  "manifest_display_name" : "CanProceed",
  "name" : "CanProceed",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "CanProceed",
      "targets" : [
        "CanProceed"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CanProceedTests",
      "module_type" : "SwiftTarget",
      "name" : "CanProceedTests",
      "path" : "Tests/CanProceedTests",
      "sources" : [
        "CanProceedTests.swift"
      ],
      "target_dependencies" : [
        "CanProceed"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CanProceed",
      "module_type" : "SwiftTarget",
      "name" : "CanProceed",
      "path" : "Sources/CanProceed",
      "product_dependencies" : [
        "Lista"
      ],
      "product_memberships" : [
        "CanProceed"
      ],
      "sources" : [
        "Agent.swift",
        "CanProceed.swift",
        "Collection+Extension.swift",
        "Decision.swift",
        "GroupMemberRecord.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.