The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SGF, reference master (ca93d9), with Swift 6.1 for Wasm on 27 May 2025 09:24:07 UTC.

Swift 6 data race errors: 7

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/y-ich/swift-sgf.git
Reference: master
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/y-ich/swift-sgf
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ca93d95 changed SGFCursor API
Cloned https://github.com/y-ich/swift-sgf.git
Revision (git rev-parse @):
ca93d9573230545f0a226230787de0a2dd4c3026
SUCCESS checkout https://github.com/y-ich/swift-sgf.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/y-ich/swift-sgf.git
https://github.com/y-ich/swift-sgf.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SGF",
  "name" : "SGF",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SGF",
      "targets" : [
        "SGF"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SGFTests",
      "module_type" : "SwiftTarget",
      "name" : "SGFTests",
      "path" : "Tests/SGFTests",
      "sources" : [
        "SGFTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SGF"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SGF",
      "module_type" : "SwiftTarget",
      "name" : "SGF",
      "path" : "Sources/SGF",
      "product_memberships" : [
        "SGF"
      ],
      "sources" : [
        "CitronLexer.swift",
        "CitronParser.swift",
        "NSTextCheckingResultExtension.swift",
        "SGFCursor.swift",
        "SGFEncoder.swift",
        "SGFParser.swift",
        "SGFParserUtils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling SGF SGFParser.swift
[4/10] Compiling SGF SGFEncoder.swift
[5/10] Compiling SGF SGFParserUtils.swift
[6/10] Compiling SGF NSTextCheckingResultExtension.swift
[7/10] Compiling SGF CitronParser.swift
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:173:10: warning: associated value 'syntaxErrorAt(token:tokenCode:)' of 'Sendable'-conforming generic enum '_CitronParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
170 | // Error handling
171 |
172 | enum _CitronParserError<Token, TokenCode>: Error {
    |                         `- note: consider making generic parameter 'Token' conform to the 'Sendable' protocol
173 |     case syntaxErrorAt(token: Token, tokenCode: TokenCode)
    |          `- warning: associated value 'syntaxErrorAt(token:tokenCode:)' of 'Sendable'-conforming generic enum '_CitronParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
174 |     case unexpectedEndOfInput
175 |     case stackOverflow
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:173:10: warning: associated value 'syntaxErrorAt(token:tokenCode:)' of 'Sendable'-conforming generic enum '_CitronParserError' has non-sendable type 'TokenCode'; this is an error in the Swift 6 language mode
170 | // Error handling
171 |
172 | enum _CitronParserError<Token, TokenCode>: Error {
    |                                `- note: consider making generic parameter 'TokenCode' conform to the 'Sendable' protocol
173 |     case syntaxErrorAt(token: Token, tokenCode: TokenCode)
    |          `- warning: associated value 'syntaxErrorAt(token:tokenCode:)' of 'Sendable'-conforming generic enum '_CitronParserError' has non-sendable type 'TokenCode'; this is an error in the Swift 6 language mode
174 |     case unexpectedEndOfInput
175 |     case stackOverflow
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:180:7: warning: non-final class '_CitronParserUnexpectedTokenError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
178 | protocol CitronParserError : Error { }
179 |
180 | class _CitronParserUnexpectedTokenError<Token, TokenCode> : CitronParserError {
    |       `- warning: non-final class '_CitronParserUnexpectedTokenError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
181 |     let token: Token
182 |     let tokenCode: TokenCode
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:181:9: warning: stored property 'token' of 'Sendable'-conforming generic class '_CitronParserUnexpectedTokenError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
178 | protocol CitronParserError : Error { }
179 |
180 | class _CitronParserUnexpectedTokenError<Token, TokenCode> : CitronParserError {
    |                                         `- note: consider making generic parameter 'Token' conform to the 'Sendable' protocol
181 |     let token: Token
    |         `- warning: stored property 'token' of 'Sendable'-conforming generic class '_CitronParserUnexpectedTokenError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
182 |     let tokenCode: TokenCode
183 |     init(token: Token, tokenCode: TokenCode) {
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:182:9: warning: stored property 'tokenCode' of 'Sendable'-conforming generic class '_CitronParserUnexpectedTokenError' has non-sendable type 'TokenCode'; this is an error in the Swift 6 language mode
178 | protocol CitronParserError : Error { }
179 |
180 | class _CitronParserUnexpectedTokenError<Token, TokenCode> : CitronParserError {
    |                                                `- note: consider making generic parameter 'TokenCode' conform to the 'Sendable' protocol
181 |     let token: Token
182 |     let tokenCode: TokenCode
    |         `- warning: stored property 'tokenCode' of 'Sendable'-conforming generic class '_CitronParserUnexpectedTokenError' has non-sendable type 'TokenCode'; this is an error in the Swift 6 language mode
183 |     init(token: Token, tokenCode: TokenCode) {
184 |         self.token = token
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:189:7: warning: non-final class 'CitronParserUnexpectedEndOfInputError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
187 | }
188 |
189 | class CitronParserUnexpectedEndOfInputError : CitronParserError {
    |       `- warning: non-final class 'CitronParserUnexpectedEndOfInputError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
190 | }
191 |
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:192:7: warning: non-final class 'CitronParserStackOverflowError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
190 | }
191 |
192 | class CitronParserStackOverflowError : CitronParserError {
    |       `- warning: non-final class 'CitronParserStackOverflowError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
193 | }
194 |
[8/10] Compiling SGF SGFCursor.swift
[9/10] Emitting module SGF
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:173:10: warning: associated value 'syntaxErrorAt(token:tokenCode:)' of 'Sendable'-conforming generic enum '_CitronParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
170 | // Error handling
171 |
172 | enum _CitronParserError<Token, TokenCode>: Error {
    |                         `- note: consider making generic parameter 'Token' conform to the 'Sendable' protocol
173 |     case syntaxErrorAt(token: Token, tokenCode: TokenCode)
    |          `- warning: associated value 'syntaxErrorAt(token:tokenCode:)' of 'Sendable'-conforming generic enum '_CitronParserError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
174 |     case unexpectedEndOfInput
175 |     case stackOverflow
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:173:10: warning: associated value 'syntaxErrorAt(token:tokenCode:)' of 'Sendable'-conforming generic enum '_CitronParserError' has non-sendable type 'TokenCode'; this is an error in the Swift 6 language mode
170 | // Error handling
171 |
172 | enum _CitronParserError<Token, TokenCode>: Error {
    |                                `- note: consider making generic parameter 'TokenCode' conform to the 'Sendable' protocol
173 |     case syntaxErrorAt(token: Token, tokenCode: TokenCode)
    |          `- warning: associated value 'syntaxErrorAt(token:tokenCode:)' of 'Sendable'-conforming generic enum '_CitronParserError' has non-sendable type 'TokenCode'; this is an error in the Swift 6 language mode
174 |     case unexpectedEndOfInput
175 |     case stackOverflow
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:180:7: warning: non-final class '_CitronParserUnexpectedTokenError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
178 | protocol CitronParserError : Error { }
179 |
180 | class _CitronParserUnexpectedTokenError<Token, TokenCode> : CitronParserError {
    |       `- warning: non-final class '_CitronParserUnexpectedTokenError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
181 |     let token: Token
182 |     let tokenCode: TokenCode
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:181:9: warning: stored property 'token' of 'Sendable'-conforming generic class '_CitronParserUnexpectedTokenError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
178 | protocol CitronParserError : Error { }
179 |
180 | class _CitronParserUnexpectedTokenError<Token, TokenCode> : CitronParserError {
    |                                         `- note: consider making generic parameter 'Token' conform to the 'Sendable' protocol
181 |     let token: Token
    |         `- warning: stored property 'token' of 'Sendable'-conforming generic class '_CitronParserUnexpectedTokenError' has non-sendable type 'Token'; this is an error in the Swift 6 language mode
182 |     let tokenCode: TokenCode
183 |     init(token: Token, tokenCode: TokenCode) {
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:182:9: warning: stored property 'tokenCode' of 'Sendable'-conforming generic class '_CitronParserUnexpectedTokenError' has non-sendable type 'TokenCode'; this is an error in the Swift 6 language mode
178 | protocol CitronParserError : Error { }
179 |
180 | class _CitronParserUnexpectedTokenError<Token, TokenCode> : CitronParserError {
    |                                                `- note: consider making generic parameter 'TokenCode' conform to the 'Sendable' protocol
181 |     let token: Token
182 |     let tokenCode: TokenCode
    |         `- warning: stored property 'tokenCode' of 'Sendable'-conforming generic class '_CitronParserUnexpectedTokenError' has non-sendable type 'TokenCode'; this is an error in the Swift 6 language mode
183 |     init(token: Token, tokenCode: TokenCode) {
184 |         self.token = token
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:189:7: warning: non-final class 'CitronParserUnexpectedEndOfInputError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
187 | }
188 |
189 | class CitronParserUnexpectedEndOfInputError : CitronParserError {
    |       `- warning: non-final class 'CitronParserUnexpectedEndOfInputError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
190 | }
191 |
/host/spi-builder-workspace/Sources/SGF/CitronParser.swift:192:7: warning: non-final class 'CitronParserStackOverflowError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
190 | }
191 |
192 | class CitronParserStackOverflowError : CitronParserError {
    |       `- warning: non-final class 'CitronParserStackOverflowError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
193 | }
194 |
[10/10] Compiling SGF CitronLexer.swift
/host/spi-builder-workspace/Sources/SGF/CitronLexer.swift:50:50: warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior.
 48 |             }
 49 |         }
 50 |         currentPosition = (tokenPosition: String.Index(encodedOffset: 0), linePosition: String.Index(encodedOffset: 0), lineNumber: 0)
    |                                                  `- warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior.
 51 |     }
 52 |
/host/spi-builder-workspace/Sources/SGF/CitronLexer.swift:50:96: warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior.
 48 |             }
 49 |         }
 50 |         currentPosition = (tokenPosition: String.Index(encodedOffset: 0), linePosition: String.Index(encodedOffset: 0), lineNumber: 0)
    |                                                                                                `- warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior.
 51 |     }
 52 |
Build complete! (6.38s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SGF",
  "name" : "SGF",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SGF",
      "targets" : [
        "SGF"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SGFTests",
      "module_type" : "SwiftTarget",
      "name" : "SGFTests",
      "path" : "Tests/SGFTests",
      "sources" : [
        "SGFTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SGF"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SGF",
      "module_type" : "SwiftTarget",
      "name" : "SGF",
      "path" : "Sources/SGF",
      "product_memberships" : [
        "SGF"
      ],
      "sources" : [
        "CitronLexer.swift",
        "CitronParser.swift",
        "NSTextCheckingResultExtension.swift",
        "SGFCursor.swift",
        "SGFEncoder.swift",
        "SGFParser.swift",
        "SGFParserUtils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.