Catalogue
When asdf can't find the latest Ruby version

When asdf can't find the latest Ruby version

🌐 日本語で読む

This is a note about what to do when the Ruby version you want isn’t in asdf’s list.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ asdf list all ruby

...
3.1.0
3.1.1
3.1.2
3.1.3
3.2.0-dev
3.2.0-preview1
3.2.0-preview2
3.2.0-preview3
3.2.0-rc1
3.2.0
3.3.0-dev
...

I wanted to use 3.3.0 or later, but it doesn’t show up 💦

Fix: update the asdf ruby plugin

Following asdf-ruby - Use,
update the plugin.

1
2
3
4
5
6
7
8
$ asdf plugin-update ruby

Updating ruby to master
From https://github.com/asdf-vm/asdf-ruby
16bc8ac..d6eb414 master -> master
16bc8ac..d6eb414 master -> origin/master
Already on 'master'
Your branch is up to date with 'origin/master'.

List the versions again

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ asdf list all ruby

...
3.3.0-rc1
3.3.0
3.3-dev
3.3.1
3.3.2
3.3.3
3.3.4
3.3.5
3.4.0-preview1
3.4-dev
...

It installed without any trouble.

1
$ asdf install ruby 3.3.5

That’s it.
I hope this helps.

When asdf can't find the latest Ruby version

https://kenzo0107.github.io/en/2024/09/03/asdf-plugin-update-ruby/

Author

Kenzo Tanaka

Posted on

2024-09-03

Licensed under