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 DeepSeekKit, reference 1.0.1 (be5675), with Swift 6.1 for Linux on 13 Jul 2025 11:13:43 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/DeepSeekKit.git
Reference: 1.0.1
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/guitaripod/DeepSeekKit
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at be56758 docs: Enhance DocC documentation throughout the framework
Cloned https://github.com/guitaripod/DeepSeekKit.git
Revision (git rev-parse @):
be567583dc60ef0266e7200d39f775beba934b1c
SUCCESS checkout https://github.com/guitaripod/DeepSeekKit.git at 1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/guitaripod/DeepSeekKit.git
https://github.com/guitaripod/DeepSeekKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "DeepSeekKit",
  "name" : "DeepSeekKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "DeepSeekKit",
      "targets" : [
        "DeepSeekKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "deepseek-cli",
      "targets" : [
        "DeepSeekCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeepSeekKitTests",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekKitTests",
      "path" : "Tests/DeepSeekKitTests",
      "sources" : [
        "Builders/FunctionBuilderTests.swift",
        "Errors/DeepSeekErrorTests.swift",
        "Models/ChatCompletionRequestTests.swift",
        "Models/ChatMessageTests.swift",
        "Models/CompletionRequestTests.swift",
        "Models/ResponseTests.swift",
        "Models/ToolTests.swift",
        "Networking/RequestBuilderTests.swift"
      ],
      "target_dependencies" : [
        "DeepSeekKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeepSeekKit",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekKit",
      "path" : "Sources/DeepSeekKit",
      "product_memberships" : [
        "DeepSeekKit",
        "deepseek-cli"
      ],
      "sources" : [
        "Core/BalanceServiceProtocol.swift",
        "Core/ChatServiceProtocol.swift",
        "Core/DeepSeekProtocol.swift",
        "Core/ModelServiceProtocol.swift",
        "Core/NetworkingProtocol.swift",
        "DeepSeekClient.swift",
        "DeepSeekKit.swift",
        "Errors/DeepSeekError.swift",
        "Extensions/ChatMessage+Convenience.swift",
        "Extensions/FunctionBuilder.swift",
        "Models/BalanceResponse.swift",
        "Models/ChatCompletionChunk.swift",
        "Models/ChatCompletionRequest.swift",
        "Models/ChatCompletionResponse.swift",
        "Models/ChatMessage.swift",
        "Models/CompletionRequest.swift",
        "Models/CompletionResponse.swift",
        "Models/Model.swift",
        "Models/Tool.swift",
        "Networking/RequestBuilder.swift",
        "Networking/URLSessionNetworking.swift",
        "Services/BalanceService.swift",
        "Services/ChatService.swift",
        "Services/ModelService.swift",
        "Streaming/CURLStreamingHandler.swift",
        "Streaming/StreamingHandler.swift",
        "Streaming/URLSessionStreamingHandler.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DeepSeekCLI",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekCLI",
      "path" : "Sources/DeepSeekCLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "deepseek-cli"
      ],
      "sources" : [
        "Commands/Balance.swift",
        "Commands/Chat.swift",
        "Commands/Complete.swift",
        "Commands/FunctionCall.swift",
        "Commands/JSONMode.swift",
        "Commands/Models.swift",
        "Commands/Reasoning.swift",
        "Commands/Stream.swift",
        "DeepSeekCLI.swift",
        "TestAll.swift"
      ],
      "target_dependencies" : [
        "DeepSeekKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-docc-plugin
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.36s)
[1/15524] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.78s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (2.93s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3425] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.44s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.37s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.86s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/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.4.5
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/15] Write sources
[8/15] Write swift-version-24593BA9C3E375BF.txt
[10/42] Emitting module DeepSeekKit
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
[11/45] Emitting module ArgumentParserToolInfo
[12/45] Compiling ArgumentParserToolInfo ToolInfo.swift
[13/46] Wrapping AST for ArgumentParserToolInfo for debugging
[15/90] Compiling ArgumentParser OptionGroup.swift
[16/90] Compiling ArgumentParser AsyncParsableCommand.swift
[17/90] Compiling ArgumentParser CommandConfiguration.swift
[18/90] Compiling ArgumentParser CommandGroup.swift
[19/90] Compiling ArgumentParser EnumerableFlag.swift
[20/90] Compiling ArgumentParser ExpressibleByArgument.swift
[21/96] Emitting module ArgumentParser
[23/96] Compiling ArgumentParser ParsableArguments.swift
[24/96] Compiling ArgumentParser ParsableCommand.swift
[25/96] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
[26/96] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
[27/96] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/Sources/DeepSeekKit/Models/Tool.swift:70:16: warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 68 |
 69 |     /// The parameters schema in JSON Schema format. Defines the structure and validation rules for function parameters.
 70 |     public let parameters: [String: Any]
    |                `- warning: stored property 'parameters' of 'Sendable'-conforming struct 'FunctionDefinition' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
 71 |
 72 |     /// Creates a new function definition.
[28/96] Compiling ArgumentParser CompletionKind.swift
[29/96] Compiling ArgumentParser Errors.swift
[30/96] Compiling ArgumentParser Flag.swift
[35/96] Compiling ArgumentParser NameSpecification.swift
[36/96] Compiling ArgumentParser Option.swift
[38/96] Compiling ArgumentParser CollectionExtensions.swift
[39/96] Compiling ArgumentParser Mutex.swift
[40/96] Compiling ArgumentParser Platform.swift
[41/96] Compiling ArgumentParser SequenceExtensions.swift
[42/96] Compiling ArgumentParser StringExtensions.swift
[43/96] Compiling ArgumentParser SwiftExtensions.swift
[44/96] Compiling ArgumentParser Tree.swift
[45/96] Compiling ArgumentParser CodingKeyValidator.swift
[46/96] Compiling ArgumentParser NonsenseFlagsValidator.swift
[47/96] Compiling ArgumentParser ParsableArgumentsValidation.swift
[48/96] Compiling ArgumentParser PositionalArgumentsValidator.swift
[49/96] Compiling ArgumentParser UniqueNamesValidator.swift
[50/96] Compiling ArgumentParser ArgumentVisibility.swift
[56/96] Compiling ArgumentParser BashCompletionsGenerator.swift
[57/96] Compiling ArgumentParser CompletionsGenerator.swift
[58/96] Compiling ArgumentParser FishCompletionsGenerator.swift
[59/96] Compiling ArgumentParser ZshCompletionsGenerator.swift
[60/96] Compiling ArgumentParser Argument.swift
[61/96] Compiling ArgumentParser ArgumentDiscussion.swift
[62/96] Compiling ArgumentParser ArgumentHelp.swift
[64/96] Compiling ArgumentParser CommandParser.swift
[65/96] Compiling ArgumentParser InputKey.swift
[66/96] Compiling ArgumentParser InputOrigin.swift
[77/97] Compiling ArgumentParser Name.swift
[78/97] Compiling ArgumentParser Parsed.swift
[79/97] Compiling ArgumentParser ParsedValues.swift
[80/97] Compiling ArgumentParser ParserError.swift
[81/97] Compiling ArgumentParser SplitArguments.swift
[82/97] Compiling ArgumentParser DumpHelpGenerator.swift
[83/97] Compiling ArgumentParser HelpCommand.swift
[84/97] Compiling ArgumentParser HelpGenerator.swift
[85/97] Compiling ArgumentParser MessageInfo.swift
[86/97] Compiling ArgumentParser UsageGenerator.swift
[93/98] Wrapping AST for DeepSeekKit for debugging
[94/98] Wrapping AST for ArgumentParser for debugging
[96/108] Compiling DeepSeekCLI DeepSeekCLI.swift
[97/109] Compiling DeepSeekCLI Stream.swift
/host/spi-builder-workspace/Sources/DeepSeekCLI/Commands/Stream.swift:61:32: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
59 |                         responseContent += content
60 |                         print(content, terminator: "")
61 |                         fflush(stdout)
   |                                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
62 |                     }
63 |
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
/host/spi-builder-workspace/Sources/DeepSeekCLI/Commands/Stream.swift:68:36: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
66 |                         if showReasoning {
67 |                             print("[R: \(reasoning)]", terminator: "")
68 |                             fflush(stdout)
   |                                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
69 |                         }
70 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
[98/109] Compiling DeepSeekCLI Models.swift
[99/109] Compiling DeepSeekCLI Reasoning.swift
/host/spi-builder-workspace/Sources/DeepSeekCLI/Commands/Reasoning.swift:63:36: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 61 |                         if !hideReasoning {
 62 |                             print(content, terminator: "")
 63 |                             fflush(stdout)
    |                                    `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 64 |                         }
 65 |                     }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
[100/109] Compiling DeepSeekCLI JSONMode.swift
[101/109] Compiling DeepSeekCLI Complete.swift
[102/109] Compiling DeepSeekCLI FunctionCall.swift
[103/109] Emitting module DeepSeekCLI
[104/109] Compiling DeepSeekCLI Balance.swift
[105/109] Compiling DeepSeekCLI Chat.swift
[106/109] Compiling DeepSeekCLI TestAll.swift
[107/110] Wrapping AST for DeepSeekCLI for debugging
[108/110] Write Objects.LinkFileList
[109/110] Linking deepseek-cli
Build complete! (40.48s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "DeepSeekKit",
  "name" : "DeepSeekKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "DeepSeekKit",
      "targets" : [
        "DeepSeekKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "deepseek-cli",
      "targets" : [
        "DeepSeekCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeepSeekKitTests",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekKitTests",
      "path" : "Tests/DeepSeekKitTests",
      "sources" : [
        "Builders/FunctionBuilderTests.swift",
        "Errors/DeepSeekErrorTests.swift",
        "Models/ChatCompletionRequestTests.swift",
        "Models/ChatMessageTests.swift",
        "Models/CompletionRequestTests.swift",
        "Models/ResponseTests.swift",
        "Models/ToolTests.swift",
        "Networking/RequestBuilderTests.swift"
      ],
      "target_dependencies" : [
        "DeepSeekKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeepSeekKit",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekKit",
      "path" : "Sources/DeepSeekKit",
      "product_memberships" : [
        "DeepSeekKit",
        "deepseek-cli"
      ],
      "sources" : [
        "Core/BalanceServiceProtocol.swift",
        "Core/ChatServiceProtocol.swift",
        "Core/DeepSeekProtocol.swift",
        "Core/ModelServiceProtocol.swift",
        "Core/NetworkingProtocol.swift",
        "DeepSeekClient.swift",
        "DeepSeekKit.swift",
        "Errors/DeepSeekError.swift",
        "Extensions/ChatMessage+Convenience.swift",
        "Extensions/FunctionBuilder.swift",
        "Models/BalanceResponse.swift",
        "Models/ChatCompletionChunk.swift",
        "Models/ChatCompletionRequest.swift",
        "Models/ChatCompletionResponse.swift",
        "Models/ChatMessage.swift",
        "Models/CompletionRequest.swift",
        "Models/CompletionResponse.swift",
        "Models/Model.swift",
        "Models/Tool.swift",
        "Networking/RequestBuilder.swift",
        "Networking/URLSessionNetworking.swift",
        "Services/BalanceService.swift",
        "Services/ChatService.swift",
        "Services/ModelService.swift",
        "Streaming/CURLStreamingHandler.swift",
        "Streaming/StreamingHandler.swift",
        "Streaming/URLSessionStreamingHandler.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DeepSeekCLI",
      "module_type" : "SwiftTarget",
      "name" : "DeepSeekCLI",
      "path" : "Sources/DeepSeekCLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "deepseek-cli"
      ],
      "sources" : [
        "Commands/Balance.swift",
        "Commands/Chat.swift",
        "Commands/Complete.swift",
        "Commands/FunctionCall.swift",
        "Commands/JSONMode.swift",
        "Commands/Models.swift",
        "Commands/Reasoning.swift",
        "Commands/Stream.swift",
        "DeepSeekCLI.swift",
        "TestAll.swift"
      ],
      "target_dependencies" : [
        "DeepSeekKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.