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 SwiftTreeSitter, reference 0.9.0 (36aa61), with Swift 5.9 for Linux on 26 Jan 2025 09:00:48 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tree-sitter/swift-tree-sitter.git
Reference: 0.9.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/tree-sitter/swift-tree-sitter
 * tag               0.9.0      -> FETCH_HEAD
HEAD is now at 36aa61d Recursive modules for linux
Submodule path 'tree-sitter-swift': checked out 'eda05af7ac41adb4eb19c346883c0fa32fe3bdd8'
Submodule 'tree-sitter-swift' (https://github.com/alex-pinkus/tree-sitter-swift) registered for path 'tree-sitter-swift'
Cloning into '/host/spi-builder-workspace/tree-sitter-swift'...
Cloned https://github.com/tree-sitter/swift-tree-sitter.git
Revision (git rev-parse @):
36aa61d1b531f744f35229f010efba9c6d6cbbdd
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/tree-sitter/swift-tree-sitter.git at 0.9.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $PWD
https://github.com/tree-sitter/swift-tree-sitter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:e6feefcc5d5d2f301fe47477cfe0928fc3b12c59579fdacf1d387095b6fee662
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Fetching https://github.com/tree-sitter/tree-sitter
[1/55068] Fetching tree-sitter
Fetched https://github.com/tree-sitter/tree-sitter (2.61s)
Computing version for https://github.com/tree-sitter/tree-sitter
Computed https://github.com/tree-sitter/tree-sitter at 0.23.2 (0.33s)
Creating working copy for https://github.com/tree-sitter/tree-sitter
Working copy of https://github.com/tree-sitter/tree-sitter resolved at 0.23.2
Building for debugging...
[0/3] Compiling scanner.c
[1/3] Compiling lib.c
[3/22] Emitting module SwiftTreeSitter
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:18:7: warning: associated value 'queryDirectoryNotReadable' of 'Sendable'-conforming enum 'LanguageConfigurationError' has non-sendable type 'URL'
        case queryDirectoryNotReadable(URL)
             ^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
              ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Parser.swift:8:10: warning: associated value 'unsupportedEncoding' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'String.Encoding'
    case unsupportedEncoding(String.Encoding)
         ^
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
    public struct Encoding : RawRepresentable {
                  ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Parser.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:26:7: warning: associated value 'match(_:captureNames:)' of 'Sendable'-conforming enum 'Predicate' has non-sendable type 'NSRegularExpression'
        case match(NSRegularExpression, captureNames: [String])
             ^
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
           ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:27:7: warning: associated value 'notMatch(_:captureNames:)' of 'Sendable'-conforming enum 'Predicate' has non-sendable type 'NSRegularExpression'
        case notMatch(NSRegularExpression, captureNames: [String])
             ^
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
           ^
[3/24] Compiling parser.c
[5/24] Compiling SwiftTreeSitter Tree.swift
[6/24] Compiling SwiftTreeSitter TreeCursor.swift
[7/24] Compiling SwiftTreeSitter InputEdit.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: note: did you mean 'iOS'?
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^~~~~~~~
                              iOS
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: note: did you mean 'Windows'?
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^~~~~~~~
                              Windows
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:18:7: warning: associated value 'queryDirectoryNotReadable' of 'Sendable'-conforming enum 'LanguageConfigurationError' has non-sendable type 'URL'
        case queryDirectoryNotReadable(URL)
             ^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
              ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[8/24] Compiling SwiftTreeSitter Language.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: note: did you mean 'iOS'?
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^~~~~~~~
                              iOS
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: note: did you mean 'Windows'?
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^~~~~~~~
                              Windows
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:18:7: warning: associated value 'queryDirectoryNotReadable' of 'Sendable'-conforming enum 'LanguageConfigurationError' has non-sendable type 'URL'
        case queryDirectoryNotReadable(URL)
             ^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
              ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[9/24] Compiling SwiftTreeSitter LanguageConfiguration.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: warning: unknown operating system for build configuration 'os'
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: note: did you mean 'iOS'?
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^~~~~~~~
                              iOS
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:125:31: note: did you mean 'Windows'?
#if os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
                              ^~~~~~~~
                              Windows
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:18:7: warning: associated value 'queryDirectoryNotReadable' of 'Sendable'-conforming enum 'LanguageConfigurationError' has non-sendable type 'URL'
        case queryDirectoryNotReadable(URL)
             ^
Foundation.URL:1:15: note: struct 'URL' does not conform to the 'Sendable' protocol
public struct URL : ReferenceConvertible, Equatable {
              ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/LanguageConfiguration.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[10/24] Compiling SwiftTreeSitter SendableTypes.swift
[11/24] Compiling SwiftTreeSitter String+Data.swift
[12/24] Compiling SwiftTreeSitter ResolvingQueryCursor.swift
[13/24] Compiling SwiftTreeSitter ResolvingQueryMatchSequence.swift
[14/24] Compiling SwiftTreeSitter Bundle+Extensions.swift
[15/24] Compiling SwiftTreeSitter Encoding+Helpers.swift
[16/24] Compiling SwiftTreeSitter Input.swift
[17/24] Compiling SwiftTreeSitter String+TextProvider.swift
[18/24] Compiling SwiftTreeSitter TSRange.swift
[19/24] Compiling SwiftTreeSitter Predicate.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:26:7: warning: associated value 'match(_:captureNames:)' of 'Sendable'-conforming enum 'Predicate' has non-sendable type 'NSRegularExpression'
        case match(NSRegularExpression, captureNames: [String])
             ^
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
           ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:27:7: warning: associated value 'notMatch(_:captureNames:)' of 'Sendable'-conforming enum 'Predicate' has non-sendable type 'NSRegularExpression'
        case notMatch(NSRegularExpression, captureNames: [String])
             ^
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
           ^
[20/24] Compiling SwiftTreeSitter Query.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:26:7: warning: associated value 'match(_:captureNames:)' of 'Sendable'-conforming enum 'Predicate' has non-sendable type 'NSRegularExpression'
        case match(NSRegularExpression, captureNames: [String])
             ^
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
           ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:27:7: warning: associated value 'notMatch(_:captureNames:)' of 'Sendable'-conforming enum 'Predicate' has non-sendable type 'NSRegularExpression'
        case notMatch(NSRegularExpression, captureNames: [String])
             ^
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
           ^
[21/24] Compiling SwiftTreeSitter QueryDefinitions.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:26:7: warning: associated value 'match(_:captureNames:)' of 'Sendable'-conforming enum 'Predicate' has non-sendable type 'NSRegularExpression'
        case match(NSRegularExpression, captureNames: [String])
             ^
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
           ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Predicate.swift:27:7: warning: associated value 'notMatch(_:captureNames:)' of 'Sendable'-conforming enum 'Predicate' has non-sendable type 'NSRegularExpression'
        case notMatch(NSRegularExpression, captureNames: [String])
             ^
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
           ^
[22/24] Compiling SwiftTreeSitter Node.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Parser.swift:8:10: warning: associated value 'unsupportedEncoding' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'String.Encoding'
    case unsupportedEncoding(String.Encoding)
         ^
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
    public struct Encoding : RawRepresentable {
                  ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Parser.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[23/24] Compiling SwiftTreeSitter Parser.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Parser.swift:8:10: warning: associated value 'unsupportedEncoding' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'String.Encoding'
    case unsupportedEncoding(String.Encoding)
         ^
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
    public struct Encoding : RawRepresentable {
                  ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Parser.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[24/24] Compiling SwiftTreeSitter Point.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Parser.swift:8:10: warning: associated value 'unsupportedEncoding' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'String.Encoding'
    case unsupportedEncoding(String.Encoding)
         ^
Foundation.String:2:19: note: struct 'Encoding' does not conform to the 'Sendable' protocol
    public struct Encoding : RawRepresentable {
                  ^
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Parser.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[27/34] Compiling SwiftTreeSitterLayer ParseState.swift
[28/34] Compiling SwiftTreeSitterLayer LanguageLayerQueryCursor.swift
[29/34] Compiling SwiftTreeSitterLayer Queryable.swift
[30/34] Compiling SwiftTreeSitterLayer Snapshots.swift
[31/34] Compiling SwiftTreeSitterLayer TreeSitter+Extensions.swift
[32/34] Compiling SwiftTreeSitterLayer IndexSet+Range.swift
[33/34] Emitting module SwiftTreeSitterLayer
[34/34] Compiling SwiftTreeSitterLayer LanguageLayer.swift
Build complete! (15.18s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "tree-sitter",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.23.0",
            "upper_bound" : "0.24.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tree-sitter/tree-sitter"
    }
  ],
  "manifest_display_name" : "SwiftTreeSitter",
  "name" : "SwiftTreeSitter",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftTreeSitter",
      "targets" : [
        "SwiftTreeSitter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftTreeSitterLayer",
      "targets" : [
        "SwiftTreeSitterLayer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TestTreeSitterSwift",
      "module_type" : "ClangTarget",
      "name" : "TestTreeSitterSwift",
      "path" : "tree-sitter-swift",
      "sources" : [
        "src/parser.c",
        "src/scanner.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftTreeSitterTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTreeSitterTests",
      "path" : "Tests/SwiftTreeSitterTests",
      "sources" : [
        "LanguageConfigurationTests.swift",
        "NodeTests.swift",
        "ParserTests.swift",
        "PredicateTests.swift",
        "QueryTests.swift",
        "ResolvingQueryCursorTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTreeSitter",
        "TestTreeSitterSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTreeSitterLayerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTreeSitterLayerTests",
      "path" : "Tests/SwiftTreeSitterLayerTests",
      "sources" : [
        "LanguageLayerTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTreeSitterLayer",
        "TestTreeSitterSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTreeSitterLayer",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTreeSitterLayer",
      "path" : "Sources/SwiftTreeSitterLayer",
      "product_memberships" : [
        "SwiftTreeSitterLayer"
      ],
      "sources" : [
        "IndexSet+Range.swift",
        "LanguageLayer.swift",
        "LanguageLayerQueryCursor.swift",
        "ParseState.swift",
        "Queryable.swift",
        "Snapshots.swift",
        "TreeSitter+Extensions.swift"
      ],
      "target_dependencies" : [
        "SwiftTreeSitter"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftTreeSitter",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTreeSitter",
      "path" : "Sources/SwiftTreeSitter",
      "product_dependencies" : [
        "TreeSitter"
      ],
      "product_memberships" : [
        "SwiftTreeSitter",
        "SwiftTreeSitterLayer"
      ],
      "sources" : [
        "Bundle+Extensions.swift",
        "Encoding+Helpers.swift",
        "Input.swift",
        "InputEdit.swift",
        "Language.swift",
        "LanguageConfiguration.swift",
        "Node.swift",
        "Parser.swift",
        "Point.swift",
        "Predicate.swift",
        "Query.swift",
        "QueryDefinitions.swift",
        "ResolvingQueryCursor.swift",
        "ResolvingQueryMatchSequence.swift",
        "SendableTypes.swift",
        "String+Data.swift",
        "String+TextProvider.swift",
        "TSRange.swift",
        "Tree.swift",
        "TreeCursor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:e6feefcc5d5d2f301fe47477cfe0928fc3b12c59579fdacf1d387095b6fee662
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Done.