vfilanovsky-openai
16435f3561
Make sure bun can be installed on Alpine Linux (musl) on arm64 hardware ( #22892 )
...
### What does this PR do?
This PRs adjusts the "arch" string for Linux-musl variant to make sure
it can be installed on ARM64 platforms using `npm`. Without this fix,
installing bun on Alpine Linux on arm64 fails because the native binary
cannot be found.
#### Why it fails
Bun attempts to find/download the native binaries during the postinstall
phase (see
[install.ts](https://github.com/oven-sh/bun/blob/bun-v1.1.42/packages/bun-release/src/npm/install.ts )).
The platform matching logic lives in
[platform.ts](https://github.com/oven-sh/bun/blob/bun-v1.1.42/packages/bun-release/src/platform.ts ).
Note how the "musl" variant is marked [as
"aarch64"](https://github.com/oven-sh/bun/blob/bun-v1.1.42/packages/bun-release/src/platform.ts#L63-L69 ),
while the regular "glibc" variant is marked [as
"arm64"](https://github.com/oven-sh/bun/blob/bun-v1.1.42/packages/bun-release/src/platform.ts#L44-L49 ).
On Alpine Linux distributions (or when using "node-alpine" docker image)
we're supposed to be using the "musl" binary. However, since bun marks
it as "aarch64" while the matching logic relies on `process.arch`, it
never gets matched. Node.js uses "arm64", _not_ "aarch64" (see
["process.arch"
docs](https://nodejs.org/docs/latest-v22.x/api/process.html#processarch )).
In short - a mismatch between the expected arch ("aarch64") and the
actual reported arch ("arm64") prevents bun from finding the right
binary when installing with npm/pnpm.
### How did you verify your code works?
Verified by running the installer on Alpine Linux on arm64.
cc @magus
2025-09-23 20:14:57 -07:00
Jarred Sumner
55a9cccac0
bun.sh -> bun.com ( #20909 )
2025-07-10 00:10:43 -07:00
Michael H
b9e72d0d2e
Make bunx work with npm i -g bun on windows ( #20471 )
2025-06-18 12:00:16 -07:00
Jarred Sumner
3f360b0682
chore: format packages/scripts folder ( #19611 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-05-12 17:12:17 -07:00
Meghan Denny
93a89e5866
meta: update bun.locks with bun 1.2 ( #16867 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-01-29 01:47:43 -08:00
Dylan Conway
7410da9c71
fix(install): bun.lockb -> bun.lock with incorrect optional peer dependencies ( #16743 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-01-26 04:29:54 -08:00
Meghan Denny
5971406183
meta: migrate bun to the text lockfile ( #16462 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-01-17 22:37:26 +00:00
Ashcon Partovi
b4dce96c40
ci: Publish musl releases to npm
2024-12-04 10:19:15 -08:00
Jarred Sumner
7a190de2f1
Fix upload-s3.ts script
2024-09-20 21:34:50 -07:00
Jarred Sumner
2b1a10629b
Update upload-npm.ts
2024-08-24 01:22:33 -07:00
huseeiin
8a3f882ef7
Update README.md ( #12512 )
2024-07-11 07:24:13 -07:00
dave caruso
6e0f58bc05
fix(ci): make it so ci doesnt overwrite the release builds with canary's debug symbols ( #11769 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-06-11 13:35:29 -07:00
dave caruso
00472fbb1c
fix release script
2024-06-01 01:29:11 -07:00
dave caruso
f3e974102d
ci: upload extra data for crash handler
2024-05-22 14:05:42 -07:00
dave caruso
9ba7d420d5
chore: upload release artifacts by hash so bun.report can remap them ( #10819 )
2024-05-04 20:34:59 -07:00
liudonghua
51bb5f3a04
Update platform.ts to fix isWindowsAVX2 implementation. ( #10313 )
...
The isWindowsAVX2 function is not working as expected due to the stdout endwith `\r\n`. So the simple `stdout == "True"` will never true.
2024-04-17 00:26:57 -07:00
dave caruso
0cdad4bebb
fix(bun-release): support windows in npm package ( #9873 )
...
* fix npm install on windows
* try again
* again
* copy less file
* revert changes
* remove package.json from git
* okay
* now?
2024-04-03 23:16:48 -07:00
Ashcon Partovi
1edacc6e49
Prepare npm i -g bun for Windows
2024-04-01 18:00:16 +09:00
Ashcon Partovi
cc4479096a
Update lockfiles
2024-03-20 09:16:01 -07:00
Jarred Sumner
e3188c918a
use Biome to format Bun's codebase instead of Prettier ( #8494 )
...
* Ignore
* Create biome.json
* Ignore
* biome
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-25 19:15:26 -08:00
Ashcon Partovi
1480889205
Improved support for debug-adapter-protocol ( #4186 )
...
* Improve support for \`debug-adapter-protocol\`
* More improvements, fix formatting in debug console
* Fix attaching
* Prepare for source maps
* Start of source map support, breakpoints work
* Source map support
* add some package.jsons
* wip
* Update package.json
* More fixes
* Make source maps safer if exception occurs
* Check bun version if it fails
* Fix console.log formatting
* Fix source maps partly
* More source map fixes
* Prepare for extension
* watch mode with dap
* Improve preview code
* Prepare for extension 2
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-24 22:53:34 -07:00
Ashcon Partovi
c0c5f07218
Fix trailing slash bug in upload script
2023-04-07 16:05:47 -07:00
Ashcon Partovi
bed56ab406
Upload releases to S3
2023-04-07 15:38:38 -07:00
Alex Lam S.L
7285b9cf75
update bun.lockbs ( #2101 )
2023-02-17 22:07:02 -08:00
Ashcon Partovi
10600c4abd
Use GitHub action SDK
2023-02-03 11:18:44 -08:00
Ashcon Partovi
69ee87d8e2
Add script to calculate semver for release
2023-02-01 14:53:57 -08:00
Ashcon Partovi
9c27b5d17f
Fix getting SHA for canary
2023-02-01 10:56:08 -08:00
Ashcon Partovi
9973df028b
Fix missing dependency from release script
2023-02-01 10:44:19 -08:00
Ashcon Partovi
73d6c888b9
Add bun-release package
2023-02-01 10:28:01 -08:00