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

use ASDF_DIR variable to support Homebrew installs #428

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

zetaron
Copy link
Contributor

@zetaron zetaron commented Dec 2, 2020

Currently the launch.sh script will check for asdf in my home directory.
As I am a Homebrew user, my asdf got installed to /usr/local/opt/asdf.

For launch.sh to be able to detect it I've modified it for the use of ASDF_DIR if available and fall-back to the current behaviour if that's not set.

asdf will set the ASDF_DIR (see upstream source) variable when it initializes, so this seems to be a reliable way to detect all sorts of customized asdf installations.

Currently the `launch.sh` script will check for asdf in my home directory.
As I am a Homebrew user, my asdf got installed to `/usr/local/opt/asdf`.

For `launch.sh` to be able to detect it I've modified it for the use of `ASDF_DIR` if available and fall-back to the current behaviour if that's not set.

asdf will set the [`ASDF_DIR` (see upstream source)][1] variable when it initializes, so this seems to be a reliable way to detect all sorts of customized asdf installations.

[1]: https://github.com/asdf-vm/asdf/blob/master/asdf.sh#L14
@zetaron
Copy link
Contributor Author

zetaron commented Dec 2, 2020

@lukaszsamson Test failure seems to be unrelated, could you trigger a re-run?

@zetaron
Copy link
Contributor Author

zetaron commented Dec 3, 2020

Awesome CI passes :)

Copy link
Member

@axelson axelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ❤️

@axelson axelson merged commit 8101fd1 into elixir-lsp:master Dec 3, 2020
@zetaron zetaron deleted the patch-1 branch December 3, 2020 21:30
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 this pull request may close these issues.

3 participants