oven-sh/bun · error

no build-url given

Error message

no build-url given

What it means

Error "no build-url given" thrown in oven-sh/bun.

Source

Thrown at scripts/debug-coredump.ts:24

// usage: bun debug-coredump.ts
// -p <PID of the test that crashed> (buildkite should show this)
// -b <URL to the bun-profile.zip artifact for the appropriate platform>
// -c <URL to the bun-cores.tar.gz.age artifact for the appropriate platform>
// -d <debugger> (default: lldb)
const {
  values: { pid: stringPid, ["build-url"]: buildUrl, ["cores-url"]: coresUrl, debugger: debuggerPath },
} = parseArgs({
  options: {
    pid: { type: "string", short: "p" },
    ["build-url"]: { type: "string", short: "b" },
    ["cores-url"]: { type: "string", short: "c" },
    debugger: { type: "string", short: "d", default: "lldb" },
  },
});

if (stringPid === undefined) throw new Error("no PID given");
const pid = parseInt(stringPid);
if (buildUrl === undefined) throw new Error("no build-url given");
if (coresUrl === undefined) throw new Error("no cores-url given");
if (!process.env.AGE_CORES_IDENTITY?.startsWith("AGE-SECRET-KEY-"))
  throw new Error("no identity given in $AGE_CORES_IDENTITY");

const id = Bun.hash(buildUrl + coresUrl).toString(36);
const dir = join(tmpdir(), `debug-coredump-${id}.tmp`);
fs.mkdirSync(dir, { recursive: true });

if (!fs.existsSync(join(dir, "bun-profile")) || !fs.existsSync(join(dir, `bun-${pid}.core`))) {
  console.log("downloading bun-profile.zip");
  const zip = await (await fetch(buildUrl)).arrayBuffer();
  await Bun.write(join(dir, "bun-profile.zip"), zip);
  // -j: junk paths (don't create directories when extracting)
  // -o: overwrite without prompting
  // -d: extract to this directory instead of cwd
  await Bun.$`unzip -j -o ${join(dir, "bun-profile.zip")} -d ${dir}`;

  console.log("downloading cores");

View on GitHub (pinned to 8c5296ac45)

When it happens

Trigger: Thrown at scripts/debug-coredump.ts:24 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/e1219d792e78be9e. Report an issue: GitHub.