Attempt Details

Package: npm:zod 3.22.4

Artifact: zod-3.22.4.tgz

Status: Failed

Run ID: 2025-04-28T15:39:51Z

Started: 2025-04-28 15:55:55

Created: 2025-04-28 16:03:37

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

Duration: 7m42s

Logs: View in Cloud Storage

Strategy

{
  "npm_custom_build": {
    "repo": "https://github.com/colinhacks/zod",
    "ref": "e7a9b9b3033991be6b4225f1be21da39c250bbb0",
    "dir": ".",
    "npm_version": "8.19.4",
    "node_version": "16.20.2",
    "command": "build",
    "registry_time": "2023-10-04T21:53:36.013Z"
  }
}

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/colinhacks/zod .
 git checkout --force 'e7a9b9b3033991be6b4225f1be21da39c250bbb0'
 wget -O - https://unofficial-builds.nodejs.org/download/release/v16.20.2/node-v16.20.2-linux-x64-musl.tar.gz | tar xzf - --strip-components=1 -C /usr/local/
 /usr/local/bin/npx --package=npm@8.19.4 -c 'npm_config_registry=http://npm:2023-10-04T21:53:36Z@localhost:8080 npm install --force'
EOF
RUN cat <<'EOF' >/build
 set -eux
 /usr/local/bin/npx --package=npm@8.19.4 -c 'npm run build && rm -rf node_modules && npm pack'
 mkdir /out && cp /src/zod-3.22.4.tgz /out/
EOF
WORKDIR "/src"
ENTRYPOINT ["/bin/sh","/build"]