Skip to content

rebar3 should be searched on path #14504

Closed as not planned
Closed as not planned
@gcb

Description

@gcb

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions