asdf-ruby icon indicating copy to clipboard operation
asdf-ruby copied to clipboard

Ruby 3.4.4 not being found

Open wrburgess opened this issue 6 months ago • 7 comments

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

wrburgess avatar May 15 '25 17:05 wrburgess

https://github.com/rbenv/ruby-build/issues/2535

Edit: A workaround is to fork asdf-ruby and ruby-build to add the updates yourself.

skull-squadron avatar May 15 '25 23:05 skull-squadron

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

stako avatar May 16 '25 00:05 stako

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.

jasonkarns avatar May 16 '25 01:05 jasonkarns

Ruby 3.4.4 has been released in ruby-build repo : https://github.com/rbenv/ruby-build/issues/2535#issuecomment-2886708258

n-rodriguez avatar May 16 '25 13:05 n-rodriguez

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

kakikubo avatar May 17 '25 22:05 kakikubo

Related: https://github.com/asdf-vm/asdf-ruby/issues/447

MatheusRich avatar May 21 '25 21:05 MatheusRich

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

jasonkarns avatar May 22 '25 14:05 jasonkarns

same issue with 3.4.5, had to follow @kakikubo's instructions.

bjliu avatar Jul 28 '25 19:07 bjliu

same issue with 3.4.5, had to follow @kakikubo's instructions.

did you try this : asdf plugin update --all ?

n-rodriguez avatar Jul 28 '25 22:07 n-rodriguez

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

Virus-X avatar Sep 05 '25 11:09 Virus-X

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

michaeldhopkins avatar Sep 10 '25 15:09 michaeldhopkins

Still missing v3.4.7.

aep-sunlife avatar Oct 08 '25 22:10 aep-sunlife

I just moved to mise instead. Not the solution to this problem, the migration is pretty easy.

MatheusRich avatar Oct 09 '25 00:10 MatheusRich

I moved, as well. I liked asdf over the years, but I can't fool around with waiting on ruby upgrades like this anymore.

wrburgess avatar Oct 10 '25 18:10 wrburgess

The solution referenced above worked for 3.4.7:

ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.4.7

louis-antonopoulos avatar Oct 16 '25 21:10 louis-antonopoulos