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 main (f88d24), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 10:36:25 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ptsochantaris/can-proceed
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f88d24f Extra tests for end-of-url signifier
Cloned https://github.com/ptsochantaris/can-proceed.git
Revision (git rev-parse @):
f88d24f2404343c46ebb9bb9cda1d420c558436a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ptsochantaris/can-proceed.git at main
========================================
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] Compiling Lista Lista.swift
[5/5] Emitting module Lista
[6/11] Compiling CanProceed GroupMemberRecord.swift
/Users/admin/builder/spi-builder-workspace/Sources/CanProceed/GroupMemberRecord.swift:15: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
13 |         public let originalRecordString: String
14 |
15 |         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
16 |         private static let wildCardPattern = #/\*/#
17 |         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:16: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
14 |
15 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
16 |         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
17 |         private static let EOLPattern = #/\\\$$/#
18 |
_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:17: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
15 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
16 |         private static let wildCardPattern = #/\*/#
17 |         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
18 |
19 |         /// 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 Decision.swift
[8/11] Compiling CanProceed Collection+Extension.swift
[9/11] Compiling CanProceed CanProceed.swift
[10/11] Compiling CanProceed Agent.swift
[11/11] Emitting module CanProceed
/Users/admin/builder/spi-builder-workspace/Sources/CanProceed/GroupMemberRecord.swift:15: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
13 |         public let originalRecordString: String
14 |
15 |         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
16 |         private static let wildCardPattern = #/\*/#
17 |         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:16: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
14 |
15 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
16 |         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
17 |         private static let EOLPattern = #/\\\$$/#
18 |
_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:17: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
15 |         private static let regexSpecialChars = #/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/#
16 |         private static let wildCardPattern = #/\*/#
17 |         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
18 |
19 |         /// 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, *)
Build complete! (11.58s)
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.