Skip to content

Commit

Permalink
fix(tools): change order of installation (#186)
Browse files Browse the repository at this point in the history
If a user has set up a `~/.default-mix-commands` file such as mine:

```
local.hex
local.rebar
archive.install hex phx_new
archive.install hex nerves_bootstrap
```

then running `$ asdf install` will fail if the specified erlang version is not installed:

```sh
Running mix local.hex --force...
No preset version installed for command erl
Please install a version by running one of the following:

asdf install erlang 25.2.1

or add one of the following versions in your config file at /home/juan/code/forks/GitHub/lexical/.tool-versions
erlang 26.0

Running mix local.rebar --force...
No preset version installed for command erl
Please install a version by running one of the following:

asdf install erlang 25.2.1

or add one of the following versions in your config file at /home/juan/code/forks/GitHub/lexical/.tool-versions
erlang 26.0

Running mix archive.install hex phx_new --force...
No preset version installed for command erl
Please install a version by running one of the following:

asdf install erlang 25.2.1

or add one of the following versions in your config file at /home/juan/code/forks/GitHub/lexical/.tool-versions
erlang 26.0

Running mix archive.install hex nerves_bootstrap --force...
No preset version installed for command erl
Please install a version by running one of the following:

asdf install erlang 25.2.1

or add one of the following versions in your config file at /home/juan/code/forks/GitHub/lexical/.tool-versions
erlang 26.0
```

Swapping the order fixes this issue.
  • Loading branch information
03juan authored May 27, 2023
1 parent 2a51f10 commit 655ee5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
elixir 1.14.3-otp-25
erlang 25.2.1
elixir 1.14.3-otp-25
nodejs 12.16.3
yarn 1.22.4

0 comments on commit 655ee5b

Please sign in to comment.