Closed as not planned
Description
Elixir and Erlang/OTP versions
Erlang/OTP 27 [erts-15.2.7] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]
Elixir 1.18.3 (compiled with Erlang/OTP 27)
Operating system
linux
Current behavior
mix ignores path and defaults to MIX_REBAR3=~/.mix/something
most distros offer rebar3 in managed package, but:
$ command -v rebar3
/usr/bin/rebar3
$ mix format lib/file.ex
Could not find "rebar3", which is needed to build dependency :telemetry
Shall I install rebar3? (if running non-interactively, use "mix local.rebar --force") [Yn] n
...work around
$ MIX_REBAR3=/usr/bin/rebar3 mix format lib/file.ex
(works fine)
...alternative workaround
$ ln -s /usr/bin/rebar3 ~/.mix/rebar3
$ mix format lib/file.ex
(works fine)
Expected behavior
uses the distro rebar3, available on PATH.
Metadata
Metadata
Assignees
Labels
No labels