asdf-vm / asdf-vm/asdf-ruby

Wrong cellar path

Open
#292 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
734
Forks
156
Avg merge
17h 6m
Merged PRs (30d)
1

Description

Noticed this behaviour with asdf and ruby gems recently.
I have had asdf installed for a while now. I use it for all my language versioning.

Recently after installing gems at a global level and after `asdf reshim` I found that the shim file created points to a wrong cellar. I manually updated and it started working. Not sure what I missed here or is it a genuine issue. If someone can direct on how I can gather data/steps I can dig into this further.

Output of `asdf info`
```
SHELL:
zsh 5.8.1 (x86_64-apple-darwin21.0)

ASDF VERSION:
v0.10.2

ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/usr/local/Cellar/asdf/0.10.2/libexec

ASDF INSTALLED PLUGINS:
elixir https://github.com/asdf-vm/asdf-elixir.git master 8d018f2
erlang https://github.com/asdf-vm/asdf-erlang.git master 98139db
flutter https://github.com/oae/asdf-flutter.git master d108efd
golang https://github.com/kennyp/asdf-golang.git master cc8bc47
java https://github.com/halcyon/asdf-java.git master 67a9c5a
kotlin https://github.com/asdf-community/asdf-kotlin.git master af9ab2c
nodejs https://github.com/asdf-vm/asdf-nodejs.git master f9957f3
python https://github.com/danhper/asdf-python.git master 57a4d72
ruby https://github.com/asdf-vm/asdf-ruby.git master 95bb530
rust https://github.com/code-lever/asdf-rust.git master 0c88f99
```

I installed the rufo gem and the shim file has content as below
```
❯ cat /Users/manuraj/.asdf/shims/rufo
#!/usr/bin/env bash
# asdf-plugin: ruby 3.0.3
# asdf-plugin: ruby 3.1.1
exec /usr/local/Cellar/asdf/0.9.0/libexec/bin/asdf exec "rufo" "$@"
```
The cellar path should be of version `0.10.2` in the info but `0.9.0` due to which I was not able to access rufo globally.
I manually changed and it is now
```
❯ cat /Users/manuraj/.asdf/shims/rufo
#!/usr/bin/env bash
# asdf-plugin: ruby 3.0.3
# asdf-plugin: ruby 3.1.1
exec /usr/local/Cellar/asdf/0.10.2/libexec/bin/asdf exec "rufo" "$@"
```

And `rufo` works now.

Apologies in advance for this vague issue, I really like to figure what went wrong but am not sure where to start.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.