Skip to content

Commit feb4fcd

Browse files
authored
Fix bun runtime by downgrading to 1.1.24 (#1409)
* pin bun to 1.1.24 and use slim image * add changeset * add warning about bun version to docs
1 parent a6de3f0 commit feb4fcd

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/wicked-paws-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Fix an IPC bug when using bun by pinning to an older version.

docs/guides/frameworks/bun.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import Prerequisites from "/snippets/framework-prerequisites.mdx";
99
import CliRunTestStep from "/snippets/step-run-test.mdx";
1010
import CliViewRunStep from "/snippets/step-view-run.mdx";
1111

12+
<Warning>A specific Bun version is currently required for the dev command to work. This is due to a [bug](https://github.com/oven-sh/bun/issues/13799) with IPC. Please use Bun version 1.1.24 or lower: `curl -fsSL https://bun.sh/install | bash -s -- bun-v1.1.24`</Warning>
13+
1214
We now have experimental support for Bun. This guide will show you have to setup Trigger.dev in your existing Bun project, test an example task, and view the run.
1315

1416
<Warn>

packages/cli-v3/src/deploy/buildImage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ async function generateBunContainerfile(options: GenerateContainerfileOptions) {
464464
);
465465

466466
return `# syntax=docker/dockerfile:1
467-
FROM imbios/bun-node:22-debian AS base
467+
FROM imbios/bun-node:1.1.24-22-slim@sha256:9cfb7cd87529261c482fe17d8894c0986263f3a5ccf84ad65c00ec0e1ed539c6 AS base
468468
469469
${baseInstructions}
470470

0 commit comments

Comments
 (0)