oven-sh/bun · error

Could not find .zip from Buildkite

Error message

Could not find ${target}.zip from Buildkite: ${releasePath}

What it means

Thrown after the retry loop waiting for Buildkite to publish the release artifact: no file matching bun*.zip was found in the release path. The artifact was never uploaded, was cleaned up, or the release path is wrong.

Solutions

  1. Verify the build step for the target actually uploaded a bun zip artifact
  2. Wait for/retry the job if the artifact upload was delayed
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at scripts/runner.node.mjs:2771 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/cb7b5413d015f04b. Report an issue: GitHub.

Appendix: source

Thrown at scripts/runner.node.mjs:2771

      );
    }

    zipPath = readdirSync(releasePath, { recursive: true, encoding: "utf-8" })
      .filter(filename => /^bun.*\.zip$/i.test(filename))
      .map(filename => join(releasePath, filename))
      .sort((a, b) => b.includes("profile") - a.includes("profile"))
      .at(0);

    if (zipPath) {
      break downloadLoop;
    }

    console.warn(`Waiting for ${target}.zip to be available...`);
    await new Promise(resolve => setTimeout(resolve, i * 1000));
  }

  if (!zipPath) {
    throw new Error(`Could not find ${target}.zip from Buildkite: ${releasePath}`);
  }

  await unzip(zipPath, releasePath);

  const releaseFiles = readdirSync(releasePath, { recursive: true, encoding: "utf-8" });
  for (const entry of releaseFiles) {
    const execPath = join(releasePath, entry);
    if (/bun(?:-[a-z]+)?(?:\.exe)?$/i.test(entry) && statSync(execPath).isFile()) {
      return execPath;
    }
  }

  console.warn(`Found ${releaseFiles.length} files in ${releasePath}:`, releaseFiles);
  throw new Error(`Could not find executable from BuildKite: ${releasePath}`);
}

/**
 * @param {string} execPath

View on GitHub (pinned to 8c5296ac45)