asdf-ruby: Recent ruby versions not available

Hi there 😃

I can’t find recent ruby versions even after asdf plugin ruby update.

Here is my asdf info output fyi. The commit hash match asdf-ruby’s last commit hash.

OS:
Darwin macbookpro-7.home 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64

SHELL:
zsh 5.9 (arm64-apple-darwin24.0)

BASH VERSION:
5.2.32(1)-release

ASDF VERSION:
0.16.6

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/me/.asdf
ASDF_CONFIG_FILE=/Users/me/.asdfrc

ASDF INSTALLED PLUGINS:
bun       https://github.com/cometkim/asdf-bun.git             019058c3a9f408a06bab63a4a3782c555a8dde3c
elixir    https://github.com/asdf-vm/asdf-elixir.git           8a550dd1ad8e387733a7a961d50378451eb7289c
erlang    https://github.com/asdf-vm/asdf-erlang.git           5868e8a7a7b1f69be4aa14a76ed5a6c222d9114d
flutter   https://github.com/oae/asdf-flutter.git              bd28847e2b6b4012a461520dd6d7a56296f74e86
golang    https://github.com/kennyp/asdf-golang.git            e2527a31714da7bc671a684308579f4ef8863281
java      https://github.com/halcyon/asdf-java.git             1769504f7da531d481c66d0eb84da971325ea127
maven     git@github.com:Proemion/asdf-maven.git               e325ff9ce04a2602be7d2601ad86bbf2e1bc330a
nodejs    https://github.com/asdf-vm/asdf-nodejs.git           5515b8705fbf4d610ede04bb9a3fc4812e3a4168
php       https://github.com/asdf-community/asdf-php.git       52c669a77f08ec81caff47d560476d2ba1b176b9
pnpm      https://github.com/jonathanmorley/asdf-pnpm.git      0de43774f3f249b1ad2cb4bb1a6dc9374c7b143d
python    https://github.com/danhper/asdf-python.git           a3a01856098d6d2b9642e382f5b38e70275726d1
ruby      https://github.com/asdf-vm/asdf-ruby.git             c4c9674a7769dfe1cdadfcb40eddb3b15269ca22
rust      https://github.com/code-lever/asdf-rust.git          95acf4fe65df1de74fca502482b8f3ac5af73c05
terraform https://github.com/asdf-community/asdf-hashicorp.git 22eb1c4a16adcde39aaaf89fbb5d9404a1601fce
yarn      https://github.com/twuni/asdf-yarn.git               376c5407ef22c82fa56e4bd9f6a9108354063acb

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

I’m facing the same issue while running the latest plugin version with an outdated ruby-build in the plugin directory.

$ asdf info
[...]
ASDF INSTALLED PLUGINS:
ruby      https://github.com/asdf-vm/asdf-ruby.git       87eac3928dac8d4f7a972e32149b933099936584

$ ~/.asdf/plugins/ruby/ruby-build/bin/ruby-build --version
ruby-build 20240917

I solved it by removing the ruby plugin and reinstalling it.

# only remove ruby from the plugin directory, as 'asdf plugin remove ruby' would also delete all ruby installations
rm -rf ~/.asdf/plugins/ruby  

# reinstall it
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git 

Now the ruby-build is up to date and I can see the latest ruby versions.

I think this is similar to #447 and the workaround there allows to fix this issue too without re-installing the whole plugin (even though, it does work, indeed):

cd ~/.asdf/plugins/ruby/
git reset .
git restore .
git pull

After that, you should be able to run asdf plugin update ruby and it should update your Ruby list as usual.

thanks @maxharland it worked here as well 🚀

We are seeing the same issue with ruby 3.3.7. asdf info returns:

ruby      https://github.com/asdf-vm/asdf-ruby.git   87eac3928dac8d4f7a972e32149b933099936584

A coworker running version 3a1f574c51292cc84f4d8893d101078cba89f640 is able to get 3.3.7.