Closed sneako closed 1 month ago
To install a tool version, mise
uses the format <tool>@<version>
not the asdf
space separated format <tool> <version>
. Therefore the command should be mise install elixir@1.17.0-rc.0-otp-27
.
Ah! I guess it's just a coincidence that it works sometimes without the @. Thanks!
I would assume that simply the latest version as per mise latest elixir
is installed without the @
which is default behaviour when omitting the version.
Here's an example what I get locally when I use a space instead of @
:
❯ mise install elixir 1.15.6
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6680k 100 6680k 0 0 4500k 0 0:00:01 0:00:01 --:--:-- 4501k
mise elixir@1.15.6 ✓ installed
Anyways, thanks and apologies for not readings the docs properly 😬
Describe the bug It appears that the
mise install
command is unable to parse versions that contain hyphens. For example, Elixir versions can specify the major Erlang version they were compiled with, ie1.16.3-otp-26
. Putting quotes around the version does not seem to help.As a work around, manually editing
~/.config/mise/config.toml
with these versions that contain hyphens followed bymise isntall
does the trick.To Reproduce
mise ls-remote elixir
lists these exact versions, however:It also occurs for non-release candidate versions:
It appears to work only when the version contains no hyphens:
Expected behavior Users should be able to install Elixir versions that contain hyphens with the
mise install
command.mise doctor
output