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 FootlessParser, reference master (11c7a3), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 05:07:29 UTC.

Swift 6 data race errors: 6

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kareman/FootlessParser.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kareman/FootlessParser
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 11c7a36 Readme: fix code samples so they actually compile.
Cloned https://github.com/kareman/FootlessParser.git
Revision (git rev-parse @):
11c7a366720a2cc62d13ee69c8bdb8372bb3bb2b
SUCCESS checkout https://github.com/kareman/FootlessParser.git at master
========================================
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": "footlessparser",
      "name": "FootlessParser",
      "url": "https://github.com/kareman/FootlessParser.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FootlessParser",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/kareman/FootlessParser.git
[1/1836] Fetching footlessparser
Fetched https://github.com/kareman/FootlessParser.git from cache (1.21s)
Creating working copy for https://github.com/kareman/FootlessParser.git
Working copy of https://github.com/kareman/FootlessParser.git resolved at master (11c7a36)
warning: '.resolve-product-dependencies': dependency 'footlessparser' 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/kareman/FootlessParser.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/9] Compiling FootlessParser Parser+Operators.swift
[4/9] Compiling FootlessParser Parsers.swift
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:17:12: warning: let 'whitespace' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
15 |  Category Zs and CHARACTER TABULATION (U+0009).
16 |  */
17 | public let whitespace = char(CharacterSet.whitespaces, name: "whitespace")
   |            |- warning: let 'whitespace' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'whitespace' 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 | /**
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:25:12: warning: let 'newline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
23 |  U+0085, U+2028, and U+2029).
24 |  */
25 | public let newline = char(CharacterSet.newlines, name: "newline")
   |            |- warning: let 'newline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'newline' 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
26 |
27 | /**
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:33:12: warning: let 'whitespacesOrNewline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
31 |  Z*, U+000A ~ U+000D, and U+0085.
32 |  */
33 | public let whitespacesOrNewline = char(CharacterSet.whitespacesAndNewlines, name: "whitespacesOrNewline")
   |            |- warning: let 'whitespacesOrNewline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'whitespacesOrNewline' 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
34 |
35 | /**
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:41:12: warning: let 'digit' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
39 |  Numbers.
40 |  */
41 | public let digit = char(CharacterSet.decimalDigits, name: "digit")
   |            |- warning: let 'digit' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'digit' 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
42 |
43 | /**
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:49:12: warning: let 'alphanumeric' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
47 |  Categories L*, M*, and N*.
48 | */
49 | public let alphanumeric = char(CharacterSet.alphanumerics, name: "alphanumeric")
   |            |- warning: let 'alphanumeric' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'alphanumeric' 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
50 |
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
[5/9] Compiling FootlessParser Parser.swift
[6/9] Compiling FootlessParser StringParser.swift
[7/9] Compiling FootlessParser Converters.swift
[8/9] Compiling FootlessParser Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Error.swift:9:10: warning: associated value 'Mismatch' of 'Sendable'-conforming generic enum 'ParseError' has non-sendable type '(AnyCollection<T>, String, String)'; this is an error in the Swift 6 language mode
 7 |
 8 | public enum ParseError<T>: Error {
 9 |     case Mismatch(AnyCollection<T>, String, String)
   |          `- warning: associated value 'Mismatch' of 'Sendable'-conforming generic enum 'ParseError' has non-sendable type '(AnyCollection<T>, String, String)'; this is an error in the Swift 6 language mode
10 | }
11 |
[9/9] Emitting module FootlessParser
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Error.swift:9:10: warning: associated value 'Mismatch' of 'Sendable'-conforming generic enum 'ParseError' has non-sendable type '(AnyCollection<T>, String, String)'; this is an error in the Swift 6 language mode
 7 |
 8 | public enum ParseError<T>: Error {
 9 |     case Mismatch(AnyCollection<T>, String, String)
   |          `- warning: associated value 'Mismatch' of 'Sendable'-conforming generic enum 'ParseError' has non-sendable type '(AnyCollection<T>, String, String)'; this is an error in the Swift 6 language mode
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:17:12: warning: let 'whitespace' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
15 |  Category Zs and CHARACTER TABULATION (U+0009).
16 |  */
17 | public let whitespace = char(CharacterSet.whitespaces, name: "whitespace")
   |            |- warning: let 'whitespace' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'whitespace' 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 | /**
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:25:12: warning: let 'newline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
23 |  U+0085, U+2028, and U+2029).
24 |  */
25 | public let newline = char(CharacterSet.newlines, name: "newline")
   |            |- warning: let 'newline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'newline' 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
26 |
27 | /**
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:33:12: warning: let 'whitespacesOrNewline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
31 |  Z*, U+000A ~ U+000D, and U+0085.
32 |  */
33 | public let whitespacesOrNewline = char(CharacterSet.whitespacesAndNewlines, name: "whitespacesOrNewline")
   |            |- warning: let 'whitespacesOrNewline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'whitespacesOrNewline' 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
34 |
35 | /**
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:41:12: warning: let 'digit' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
39 |  Numbers.
40 |  */
41 | public let digit = char(CharacterSet.decimalDigits, name: "digit")
   |            |- warning: let 'digit' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'digit' 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
42 |
43 | /**
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:49:12: warning: let 'alphanumeric' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
47 |  Categories L*, M*, and N*.
48 | */
49 | public let alphanumeric = char(CharacterSet.alphanumerics, name: "alphanumeric")
   |            |- warning: let 'alphanumeric' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'alphanumeric' 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
50 |
/Users/admin/builder/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
Build complete! (7.29s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FootlessParser",
  "name" : "FootlessParser",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FootlessParser",
      "targets" : [
        "FootlessParser"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FootlessParserTests",
      "module_type" : "SwiftTarget",
      "name" : "FootlessParserTests",
      "path" : "Tests/FootlessParserTests",
      "sources" : [
        "Grammar/CSV.swift",
        "Grammar/Examples.swift",
        "Parser+Operators_Tests.swift",
        "Parser_Tests.swift",
        "PerformanceTests.swift",
        "StringParser_Tests.swift",
        "TestHelpers.swift"
      ],
      "target_dependencies" : [
        "FootlessParser"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FootlessParser",
      "module_type" : "SwiftTarget",
      "name" : "FootlessParser",
      "path" : "Sources/FootlessParser",
      "product_memberships" : [
        "FootlessParser"
      ],
      "sources" : [
        "Converters.swift",
        "Error.swift",
        "Parser+Operators.swift",
        "Parser.swift",
        "Parsers.swift",
        "StringParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.1"
}
Done.