taylor / kiex

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

Command to allow linking to local version of Elixir #51

Open joshprice opened 8 years ago

joshprice commented 8 years ago

It'd be great if kiex supported linking to a local version of Elixir for testing out new features, etc.

What I ended up doing was kiex install master and then symlinking .kiex/elixirs/elixir-master to my local elixir directory. I don't know if there are any possible side-effects of doing this but it seemed to work really well for what I was doing.

It should perhaps be called elixir-local or similar to distinguish it from other versions?

This would make it easier to hack on elixir and test out the results quickly without changing the elixir commands one would normally use.

joshprice commented 8 years ago

Update: this worked fine in my current shell but I was unable to switch to it in a new shell.

taylor commented 7 years ago

@joshprice, can you please clarify what you mean by local?

Maybe you mean local to the project you are working in?

joshprice commented 7 years ago

By "local" I'm referring to a git clone of Elixir local to my machine which I am modifying and would use to test new features out on potentially multiple other projects.

Hope that clarifies.

webdeb commented 6 years ago

Before I found a solution to this, I also searched in kiex directly. Actually its very easy, just

clone & make elixir somewhere locally, and then create a function in you bash_profile:

function use_local_elixir() {
  export ELIXIR_VERSION="local"
  export PATH="$HOME/github/elixir/bin:$PATH"
  export MIX_ARCHIVES="$HOME/github/elixir/archives"
}

But it would be very cool, if we could link the local elixir somehow, and also make it default, because the above will work just after you called use_local_elixir from the shell session.. So a general solution would be really nice