halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
466 stars 86 forks source link

fixed #188 issue #189

Open kackey0-1 opened 2 years ago

kackey0-1 commented 2 years ago

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 asdf installed.

source "${ASDF_DIR:-$(dirname $(dirname $(cut $' ' -f 2 "$(which asdf)" | tail -n 1 | sed -e 's/"//g')))}/lib/utils.bash"