Closed SgtPooki closed 2 years ago
I'm trying to understand this use case. It looks like ASDF_DIR
is set when asdf is loaded. https://github.com/asdf-vm/asdf/blob/master/asdf.sh#L14-L15
In what situation would ASDF_DIR
not be set?
In what situation would
ASDF_DIR
not be set?
There are a large number of circumstances that could result in ASDF_DIR
not being set. Here are a few I can think of:
asdf.sh
so that the shims won't interfere. (my scenario)This plugin has already seen two users (https://github.com/halcyon/asdf-java/issues/152) impacted by the assumption that ASDF_DIR
is defined.
Either way, is not safeguarding a variable that you don't control a good idea?
Thank you!
Resolves the following error that displays for users who do not set ASDF_DIR:
As indicated in the official asdf docs,
ASDF_DIR
should default to~/.asdf
, though asdf itself defaults to$HOME/.asdf
: