Skip to content

bun: 1.3.13 -> 1.4.2 with resolution of downstream package failures - #556047

Merged
adamcstephens merged 6 commits into
NixOS:masterfrom
hesprs:bun-1.4-update
Sep 12, 2026
Merged

adamcstephens merged 6 commits into
NixOS:masterfrom
hesprs:bun-1.4-update

Conversation

@hesprs

@hesprs hesprs commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Updates Bun to 1.4.2:

Downstream failures resolved:

  • kilo: has been broken since July: Build failure: kilo #542516; failure unrelated with Bun update; original maintainer is unresponsive; marked as broken
  • cyberstrike: original maintainers have only tested on x86_64-linux throughout its lifetime; breaks on all other platforms in practice; unrelated with Bun update; limited platform to x86_64-linux only
  • anytype: Bun update changes node_modules installation to default to pnpm-style isolated linker, which changes node_modules shape and causes its FOD hash mismatch. This is a development-time behavioral change that doesn't impact building or runtime. Hash can be safely updated.
  • zerobyte: same as anytype.
  • omp: same as anytype

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking. (not major)
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module. (not applicable)
    • Module update: when the change is significant. (not applicable)
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.
  • Follows the automation/AI policy.

@nixpkgs-ci nixpkgs-ci Bot added the 12.first-time contribution This PR is the author's first one; please be gentle! label Aug 24, 2026
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Aug 24, 2026
@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (b0ab82d)

Command: nixpkgs-review pr 556047
Commit: d2f0dc92a749f6a279924d6f427fbaee54f139cc (subsequent changes)
Merge: 9beca6ffa3e1ad1c5c7c58b54752a867fddf4951

Triggered by @hesprs (190185753)
Logs: https://github.com/hesprs/nixpkgs-review-gha/actions/runs/32728186879/attempts/1


x86_64-linux

✅ 37 packages built:
  • anytype
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • context-mode
  • convertx
  • cyberstrike
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill

@hesprs
hesprs marked this pull request as ready for review August 24, 2026 16:00
@hesprs

hesprs commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

x86_64-linux succeeded with no failure. I'm running the same tests on aarch64-linux and aarch64-darwin: https://github.com/hesprs/nixpkgs-review-gha/actions/runs/32749399477.

@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (b0ab82d)

Command: nixpkgs-review pr 556047
Commit: d2f0dc92a749f6a279924d6f427fbaee54f139cc (subsequent changes)
Merge: 9beca6ffa3e1ad1c5c7c58b54752a867fddf4951

Triggered by @hesprs (190185753)
Logs: https://github.com/hesprs/nixpkgs-review-gha/actions/runs/32749399477/attempts/1


aarch64-linux

✅ 36 packages built:
  • anytype
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • context-mode
  • convertx
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill

aarch64-darwin (sandbox = relaxed)

✅ 28 packages built:
  • atuin-desktop
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • context-mode
  • duplicati
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • gowebly
  • handy
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • swagger-typescript-api
  • vimPlugins.kulala-nvim

@hesprs

hesprs commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

All platforms pass, let's merge.

@Eliot00 Eliot00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 25, 2026
@nix-julia

Copy link
Copy Markdown
Contributor

How about using #555390 for the build method?

@hesprs

hesprs commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor Author

How about using #555390 for the build method?

Compiling from source is unnecessary. Both methods finally lead to the same downstream failures if we don't resolve them. And that method alone introduced thousands of lines of complex Python script, JSON dependency locking, and ugly source patching that can break anytime.

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 26, 2026
@06kellyjac 06kellyjac mentioned this pull request Aug 26, 2026
3 of 13 tasks
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 28, 2026
@nixpkgs-review-gha

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (07e0eb6)

Command: nixpkgs-review pr 556047
Commit: 3076760e14db39717b90f6458a5d6bcf52eba178 (subsequent changes)
Merge: fd6a279d2f86baca4b4fc0a288abe33d75d621b6

Triggered by @hesprs (190185753)
Logs: https://github.com/hesprs/nixpkgs-review-gha/actions/runs/34637967358/attempts/1


aarch64-linux

❌ 1 package failed to build:
  • omp
✅ 37 packages built:
  • anytype
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • context-mode
  • convertx
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill
  • zerobyte

@adamcstephens

Copy link
Copy Markdown
Contributor

Feel free to include an omp fix as needed. This is a newly merged package, hence why it is a new failure.

Restrict package to `x86_64-linux`: original maintainers have only tested on `x86_64-linux`. It breaks on `aarch64-linux` and `aarch64-darwin` in practice, blocking upstream package updates.
Bun 1.4 defaults to isolated linker (pnpm-style) `node_modules` installation, which changes the `node_modules` shape and causes hash mismatch. This change is harmless and doesn't impact building or runtime. Updated `node_modules` FOD hash to match Bun 1.4 installation.
Kilo package has been broken on all platforms for over a month: NixOS#542516. Maintainer is irresponsive, mark broken to prevent blocking upstream updates.
Bun 1.4 defaults to isolated linker (pnpm-style) `node_modules` installation, which changes the `node_modules` shape and causes hash mismatch. This change is harmless and doesn't impact building or runtime. Updated `node_modules` FOD hash to match Bun 1.4 installation.
Bun 1.4 defaults to isolated linker (pnpm-style) `node_modules` installation, which changes the `node_modules` shape and causes hash mismatch. This change is harmless and doesn't impact building or runtime. Updated `node_modules` FOD hash to match Bun 1.4 installation.
@hesprs

hesprs commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

omp failure is the same as anytype and zerobyte. Fix comitted in 18fd613.

@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (07e0eb6)

Command: nixpkgs-review pr 556047
Commit: 18fd6131f0b01e71defb86a14032d99ee3a8e1e6 (subsequent changes)
Merge: 44068ae5f9f417b1a290789565025ac71f83713f

Triggered by @hesprs (190185753)
Logs: https://github.com/hesprs/nixpkgs-review-gha/actions/runs/34667406973/attempts/1


aarch64-linux

✅ 38 packages built:
  • anytype
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • context-mode
  • convertx
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • omp
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill
  • zerobyte

@adamcstephens
adamcstephens added this pull request to the merge queue Sep 12, 2026
@pbek-bot

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (85fc054)

Command: nixpkgs-review pr 556047
Commit: 18fd6131f0b01e71defb86a14032d99ee3a8e1e6 (subsequent changes)
Merge: 44068ae5f9f417b1a290789565025ac71f83713f

Logs: https://github.com/pbek/nixpkgs-review-gha/actions/runs/34693401907/attempts/1


x86_64-linux

✅ 39 packages built:
  • anytype
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • context-mode
  • convertx
  • cyberstrike
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • omp
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill
  • zerobyte

aarch64-linux

✅ 38 packages built:
  • anytype
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • context-mode
  • convertx
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • omp
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill
  • zerobyte

x86_64-darwin

✅ No rebuilds


aarch64-darwin (sandbox = relaxed)

❌ 2 packages failed to build:
  • handy
  • omp
✅ 27 packages built:
  • atuin-desktop
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • context-mode
  • duplicati
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • gowebly
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • swagger-typescript-api
  • vimPlugins.kulala-nvim

@Malix-Labs

Malix-Labs commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

aarch64-darwin omp and handy failed to build, i'll handle omp but i'm not sure it's related to this PR yet since it's very fresh, i'll run another independant nixpkgs-review, no blocker

Merged via the queue into NixOS:master with commit 0feb034 Sep 12, 2026
27 checks passed
@Malix-Labs Malix-Labs mentioned this pull request Sep 12, 2026
7 of 13 tasks
@hesprs
hesprs deleted the bun-1.4-update branch September 13, 2026 00:42
@hesprs

hesprs commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Handy failure is unrelated with Bun bump. PR #556911 introduced tests to handy that will always fail on Darwin with sandbox enabled or relaxed; and that PR did not check whether handy builds on Darwin before merge. Opened issue #562736.

@ShadowRZ ShadowRZ mentioned this pull request Sep 13, 2026
5 of 13 tasks
difro added a commit to difro/dotfiles that referenced this pull request Sep 14, 2026
nixpkgs bumped bun from 1.3.13 to 1.4.2 (NixOS/nixpkgs#556047), which
rebuilt opencode 1.18.30 into a binary where every prompt fails in
SystemPrompt.environment with `TypeError: undefined is not an object
(evaluating 'a.name')`. opencode 1.18.30 has a circular import that
lets a layer node capture an undefined dependency (opencode#48819),
and bun 1.4's bundler evaluates those modules in the order that trips
it while bun 1.3.13 does not. The upstream 1.18.30 release is broken
the same way (opencode#48803), so drop this once opencode fixes the
cycle rather than when nixpkgs moves on.

Pin nixpkgs-bun to the rev that still carried bun 1.3.13 and use it
for opencode only. The node_modules FOD hash matches across both bun
versions, so only opencode itself rebuilds.
@hesprs hesprs mentioned this pull request Oct 25, 2026
5 of 13 tasks
@xmnlz xmnlz mentioned this pull request Oct 31, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 3+ This PR was reviewed and approved by three or more persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.