The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-complexity, reference v0.1.0 (dacf06), with Swift 6.1 for Wasm on 29 Mar 2026 22:05:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fummicc1/swift-complexity.git
Reference: v0.1.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/fummicc1/swift-complexity
 * tag               v0.1.0     -> FETCH_HEAD
HEAD is now at dacf062 feat: Add MCP server and Claude Plugin for complexity analysis (#22)
Cloned https://github.com/fummicc1/swift-complexity.git
Revision (git rev-parse @):
dacf062a0e026dd97ec36b04ac9627d5889de0f3
SUCCESS checkout https://github.com/fummicc1/swift-complexity.git at v0.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fummicc1/swift-complexity.git
https://github.com/fummicc1/swift-complexity.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "600.0.0",
            "upper_bound" : "601.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-syntax.git"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "indexstore-db",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/indexstore-db"
    },
    {
      "identity" : "swift-sdk",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.11.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/modelcontextprotocol/swift-sdk.git"
    }
  ],
  "manifest_display_name" : "swift-complexity",
  "name" : "swift-complexity",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftComplexityCore",
      "targets" : [
        "SwiftComplexityCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftComplexityCLI",
      "targets" : [
        "SwiftComplexityCLI"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "SwiftComplexityMCP",
      "targets" : [
        "SwiftComplexityMCP"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "SwiftComplexityPlugin",
      "targets" : [
        "SwiftComplexityPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftComplexityPlugin",
      "module_type" : "PluginTarget",
      "name" : "SwiftComplexityPlugin",
      "path" : "Plugins/SwiftComplexityPlugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "SwiftComplexityPlugin"
      ],
      "sources" : [
        "Plugin.swift"
      ],
      "target_dependencies" : [
        "SwiftComplexityCLI"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "SwiftComplexityMCPTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftComplexityMCPTests",
      "path" : "Tests/SwiftComplexityMCPTests",
      "sources" : [
        "SwiftComplexityMCPTests.swift"
      ],
      "target_dependencies" : [
        "SwiftComplexityMCP",
        "SwiftComplexityCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftComplexityMCP",
      "module_type" : "SwiftTarget",
      "name" : "SwiftComplexityMCP",
      "path" : "Sources/SwiftComplexityMCP",
      "product_dependencies" : [
        "MCP"
      ],
      "product_memberships" : [
        "SwiftComplexityMCP"
      ],
      "sources" : [
        "Handlers/AnalyzeCodeStringHandler.swift",
        "Handlers/AnalyzeComplexityHandler.swift",
        "MCPServer.swift",
        "ParamExtractor.swift",
        "ToolDefinitions.swift",
        "ToolRouter.swift"
      ],
      "target_dependencies" : [
        "SwiftComplexityCore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SwiftComplexityCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftComplexityCoreTests",
      "path" : "Tests/SwiftComplexityCoreTests",
      "product_dependencies" : [
        "SwiftSyntax",
        "SwiftParser"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/SwiftComplexityCoreTests/Fixtures",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "SwiftComplexityTests.swift"
      ],
      "target_dependencies" : [
        "SwiftComplexityCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftComplexityCore",
      "module_type" : "SwiftTarget",
      "name" : "SwiftComplexityCore",
      "path" : "Sources/SwiftComplexityCore",
      "product_dependencies" : [
        "SwiftSyntax",
        "SwiftParser",
        "IndexStoreDB"
      ],
      "product_memberships" : [
        "SwiftComplexityCore",
        "SwiftComplexityCLI",
        "SwiftComplexityMCP",
        "SwiftComplexityPlugin"
      ],
      "sources" : [
        "Analysis/CognitiveComplexityCalculator.swift",
        "Analysis/ComplexityAnalyzer.swift",
        "Analysis/CyclomaticComplexityCalculator.swift",
        "Analysis/FunctionDetector.swift",
        "Analysis/NominalTypeDetector.swift",
        "Analysis/SemanticLCOMCalculator.swift",
        "Models/ClassCohesion.swift",
        "Models/ComplexityResult.swift",
        "Models/FunctionComplexity.swift",
        "Models/SourceLocation.swift",
        "Output/OutputFormat.swift",
        "Output/OutputFormatter.swift",
        "Processing/FileProcessor.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftComplexityCLITests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftComplexityCLITests",
      "path" : "Tests/SwiftComplexityCLITests",
      "sources" : [
        "SwiftComplexityCLITests.swift"
      ],
      "target_dependencies" : [
        "SwiftComplexityCLI",
        "SwiftComplexityCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftComplexityCLI",
      "module_type" : "SwiftTarget",
      "name" : "SwiftComplexityCLI",
      "path" : "Sources/SwiftComplexityCLI",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "SwiftComplexityCLI",
        "SwiftComplexityPlugin"
      ],
      "sources" : [
        "ComplexityCommand.swift"
      ],
      "target_dependencies" : [
        "SwiftComplexityCore"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "6.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.3
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.3
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.3
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.2.0 but the installed version is 6.1.3
BUILD FAILURE 6.1 wasm