Open joshprice opened 8 years ago
Update: this worked fine in my current shell but I was unable to switch to it in a new shell.
@joshprice, can you please clarify what you mean by local?
Maybe you mean local to the project you are working in?
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.
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
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.