Skip to content

Asdf assuming that ruby version is installed while it's not #448

@jrodriigues

Description

@jrodriigues

I am getting this output after changing the ruby version directly on .tool-versions to 3.2.8 and attempting to install it:

❯ cat .tool-versions | grep ruby
ruby 3.2.8

❯ asdf info
OS:
Darwin mac.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122 arm64

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

BASH VERSION:
3.2.57(1)-release

ASDF VERSION:
v0.16.3

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:
golang    https://github.com/asdf-community/asdf-golang.git e2527a31714da7bc671a684308579f4ef8863281
just      https://github.com/olofvndrhr/asdf-just.git       3f907ee4ca331e5caf9768b33137fcf9f752f8f1
nodejs    https://github.com/asdf-vm/asdf-nodejs.git        93bd217ba74f05080eebb7d8e1c146a385b01d7f
python    https://github.com/danhper/asdf-python.git        a3a01856098d6d2b9642e382f5b38e70275726d1
ruby      https://github.com/asdf-vm/asdf-ruby.git          2ee0bdf918cb22feda32f421a58edf3ca868f290
rust      https://github.com/code-lever/asdf-rust.git       95acf4fe65df1de74fca502482b8f3ac5af73c05

❯ asdf install ruby 3.2.8
version 3.2.8 of ruby is already installed

❯ ruby -v
No version is set for command ruby
Consider adding one of the following versions in your config file at /Users/me/another/repo/.tool-versions
ruby 3.3.4ruby 3.2.7ruby 3.2.6%

❯ asdf current
Name            Version         Source                                               Installed
golang          1.24.0          /Users/me/.tool-versions                             true
just            1.39.0          /Users/me/.tool-versions                             true
nodejs          20.19.0         /Users/me/.tool-versions                             true
python          3.13.1          /Users/me/.tool-versions                             true
ruby            3.2.8           /Users/me/another/repo/.tool-versions                true
rust            1.84.1          /Users/me/.tool-versions                             true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions