taylor / kiex

Elixir version manager
http://taylor.github.io/kiex/
MIT License
766 stars 65 forks source link

Installed elixir 1.0.0 reports 1.1.0-dev #16

Closed tallakt closed 9 years ago

tallakt commented 9 years ago

Doesn't make sense to me:

tallakt@lapuntu:~$ uname -a
Linux lapuntu 3.2.0-60-generic #91-Ubuntu SMP Wed Feb 19 03:55:18 UTC 2014 i686 i686 i386 GNU/Linux

I'm on arch Linux

tallakt@lapuntu:~$ kerl install 17.3 ~/.kerl/17.3/
Installing Erlang/OTP 17.3 (17.3) in /home/tallakt/.kerl/17.3...
You can activate this installation running the following command:
. /home/tallakt/.kerl/17.3/activate
Later on, you can leave the installation typing:
kerl_deactivate
tallakt@lapuntu:~$ . /home/tallakt/.kerl/17.3/activate
tallakt@lapuntu:~$ erl --version
Erlang/OTP 17 [erts-6.2] [source] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.2  (abort with ^G)
1> 
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
^Ctallakt@lapuntu:~kiex install 1.0.0
Switched to branch 'master'
fatal: A branch named '1.0.0' already exists.
From https://github.com/elixir-lang/elixir
 * tag               v1.0.0     -> FETCH_HEAD
Already up-to-date.
cd lib/elixir && ../../rebar clean
==> elixir (clean)
rm -rf ebin
rm -rf lib/*/ebin
rm -rf lib/elixir/test/ebin
rm -rf lib/*/tmp

(lots more like this)

Generated iex.app
==> elixir (compile)
==> elixir (install)
Installed Elixir version 1.0.0
Load with:
           kiex use 1.0.0 
or load the elixir environment file with: 
   source $HOME/.kiex/elixirs/elixir-1.0.0.env
tallakt@lapuntu:~$ kiex use 1.0.0 --default
Using 1.0.0 --default
tallakt@lapuntu:~$ elixir --version
Elixir 1.1.0-dev
tallakt@lapuntu:~$ which elixir
/home/tallakt/.kiex/elixirs/elixir-1.0.0/bin/elixir
tallakt@lapuntu:~$ iex --version
Erlang/OTP 17 [erts-6.2] [source] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.1.0-dev
jsvisa commented 9 years ago

@tallakt @taylor this PR 17 can fix this issue.

taylor commented 9 years ago

Verifying issue and pull request. Hope to have it resolved today.

taylor commented 9 years ago

@tallakt the issue should now be resolved

➔  kiex install 1.0.0
Already on 'master'
Your branch is up-to-date with 'origin/master'.
Switched to a new branch 'v1.0.0'
From https://github.com/elixir-lang/elixir
 * tag               v1.0.0     -> FETCH_HEAD
Already up-to-date.
cd lib/elixir && ../../rebar clean
==> elixir (clean)
rm -rf ebin
...
==> elixir (install)
Installed Elixir version 1.0.0
Load with:
           kiex use 1.0.0 
or load the elixir environment file with: 
   source $HOME/.kiex/elixirs/elixir-1.0.0.env
➔  kiex use 1.0.0
Using 1.0.0
➔  elixir --version
Elixir 1.0.0