Attempt Details

Package: npm:hardhat 2.23.0

Artifact: hardhat-2.23.0.tgz

Status: Failed

Run ID: deps-dev

Started: 2025-04-17 22:35:29

Created: 2025-04-17 22:37:35

Finished: 0001-01-01 00:00:00

Duration: 2m6s

Logs: View in Cloud Storage

Strategy

{
  "npm_custom_build": {
    "repo": "https://github.com/nomiclabs/hardhat",
    "ref": "e665b966698a6a06186f2a47527857f6099ecbec",
    "dir": "packages/hardhat-core",
    "npm_version": "10.8.2",
    "node_version": "19.0.1",
    "command": "build",
    "registry_time": "2025-04-10T19:05:32.909Z"
  }
}

Full Message

executing rebuild: rebuilding: rebuild failed: performing build: GCB build failed: 

Dockerfile

#syntax=docker/dockerfile:1.10
FROM docker.io/library/alpine:3.19
RUN <<'EOF'
 set -eux
 wget https://google-rebuild-bootstrap-tools.storage.googleapis.com/v0.0.0-20250210190002-d5b4426b9c2d/timewarp
 chmod +x timewarp
 apk add git npm
EOF
RUN <<'EOF'
 set -eux
 ./timewarp -port 8080 &
 while ! nc -z localhost 8080;do sleep 1;done
 mkdir /src && cd /src
 git clone https://github.com/nomiclabs/hardhat .
 git checkout --force 'e665b966698a6a06186f2a47527857f6099ecbec'
 wget -O - https://unofficial-builds.nodejs.org/download/release/v19.0.1/node-v19.0.1-linux-x64-musl.tar.gz | tar xzf - --strip-components=1 -C /usr/local/
 /usr/local/bin/npx --package=npm@10.8.2 -c 'cd packages/hardhat-core && npm_config_registry=http://npm:2025-04-10T19:05:32Z@localhost:8080 npm install --force'
EOF
RUN cat <<'EOF' >/build
 set -eux
 /usr/local/bin/npx --package=npm@10.8.2 -c 'cd packages/hardhat-core && npm run build && rm -rf node_modules && npm pack'
 mkdir /out && cp /src/packages/hardhat-core/hardhat-2.23.0.tgz /out/
EOF
WORKDIR "/src"
ENTRYPOINT ["/bin/sh","/build"]