Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing an invalid version displays an error, but installs the latest release anyways #99

Open
RuyiLi opened this issue Dec 8, 2024 · 0 comments

Comments

@RuyiLi
Copy link

RuyiLi commented Dec 8, 2024

Specifying an invalid version in the install command (e.g. kiex install 17.0) initially displays the following error messages:

fatal: 'v17.0' is not a commit and a branch 'v17.0' cannot be created from it
error: pathspec 'v17.0' did not match any file(s) known to git
fatal: couldn't find remote ref v17.0

but then proceeds to install what I assume is the latest version in the Elixir repository (i.e. whatever's specified in the VERSION file on the main branch) under the name of the invalid version. This leads to some unexpected behavior like

$ kiex use 17.0-
$ elixir -v
...
Elixir 1.18.0-dev (64e4b89) (compiled with Erlang/OTP 27)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant