The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of JSONDecoder, reference 0.1.5 (d829be), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 09:55:23 UTC.

Swift 6 data race errors: 3

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/asoderman/JSONDecoder.git
Reference: 0.1.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/asoderman/JSONDecoder
 * tag               0.1.5      -> FETCH_HEAD
HEAD is now at d829be3 Update for 0.1.5
Cloned https://github.com/asoderman/JSONDecoder.git
Revision (git rev-parse @):
d829be306118e03151cf9340b3e34f7b9ecf45f3
SUCCESS checkout https://github.com/asoderman/JSONDecoder.git at 0.1.5
========================================
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": "jsondecoder",
      "name": "JSONDecoder",
      "url": "https://github.com/asoderman/JSONDecoder.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/JSONDecoder",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/asoderman/JSONDecoder.git
[5/215] Fetching jsondecoder
Fetched https://github.com/asoderman/JSONDecoder.git from cache (0.70s)
Creating working copy for https://github.com/asoderman/JSONDecoder.git
Working copy of https://github.com/asoderman/JSONDecoder.git resolved at 0.1.5 (d829be3)
warning: '.resolve-product-dependencies': dependency 'jsondecoder' 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/asoderman/JSONDecoder.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Compiling JSONDecoder JSONScanner.swift
[4/6] Compiling JSONDecoder JSONToken.swift
[5/6] Compiling JSONDecoder JSONParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:413:30: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
411 | enum ParsingError: Error {
412 |
413 |     case ExpectedClosingBrace()
    |                              |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                              |- note: did you mean to remove the empty associated value list?
    |                              `- note: did you mean to explicitly add a 'Void' associated value?
414 |     case UnknownToken(token: JSONToken)
415 |     case ExpectedQuote(token: JSONToken)
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:414:10: warning: associated value 'UnknownToken(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
412 |
413 |     case ExpectedClosingBrace()
414 |     case UnknownToken(token: JSONToken)
    |          `- warning: associated value 'UnknownToken(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
415 |     case ExpectedQuote(token: JSONToken)
416 |     case ExpectedClosingBracket(token: JSONToken)
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONToken.swift:9:7: note: class 'JSONToken' does not conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | class JSONToken: CustomStringConvertible {
   |       `- note: class 'JSONToken' does not conform to the 'Sendable' protocol
10 |
11 |     let type: symbol
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:415:10: warning: associated value 'ExpectedQuote(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
413 |     case ExpectedClosingBrace()
414 |     case UnknownToken(token: JSONToken)
415 |     case ExpectedQuote(token: JSONToken)
    |          `- warning: associated value 'ExpectedQuote(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
416 |     case ExpectedClosingBracket(token: JSONToken)
417 |
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONToken.swift:9:7: note: class 'JSONToken' does not conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | class JSONToken: CustomStringConvertible {
   |       `- note: class 'JSONToken' does not conform to the 'Sendable' protocol
10 |
11 |     let type: symbol
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:416:10: warning: associated value 'ExpectedClosingBracket(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
414 |     case UnknownToken(token: JSONToken)
415 |     case ExpectedQuote(token: JSONToken)
416 |     case ExpectedClosingBracket(token: JSONToken)
    |          `- warning: associated value 'ExpectedClosingBracket(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
417 |
418 |     var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONToken.swift:9:7: note: class 'JSONToken' does not conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | class JSONToken: CustomStringConvertible {
   |       `- note: class 'JSONToken' does not conform to the 'Sendable' protocol
10 |
11 |     let type: symbol
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:283:47: warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
281 |     open var description: String {
282 |         get {
283 |             return "JSONParser: parseTree = \(parseTree)"
    |                                               |- warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
    |                                               `- note: use 'String(describing:)' to silence this warning
284 |         }
285 |     }
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:250:24: warning: function call causes an infinite recursion
248 |
249 |         set (input) {
250 |             self.value = input
    |                        `- warning: function call causes an infinite recursion
251 |         }
252 |     }
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:158:24: warning: function call causes an infinite recursion
156 |
157 |         set (input) {
158 |             self.value = s_value
    |                        `- warning: function call causes an infinite recursion
159 |         }
160 |     }
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:180:24: warning: function call causes an infinite recursion
178 |         }
179 |         set (input) {
180 |             self.value = input
    |                        `- warning: function call causes an infinite recursion
181 |         }
182 |     }
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:93:24: warning: function call causes an infinite recursion
 91 |
 92 |         set (input) {
 93 |             self.value = input
    |                        `- warning: function call causes an infinite recursion
 94 |         }
 95 |     }
[6/6] Emitting module JSONDecoder
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:413:30: warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
411 | enum ParsingError: Error {
412 |
413 |     case ExpectedClosingBrace()
    |                              |- warning: enum element with associated values must have at least one associated value; this will be an error in the future version of Swift
    |                              |- note: did you mean to remove the empty associated value list?
    |                              `- note: did you mean to explicitly add a 'Void' associated value?
414 |     case UnknownToken(token: JSONToken)
415 |     case ExpectedQuote(token: JSONToken)
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:414:10: warning: associated value 'UnknownToken(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
412 |
413 |     case ExpectedClosingBrace()
414 |     case UnknownToken(token: JSONToken)
    |          `- warning: associated value 'UnknownToken(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
415 |     case ExpectedQuote(token: JSONToken)
416 |     case ExpectedClosingBracket(token: JSONToken)
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONToken.swift:9:7: note: class 'JSONToken' does not conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | class JSONToken: CustomStringConvertible {
   |       `- note: class 'JSONToken' does not conform to the 'Sendable' protocol
10 |
11 |     let type: symbol
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:415:10: warning: associated value 'ExpectedQuote(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
413 |     case ExpectedClosingBrace()
414 |     case UnknownToken(token: JSONToken)
415 |     case ExpectedQuote(token: JSONToken)
    |          `- warning: associated value 'ExpectedQuote(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
416 |     case ExpectedClosingBracket(token: JSONToken)
417 |
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONToken.swift:9:7: note: class 'JSONToken' does not conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | class JSONToken: CustomStringConvertible {
   |       `- note: class 'JSONToken' does not conform to the 'Sendable' protocol
10 |
11 |     let type: symbol
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONParser.swift:416:10: warning: associated value 'ExpectedClosingBracket(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
414 |     case UnknownToken(token: JSONToken)
415 |     case ExpectedQuote(token: JSONToken)
416 |     case ExpectedClosingBracket(token: JSONToken)
    |          `- warning: associated value 'ExpectedClosingBracket(token:)' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JSONToken'; this is an error in the Swift 6 language mode
417 |
418 |     var description: String {
/Users/admin/builder/spi-builder-workspace/Sources/JSONDecoder/JSONToken.swift:9:7: note: class 'JSONToken' does not conform to the 'Sendable' protocol
 7 | //
 8 |
 9 | class JSONToken: CustomStringConvertible {
   |       `- note: class 'JSONToken' does not conform to the 'Sendable' protocol
10 |
11 |     let type: symbol
Build complete! (2.05s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JSONDecoder",
  "name" : "JSONDecoder",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JSONDecoder",
      "targets" : [
        "JSONDecoder"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JSONDecoderTests",
      "module_type" : "SwiftTarget",
      "name" : "JSONDecoderTests",
      "path" : "Tests/JSONDecoderTests",
      "sources" : [
        "JSONDecoderTests.swift"
      ],
      "target_dependencies" : [
        "JSONDecoder"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JSONDecoder",
      "module_type" : "SwiftTarget",
      "name" : "JSONDecoder",
      "path" : "Sources/JSONDecoder",
      "product_memberships" : [
        "JSONDecoder"
      ],
      "sources" : [
        "JSONParser.swift",
        "JSONScanner.swift",
        "JSONToken.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.