Open RodrigoTomeES opened 11 months ago
Would be very nice (and very Bun-like!) to have it built-in. Every "version manager" I have worked with for other languages is complete hell.
Something as simple as:
BUN_VERSION=0.7.0 bun
or bun --version=0.7.0
And bun --version
would print the location of the exe, and why it's being used...e.g. because ENV var is set in shell.
FYI, there is proto for this which is more up to date than bvm
. In pnpm
for node we have the pnpm env use --global lts
syntax
FYI, there is proto for this which is more up to date than
bvm
. Inpnpm
for node we have thepnpm env use --global lts
syntaxSupported languages
- Bun
- Deno
- Go
- Node.js (and npm, pnpm, yarn)
- Rust
- ... and more via plugins!
I would rather learn 1 API/tool for many of the things I want to run, vs 7 different tools.
I would rather learn 1 API/tool for many of the things I want to run, vs 7 different tools.
If proto is maintained that's fine, but it may be in a tool's best interest to maintain a solution on their own.
there is asdf plugin for bun https://github.com/asdf-vm/asdf https://github.com/cometkim/asdf-bun
I second that this would be a killer feature if it did the following:
.bunrc
fileuse
s the right version similar to nvm
's Deeper Shell Integration.default
bun version for shells without .bunrc
file.stable
or lts
.nvm
, if one already had node
installed, it was a giant pain to clean up the pre-existing node version and avoid conflicts with nvm
. It would be great if opting in to bvm
automatically avoids conflicts with installed versions of bun.If other runtimes did this, there would be no need for 3rd party tools like asdf
or proto
.
FYI, there is proto for this which is more up to date than
bvm
. Inpnpm
for node we have thepnpm env use --global lts
syntax
Has anyone got this to work behind a corp proxy?
$ proto install go 1.20
Error: plugin::http
× Failed to make HTTP request.
├─▶ error sending request for url (https://github.com/moonrepo/go-plugin/releases/latest/download/go_plugin.wasm): error trying to connect: invalid peer certificate: UnknownIssuer
FYI, there is proto for this which is more up to date than
bvm
. Inpnpm
for node we have thepnpm env use --global lts
syntaxHas anyone got this to work behind a corp proxy?
$ proto install go 1.20 Error: plugin::http × Failed to make HTTP request. ├─▶ error sending request for url (https://github.com/moonrepo/go-plugin/releases/latest/download/go_plugin.wasm): error trying to connect: invalid peer certificate: UnknownIssuer
I would recommend posting in that repo and not here :)
What about specifying the bun version in bunfig.toml?
While bunfig.toml seems like a totally valid place to specify the version, I'd argue it should be specified under package.json
's engines
attribute, which is already built for this kind of purpose.
What is the problem this feature would solve?
It would be amazing to have a BVM like NVM for node. This utility will solve the same problems that NVM.
What is the feature you are proposing to solve the problem?
A version manager for bun, designed to be installed per-user, and invoked per-shell. This will solve the problem of switching between versions of Bun.
What alternatives have you considered?
I saw this repo https://github.com/swz-git/bvm but it is outdated