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 SGFKit, reference main (7bf86b), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 22:59:23 UTC.

Swift 6 data race errors: 1

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/mtj0928/SGFKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mtj0928/SGFKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7bf86b0 Fix a bug related to escaping
Cloned https://github.com/mtj0928/SGFKit.git
Revision (git rev-parse @):
7bf86b052e920385918c11c6328e4fbd7cd081b0
SUCCESS checkout https://github.com/mtj0928/SGFKit.git at main
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2038] Fetching swift-docc-plugin
[226/5191] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.35s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.35s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
========================================
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": "sgfkit",
      "name": "SGFKit",
      "url": "https://github.com/mtj0928/SGFKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SGFKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/mtj0928/SGFKit.git
[1/392] Fetching sgfkit
Fetched https://github.com/mtj0928/SGFKit.git from cache (0.77s)
Creating working copy for https://github.com/mtj0928/SGFKit.git
Working copy of https://github.com/mtj0928/SGFKit.git resolved at main (7bf86b0)
warning: '.resolve-product-dependencies': dependency 'sgfkit' 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/mtj0928/SGFKit.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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/16] Compiling SGFKit Node.swift
[6/17] Compiling SGFKit Token.swift
[7/17] Compiling SGFKit PropertyDefinition.swift
[8/17] Emitting module SGFKit
/Users/admin/builder/spi-builder-workspace/Sources/SGFKit/Parser.swift:163:10: warning: associated value 'unexpectedToken(expectedToken:at:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'TokenKind.Case'; this is an error in the Swift 6 language mode
161 | public enum ParserError: Error {
162 |     /// A case indicating unexpected token appears.
163 |     case unexpectedToken(expectedToken: TokenKind.Case, at: String.Index)
    |          `- warning: associated value 'unexpectedToken(expectedToken:at:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'TokenKind.Case'; this is an error in the Swift 6 language mode
164 |
165 |     /// A case indicating the expected token doesn't appear.
/Users/admin/builder/spi-builder-workspace/Sources/SGFKit/Token.swift:42:17: note: consider making enum 'Case' conform to the 'Sendable' protocol
40 |
41 |     /// An enum  indicating only a kind of a token of SGF.
42 |     public enum Case {
   |                 `- note: consider making enum 'Case' conform to the 'Sendable' protocol
43 |         /// A token indicating "(".
44 |         case leftParenthesis
[9/17] Compiling SGFKit Collection+Factory.swift
[10/17] Compiling SGFKit Collection+SGF.swift
[11/17] Compiling SGFKit Collection.swift
[12/17] Compiling SGFKit Game.swift
[13/17] Compiling SGFKit Go.swift
[14/17] Compiling SGFKit Lexer.swift
[15/17] Compiling SGFKit PropertyValue.swift
[16/17] Compiling SGFKit Parser.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGFKit/Parser.swift:163:10: warning: associated value 'unexpectedToken(expectedToken:at:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'TokenKind.Case'; this is an error in the Swift 6 language mode
161 | public enum ParserError: Error {
162 |     /// A case indicating unexpected token appears.
163 |     case unexpectedToken(expectedToken: TokenKind.Case, at: String.Index)
    |          `- warning: associated value 'unexpectedToken(expectedToken:at:)' of 'Sendable'-conforming enum 'ParserError' has non-sendable type 'TokenKind.Case'; this is an error in the Swift 6 language mode
164 |
165 |     /// A case indicating the expected token doesn't appear.
/Users/admin/builder/spi-builder-workspace/Sources/SGFKit/Token.swift:42:17: note: consider making enum 'Case' conform to the 'Sendable' protocol
40 |
41 |     /// An enum  indicating only a kind of a token of SGF.
42 |     public enum Case {
   |                 `- note: consider making enum 'Case' conform to the 'Sendable' protocol
43 |         /// A token indicating "(".
44 |         case leftParenthesis
[17/17] Compiling SGFKit NonTerminalSymbol.swift
Build complete! (24.41s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "SGFKit",
  "name" : "SGFKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SGFKit",
      "targets" : [
        "SGFKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SGFKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SGFKitTests",
      "path" : "Tests/SGFKitTests",
      "sources" : [
        "Game/Go/GoCollectionTests.swift",
        "Game/Go/GoTests.swift",
        "LexerTests.swift",
        "ParserTests.swift"
      ],
      "target_dependencies" : [
        "SGFKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SGFKit",
      "module_type" : "SwiftTarget",
      "name" : "SGFKit",
      "path" : "Sources/SGFKit",
      "product_memberships" : [
        "SGFKit"
      ],
      "sources" : [
        "Collection+Factory.swift",
        "Collection+SGF.swift",
        "Collection.swift",
        "Game.swift",
        "Game/Go.swift",
        "Lexer.swift",
        "Node.swift",
        "NonTerminalSymbol.swift",
        "Parser.swift",
        "PropertyDefinition.swift",
        "PropertyValue.swift",
        "Token.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.