Nothing here yet...
cometkim / asdf-bun Goto Github PK
View Code? Open in Web Editor NEWasdf-vm plugin for installing Bun
License: MIT License
asdf-vm plugin for installing Bun
License: MIT License
Nothing here yet...
bun install --yarn
fish: Job 1, 'bun install --yarn' terminated by signal SIGILL (illegal instruction)
bun create, bun install, all the commands I'm trying result in this. I was only able to print the version with bun -v
I'm using Arch
Linux kernel 5.19
Terminal kitty with fish shell (I tried bash too)
Bun plugin installed in 0.1.10
Obs: I installed bun without using the asdf plugin and it worked as expected.
If asdf install bun latest
is executed in a directory where the user has no write permissions (e.g. /
) the installation will fail with following error.
user@host /
❯ asdf install bun latest
mktemp: mkdtemp failed on asdf-bun.rWz6: Read-only file system
Downloading Bun v0.5.6...
curl: (23) Failure writing output to destination
Fail: Couldn't download the Bun binary from https://github.com/oven-sh/bun/releases/download/bun-v0.5.6/bun-darwin-aarch64.zip
Fail: Failed to download Bun v0.5.6
This is due to the fact the mktemp
tried to crate a temporary directory in /
. Maybe the command should enforce creating that directoy in /temp
.
...
Environment: macBook Pro M1, macOS 13.2, fish shell 3.6.0
I have installed this plugin to manage bun
. Right after installing this plugin, I executed the following command and please check the snap for details.
asdf list all bun
Here are other relevant informations
Output of asdf info
OS:
Darwin Nurs-MacBook-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Fri Sep 15 16:17:23 PDT 2023; root:xnu-8020.240.18.703.5~1/RELEASE_X86_64 x86_64
SHELL:
zsh 5.8.1 (x86_64-apple-darwin21.0)
BASH VERSION:
5.2.15(1)-release
ASDF VERSION:
v0.13.1-0586b37
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/nurrony/.asdf
ASDF_DIR=/Users/nurrony/.zi/plugins/asdf-vm---asdf
ASDF_CONFIG_FILE=/Users/nurrony/.asdfrc
ASDF INSTALLED PLUGINS:
bun https://github.com/cometkim/asdf-bun.git main 51d18b3
❯ asdf list all bun
Plugin bun's list-all callback script failed with output:
From the docs, bun install --global cowsay
should make cowsay
available. Instead I get fish: Unknown command: cowsay
, even after asdf reshim
and starting a new shell.
This is in fish shell 3.6.1
, kitty 0.30.1
and macOS 14.1
. The same error occurs in the default Terminal 2.14 (452)
, and in bash 5.2.15(1)-release (aarch64-apple-darwin22.1.0)
and zsh 5.9 (x86_64-apple-darwin23.0)
. Combinations of Terminal with bash & zsh also produce this error.
$ asdf install bun latest
Plugin bun's list-all callback script failed with output:
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
bun is already installed
The bash script you're using to compare semver versions doesn't seem to work properly with major version number differences (davidaurelio/shell-semver#2). So with version 1.0.0 out the version check at
Line 27 in fd84edd
Don't know how complicated you want to make it but https://github.com/Ariel-Rodriguez/sh-semversion-2 seems like a pretty solid alternative. Or maybe just check if bun x
exists?
Like how asdf-nodejs can automatically install a set of default packages right after installing node (ref), we should have the ability to specify default bun packages
[1] 40214 illegal hardware instruction bun -v
i tried a few versions, but ended up eventually just shifting back to direct bun install for short term
asdf list bun
*1.1.3
bun --version
Illegal instruction (core dumped)
The bun plugin is downloading the package: github.com/oven-sh/bun/releases/download/bun-vX.X.X/bun-linux-x64.zip
Official script has a if condition to download bun-linux-x64-baseline.zip package
if [[ $target = linux-x64 ]]; then
# If AVX2 isn't supported, use the -baseline build
if [[ $(cat /proc/cpuinfo | grep avx2) = '' ]]; then
target=linux-x64-baseline
fi
fi
Bun install script in lines 94-99: https://github.com/oven-sh/bun/blob/main/src/cli/install.sh
URI Result: https://github.com/oven-sh/bun/releases/download/bun-v1.1.3/bun-linux-x64-baseline.zip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.