asdf-community / asdf-deno

Deno plugin for the asdf version manager
https://github.com/asdf-vm/asdf
Apache License 2.0
126 stars 17 forks source link

Support RC versions #45

Open alexgleason opened 2 weeks ago

alexgleason commented 2 weeks ago

Deno 2.0 has a release candidate: https://deno.com/blog/v2.0-release-candidate

I would like to use it with asdf today, but it doesn't seem possible to specify an rc version.

At first I though, meh, it's right around the corner, I should just wait. But it's been 2 weeks and they are taking their sweet time to get it right. It would be good to support rc versions anyway for the future.

thgaskell commented 2 weeks ago

I don't think they publish the release candidate binaries to GitHub, which may make it difficult.

However, they added support for deno upgrade rc in 1.46.0 https://github.com/denoland/deno/pull/25096.

So if you do want to test v2 now while still using asdf, you can install the latest version of deno:

asdf install deno latest

Set your shell to use the latest version (1.46.3 at the time of this comment):

asdf global deno 1.46.3

And then finally switch over to the release candidate channel:

deno upgrade rc
deno --version
# deno 2.0.0-rc.10 (release candidate, release, aarch64-apple-darwin)
# v8 12.9.202.13-rusty
# typescript 5.6.2

This essentially maps version 1.46.3 to 2.0.0-rc.10 in asdf.