Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory happend when I installed asdf by Homebrew #188

Closed
kackey0-1 opened this issue Sep 25, 2022 · 1 comment · Fixed by #202
Closed

No such file or directory happend when I installed asdf by Homebrew #188

kackey0-1 opened this issue Sep 25, 2022 · 1 comment · Fixed by #202

Comments

@kackey0-1
Copy link

Issue

No such file or directory happend when I installed asdf through brew

➜  java asdf install java corretto-17.0.4.9.1 
/Users/xxxxx/.asdf/plugins/java/bin/install: line 3: /Users/xxxxx/.asdf/lib/utils.bash: No such file or directory
##################################################################################################################################################################################################### 100.0%
amazon-corretto-17.0.4.9.1-macosx-aarch64.tar.gz
amazon-corretto-17.0.4.9.1-macosx-aarch64.tar.gz: OK
/Users/xxxxx/.asdf/plugins/java/bin/install: line 130: get_asdf_config_value: command not found

How to resolve

load utils.bash from where it located.

source "${ASDF_DIR:-$(dirname $(dirname $(cut $' ' -f 2 "$(which asdf)" | tail -n 1 | sed -e 's/"//g')))}/lib/utils.bash"
kackey0-1 added a commit to kackey0-1/asdf-java that referenced this issue Sep 25, 2022
@kackey0-1 kackey0-1 changed the title No such file or directory happend when I installed asdf through brew No such file or directory happend when I installed asdf through Homebrew Sep 25, 2022
@kackey0-1 kackey0-1 changed the title No such file or directory happend when I installed asdf through Homebrew No such file or directory happend when I installed asdf by Homebrew Sep 25, 2022
@jdx
Copy link

jdx commented Jan 27, 2023

please consider vendoring the asdf utils into asdf-java. It would help my new project out: jdx/mise#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants