The Swift Package Index logo.Swift Package Index

Build Information

Failed to build lefthook, reference 2.1.6 (d2aa66), with Swift 6.3 for Wasm on 20 Apr 2026 08:23:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/csjones/lefthook-plugin.git
Reference: 2.1.6
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/csjones/lefthook-plugin
 * tag               2.1.6      -> FETCH_HEAD
HEAD is now at d2aa660 Updating lefthook to 2.1.6
Cloned https://github.com/csjones/lefthook-plugin.git
Revision (git rev-parse @):
d2aa660403eb28f124c5a1b07e04ffe43d2e7940
SUCCESS checkout https://github.com/csjones/lefthook-plugin.git at 2.1.6
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/csjones/lefthook-plugin.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Downloading binary artifact https://github.com/csjones/lefthook-plugin/releases/download/2.1.6/lefthook.artifactbundle.zip
[16375/36421893] Downloading https://github.com/csjones/lefthook-plugin/releases/download/2.1.6/lefthook.artifactbundle.zip
Downloaded https://github.com/csjones/lefthook-plugin/releases/download/2.1.6/lefthook.artifactbundle.zip (3.53s)
[1/1] Compiling plugin ArtifactExpander
[2/2] Compiling plugin LefthookPlugin
Building for debugging...
[2/7] Write sources
[3/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Compiling LefthookExecutable FileSystem.swift
[6/12] Compiling LefthookExecutable ArtifactParser.swift
[7/12] Emitting module LefthookExecutable
/host/spi-builder-workspace/Sources/LefthookExecutable/main.swift:12:15: error: cannot find 'Process' in scope
10 |
11 | // Run lefthook binary with the arguments that were passed into this executable.
12 | let process = Process()
   |               `- error: cannot find 'Process' in scope
13 | process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
14 | process.arguments = [lefthookBinaryPath] + lefthookArgs
[8/12] Compiling LefthookExecutable OS.swift
/host/spi-builder-workspace/Sources/LefthookExecutable/OS.swift:10:23: error: cannot find 'Process' in scope
 8 |     /// https://github.com/apple/swift-package-manager/blob/1c68e6cab56a3acba30d3ecea0c09209c6c7f565/Sources/Basics/Triple%2BBasics.swift#L84-L121
 9 |     static func getSystemTriple() -> String? {
10 |         let process = Process()
   |                       `- error: cannot find 'Process' in scope
11 |         let stdoutPipe = Pipe()
12 |
[9/12] Compiling LefthookExecutable main.swift
/host/spi-builder-workspace/Sources/LefthookExecutable/main.swift:12:15: error: cannot find 'Process' in scope
10 |
11 | // Run lefthook binary with the arguments that were passed into this executable.
12 | let process = Process()
   |               `- error: cannot find 'Process' in scope
13 | process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
14 | process.arguments = [lefthookBinaryPath] + lefthookArgs
BUILD FAILURE 6.3 wasm