asdf-ruby
asdf-ruby copied to clipboard
Ruby 3.4.4 not being found
Newest ruby is 3.4.4
https://www.ruby-lang.org/en/news/2025/05/14/ruby-3-4-4-released/
asdf plugin update ruby
updated ruby to ref refs/heads/master
rubylist
...
3.4.0-preview1
3.4.0-preview2
3.4.0-rc1
3.4.0
3.4-dev
3.4.1
3.4.2
3.4.3
3.5.0-preview1
3.5-dev
https://github.com/rbenv/ruby-build/issues/2535
Edit: A workaround is to fork asdf-ruby and ruby-build to add the updates yourself.
The plugin hasn't updated its ruby-build version yet.
By default asdf-ruby uses a recent release of ruby-build, however instead you can choose your own branch/tag through the ASDF_RUBY_BUILD_VERSION variable:
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.4.4
https://github.com/rbenv/ruby-build/issues/2535
Edit: A workaround is to fork asdf-ruby and ruby-build to add the updates yourself.
Don't even need to fork. Ruby-build can load definition files from multiple locations. You can make the definition file yourself without even forking.
Ruby 3.4.4 has been released in ruby-build repo : https://github.com/rbenv/ruby-build/issues/2535#issuecomment-2886708258
This is how I was able to resolve the issue on my end:
% asdf plugin remove ruby
% asdf plugin add ruby
% asdf list all ruby | grep 3.4.4
3.4.4
I believe the same issue occurred before as well. https://github.com/asdf-vm/asdf-ruby/issues/442
Related: https://github.com/asdf-vm/asdf-ruby/issues/447
Adding some documentation to ruby-build for how to install a version of ruby that might not yet be bundled in ruby-build: https://github.com/rbenv/ruby-build/pull/2537
Might be worthwhile to document the following in asdf-ruby as well. (Even better, if asdf-ruby bundled its own directory that was prepended to RUBY_BUILD_DEFINITIONS, and allowed users to drop custom defs in there without mutating any variables. Wouldn't need to be exported if the var were set by asdf-ruby plugin prior to invoking ruby-build commands.)
# could be any directory, but would be best if bundled by asdf-ruby
export RUBY_BUILD_DEFINITIONS=/opt/asdf/share/ruby-build
# "custom" build definition in that shared location:
$ cat $RUBY_BUILD_DEFINITIONS/3.4.4
install_package "openssl-3.0.16" "https://github.com/openssl/openssl/releases/download/openssl-3.0.16/openssl-3.0.16.tar.gz#57e03c50feab5d31b152af2b764f10379aecd8ee92f16c985983ce4a99f7ef86" openssl --if needs_openssl:1.0.2-3.x.x
install_package "ruby-3.4.4" "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz#a0597bfdf312e010efd1effaa8d7f1d7833146fdc17950caa8158ffa3dcbfa85" enable_shared standard
$ asdf install ruby 3.4.4
same issue with 3.4.5, had to follow @kakikubo's instructions.
same issue with 3.4.5, had to follow @kakikubo's instructions.
did you try this : asdf plugin update --all ?
Same here, asdf plugin update --all did not help, however, the workaround mentioned in https://github.com/asdf-vm/asdf-ruby/issues/442
worked flawlessly, without the need of reinstalling anything:
cd ~/.asdf/plugins/ruby/
git reset .
git restore .
git pull
asdf plugin update ruby and asdf plugin update --all didn't work for me to resolve this issue for 3.4.5. Nor did Virus-X's clean git pull steps. I had to run kakikubo's
asdf plugin remove ruby
asdf plugin add ruby
Still missing v3.4.7.
I just moved to mise instead. Not the solution to this problem, the migration is pretty easy.
I moved, as well. I liked asdf over the years, but I can't fool around with waiting on ruby upgrades like this anymore.
The solution referenced above worked for 3.4.7:
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.4.7