asdf-vm / asdf

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
https://asdf-vm.com/
MIT License
21.76k stars 774 forks source link

Ability to explicitly set ASDF_GLOBAL_TOOL_VERSIONS_PATH #1762

Open sirianni opened 3 months ago

sirianni commented 3 months ago

Is your feature request related to a problem? Please describe

I'm having an issue with ASDF not resolving tools correctly when running via bazel. The problem is that HOME is unset in the environment for the bazel daemon proces

Describe the proposed solution

Specify the path for the tool-versions file explicitly via ASDF_GLOBAL_TOOL_VERSIONS_PATH

Previous work was done in https://github.com/asdf-vm/asdf/pull/1295

Describe similar asdf features and why they are not sufficient

Using ASDF_GLOBAL_TOOL_VERSIONS_FILE does not allow me to set the directory.

Describe other workarounds you've considered

I'm working around this by specifying the HOME env var explicitly when invoking bazel

--action_env=HOME=$HOME