Cloudflare DevelopersCD
Cloudflare Developers2y ago
6 replies
Jacob

Bun failing builds

I want to use bun to run my cloudflare builds however it fails every time and not sure why, this is my stack trace:
12:05:01.271    Cloning repository...
12:05:01.953    From https://github.com/jacobsamo/website
12:05:01.954     * branch            e783baa52cc0afe5427458b8a143b9beb00a07f4 -> FETCH_HEAD
12:05:01.954    
12:05:01.991    HEAD is now at e783baa set package manager in package.json
12:05:01.992    
12:05:02.085    
12:05:02.085    Using v2 root directory strategy
12:05:02.115    Success: Finished cloning repository files
12:05:07.642    Checking for configuration in a wrangler.toml configuration file (BETA)
12:05:07.643    
12:05:07.643    Found wrangler.toml file. Reading build configuration...
12:05:07.649    pages_build_output_dir: dist
12:05:07.649    Build environment variables: (none found)
12:05:07.764    Successfully read wrangler.toml file.
12:05:07.922    Detected the following tools from environment: bun@1.1.22, nodejs@18.17.1
12:05:07.923    Installing bun 1.1.22
12:05:08.071    Downloading Bun v1.1.22...
12:05:08.279    curl: (22) The requested URL returned error: 404
12:05:08.283    Fail: Couldn't download the Bun binary from https://github.com/oven-sh/bun/releases/download/bun-v1.1.22/bun-linux-x64.zip
12:05:08.289    Fail: Failed to download Bun v1.1.22
12:05:08.300    Error: Exit with error code: 1
12:05:08.301        at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
12:05:08.301        at Object.onceWrapper (node:events:652:26)
12:05:08.301        at ChildProcess.emit (node:events:537:28)
12:05:08.301        at ChildProcess._handle.onexit (node:internal/child_process:291:12)
12:05:08.311    Failed: build command exited with code: 1
12:05:09.461    Failed: error occurred while running build command


I have removed the bun.lockb and added to .gitignore beacuse that too was failing now it is set through package.json with this line: "packageManager": "bun@1.1.22" not sure how to fix this
Was this page helpful?