Attempt Details

Package: npm:react-router 3.2.6

Artifact: react-router-3.2.6.tgz

Status: Failed

Run ID: 2025-12-05T00:26:00Z

Started: 2025-12-05 01:20:20

Created: 2025-12-05 01:28:13

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

Duration: 7m53s

Logs: View in Cloud Storage

Strategy

{
  "npm_custom_build": {
    "repo": "https://github.com/reacttraining/react-router",
    "ref": "850de933444d260bfc5460135d308f9d74b52c97",
    "dir": ".",
    "npm_version": "6.14.0",
    "node_version": "12.16.1",
    "command": "build",
    "registry_time": "2020-03-04T16:10:24.205Z",
    "prepack_remove_deps": true,
    "keep_root": true
  }
}

Full Message

executing rebuild: rpc error: code = FailedPrecondition desc = rebuild content mismatch

Dockerfile

#syntax=docker/dockerfile:1.10
FROM docker.io/library/alpine:3.19
RUN <<'EOF'
 set -eux
 wget https://storage.googleapis.com/google-rebuild-bootstrap-tools/v0.0.0-20250428204534-b35098b3c7b7/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/reacttraining/react-router .
 git checkout --force '850de933444d260bfc5460135d308f9d74b52c97'
 wget -O - https://unofficial-builds.nodejs.org/download/release/v12.16.1/node-v12.16.1-linux-x64-musl.tar.gz | tar xzf - --strip-components=1 -C /usr/local/
 /usr/local/bin/npx --package=npm@6.14.0 -c 'npm_config_registry=http://npm:2020-03-04T16:10:24Z@localhost:8080 npm install --force --no-audit'
EOF
RUN cat <<'EOF' >/build
 set -eux
 /usr/local/bin/npx --package=npm@6.14.0 -c 'npm config set unsafe-perm true && npm run build && rm -rf node_modules && npm pack'
 mkdir /out && cp /src/react-router-3.2.6.tgz /out/
EOF
WORKDIR "/src"
ENTRYPOINT ["/bin/sh","/build"]