oven-sh/bun · error
Could not find executable from BuildKite
Error message
Could not find executable from BuildKite: ${releasePath} What it means
After unzipping the downloaded artifact, no entry matching bun(-variant)?(.exe) was found in the release directory (the file list is printed as a warning); the artifact contents don't match expectations.
Solutions
- Inspect the printed file list to see what the zip actually contained
- Check the artifact was built for the correct platform/step
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at scripts/runner.node.mjs:2785 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/ac86994ddfdab5f3.
Report an issue: GitHub.
Appendix: source
Thrown at scripts/runner.node.mjs:2785
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
* @returns {string}
*/
function getRevision(execPath) {
try {
const { error, stdout } = spawnSync(execPath, ["--revision"], {
encoding: "utf-8",
timeout: spawnTimeout,
env: {
PATH: process.env.PATH,
BUN_DEBUG_QUIET_LOGS: 1,
},
});
if (error) {
throw error;View on GitHub (pinned to 8c5296ac45)