We want to add support for installing escripts on your system. For a time I was thinking about how to do this with Hex, but José came with the idea to do it with just Mix. We can use Mix’s existing functionality for fetching and building dependencies. For example:
mix escript.install git git://github.com/phoenixframework/phoenix.git
mix escript.install git git://github.com/phoenixframework/phoenix.git --branch develop
Since we use the existing dependency functionality we can also fetch Hex packages:
mix escript.install phoenix
mix escript.install phoenix 0.1.2
escript.install
will download and build the project and then run the escriptize
task to generate an escript and finally copy it to ~/.mix/escripts.
These are the tasks I would like to add or rename:
escript # lists installed escripts
escript.build # renamed escriptize task
escript.install # self explanatory
escript.uninstall # self explanatory
We are leaving archives as is for now but are renaming some tasks [1]. In the future we can add the same sort of functionality for fetching and building archives if we see the need.
archive # lists installed archives
archive.install # renamed local.install task
archive.uninstall # renamed local.uninstall task
local # keep as is, lists locally installed tasks
local.hex # keep as is
local.rebar # keep as is
[1] https://github.com/elixir-lang/elixir/issues/2454
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I like the idea of bundling Elixir with escripts personally. Just because I upgrade my local version of Elixir doesn't mean I want to have to reinstall my installed escripts, and there really is no direct correlation between what version of Elixir you are currently running and usage of the installed escripts. Yes the size gets bigger, but personally I think it's worth the tradeoff for increased stability: no unintended breakages when you upgrade Elixir, and you don't have to wait on a maintainer to upgrade their package for the latest version of Elixir in order for you to get the escript working again.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.