GithubHelp home page GithubHelp logo

asdf-bun's Introduction

Nothing here yet...

asdf-bun's People

Contributors

aaaaninja avatar cometkim avatar ganta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asdf-bun's Issues

Bun commands are terminated by ``signal SIGILL (Illegal instruction)``

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.

Installation fails when executed in directory with no write permissions

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

listing all versions fails silently

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
snapshot-20231006111859@2x

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

Global install doesn't place commands in PATH

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.

Plugin bun's list-all callback script failed

$ 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

bunx does not get created with bun 1.0

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

if semver_compare "0.4.0" "$version"; then
now fails.

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?

Feature Request: Default bun packages

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

Error "Illegal instruction (core dumped)"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.