mix deps.add || mix add package

53 views
Skip to first unread message

Zareh Petrossian

unread,
Feb 9, 2018, 8:09:41 AM2/9/18
to elixir-lang-core
Add packages at a terminal without having to go through a text editor...

i.e.

mix deps.add plug

or

mix do deps.add plug, deps.get, deps.compile

I think the value/reasoning for this is quite self explanatory.

Andrea Leopardi

unread,
Feb 9, 2018, 8:17:01 AM2/9/18
to elixir-l...@googlegroups.com
Hey Zareh, this has been proposed many many times in the mailing list. The reason we won't do it is because we can't know where to add the dependency for sure (mix.exs is just code, it doesn't have a fixed format like a package.json for JavaScript has for example).

I think someone might have come up with a package that adds deps euristically, but can't remember for sure. Search through the other times it has been proposed here on the mailing list and you should find it :)

Andrea

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/122f7d0d-4de1-4848-b0a0-926df263b67d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Andrea Leopardi

Louis Pilfold

unread,
Feb 9, 2018, 8:20:38 AM2/9/18
to elixir-l...@googlegroups.com
Hi Zareh

Given the mix.exs file is not a machine readable format how would this be implemented? Any Elixir could can be used to build the `project/0` function.

Cheers,
Louis

--

niahoo osef

unread,
Feb 9, 2018, 8:30:23 AM2/9/18
to elixir-l...@googlegroups.com
Hi everyone. I would like to know why Mix developers choose not to use a pure data file for dependencies and application metadata, unlike many other languages ?

Thank you

Le 9 févr. 2018 20:20, "Louis Pilfold" <louisp...@gmail.com> a écrit :
Hi Zareh

Given the mix.exs file is not a machine readable format how would this be implemented? Any Elixir could can be used to build the `project/0` function.

Cheers,
Louis

On Fri, 9 Feb 2018 at 13:09 Zareh Petrossian <zer...@gmail.com> wrote:
Add packages at a terminal without having to go through a text editor...

i.e.

mix deps.add plug

or

mix do deps.add plug, deps.get, deps.compile

I think the value/reasoning for this is quite self explanatory.

--
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-core+unsubscribe@googlegroups.com.

--
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-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CABu8xFDCURB6_8Jvv6QmTF3mYhx%3DJcvuG8OibG80HJFg41HAtA%40mail.gmail.com.

Norbert Melzer

unread,
Feb 9, 2018, 8:42:33 AM2/9/18
to elixir-l...@googlegroups.com
Because its so much nicer to configure the build via real code.

If it were necessary to know the numbers of solarflares, I could check an API and act accordingly before building the project. You can't do that with a JSON file.

But it also enables you, to actually have a plain file, containing nothing but a list and load it from the mix.exs file. This additional file could then be maintained by whatever tool you choose.

niahoo osef <ludovic....@gmail.com> schrieb am Fr., 9. Feb. 2018 um 14:30 Uhr:
Hi everyone. I would like to know why Mix developers choose not to use a pure data file for dependencies and application metadata, unlike many other languages ?

Thank you
Le 9 févr. 2018 20:20, "Louis Pilfold" <louisp...@gmail.com> a écrit :
Hi Zareh

Given the mix.exs file is not a machine readable format how would this be implemented? Any Elixir could can be used to build the `project/0` function.

Cheers,
Louis

On Fri, 9 Feb 2018 at 13:09 Zareh Petrossian <zer...@gmail.com> wrote:
Add packages at a terminal without having to go through a text editor...

i.e.

mix deps.add plug

or

mix do deps.add plug, deps.get, deps.compile

I think the value/reasoning for this is quite self explanatory.

--
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.

--
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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAOcJokoGhPB_t0XY8rv-Au1i5LvuNN7eEz5kwdaNtRDfCA9Prw%40mail.gmail.com.

Louis Pilfold

unread,
Feb 9, 2018, 10:08:46 AM2/9/18
to elixir-l...@googlegroups.com

Hi all

Alternatively you could investigate building your project with rebar3, the standard Erlang build tool. It uses a machine readable file for project configuration.

Cheers,
Louis


Zareh Petrossian

unread,
Feb 14, 2018, 4:32:31 AM2/14/18
to elixir-lang-core
I will look into that, thanks.
Reply all
Reply to author
Forward
0 new messages