fix: Skip bun version check for nix version#33166
Conversation
- Unfortunately bun 1.3.14 has a bug that causes many nix packages to break. It is unlikely to be corrected given the development trends of the project. So I suggest using a hack that is already used in nixpkgs to fix the opencode build Signed-off-by: ReStranger <restranger@disroot.org>
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate PRs Found1. PR #32827: fix: actually relax bun version requirement to allow running with nix
2. PR #28479: chore(nix): update bun to 1.3.14
The current PR #33166 seems to be an alternative approach to fixing the bun version issue for nix builds, particularly in relation to PR #32827. You may want to check if #32827 is still open or if it was rejected for a reason before proceeding. |
|
Unfortunately for me this PR was not working. When attempting to start Opencode, after a few seconds of loading I got a
according to glm-5.2 Did this work for you? |
Works correctly for me. Can you provide details about your opencode settings? |
To be honest, I can't find any use of 1.3.14-specific things in the code. If you know about these, you can add patches for compatibility |
|
If it's working for you I guess something else is wrong with my config, tbh that's quite possible 😄 Will investigate further in the coming days, but that shouldn't block this PR |
I asked a friend to check, it also works for him, so most likely this is really a problem on your side |
Signed-off-by: ReStranger <restranger@disroot.org> Co-authored-by: dbeley <6568955+dbeley@users.noreply.github.com>
Signed-off-by: ReStranger <restranger@disroot.org> Co-authored-by: dbeley <6568955+dbeley@users.noreply.github.com>
|
Hi @ReStranger, thanks for the fix. One issue: this only fixes the The PR adds the Bun version-check workaround in As a result, A fix would need to either move this workaround into a shared |
Unfortunately bun 1.3.14 has a bug that causes many nix packages to break(check out this for context: NixOS/nixpkgs#519796). It is unlikely to be corrected given the development trends of the project. So I suggest using a hack that is already used in nixpkgs to fix the opencode build
Issue for this PR
Closes #28389
Type of change
What does this PR do?
Unfortunately, most likely we will not see a fix in the upstream bun. Therefore, this seems to me to be the best way, which does not affect users of other package managers, unlike #28389. #28479 will also have to close.
IMHO, it seems to me that opencode should strive to untie itself from bun and allow the use of nodejs or deno for build. At the moment, bun rewritten in rust is quite unstable, I tried to compile opencode using bun-canary and encountered enough bugs to abandon it. Sorry for the moment of thoughts in PR
How did you verify your code works?
Checklist