I’m thinking of submitting yet another mix deps.add
proposal. It has gotten to the point where I feel that such a simple and repetitive task could easily be shortened by adding a mix task for it. However, I have noticed that the Core team ignores/rejects such proposals. I tried look through the mails of the past 2 years and I haven’t found any explanation.
Here’s what I am going to propose:
mix deps.add
will only be used for editing the Mixfile and adding a task. Added dependencies are only fetched with deps.get
By default, we would supply the package name, and we will add the latest version. For example:
mix deps.add ecto
Will add
{:ecto, "~> 3.6"}
at this point of time.
It will have the options of --version (to specify version) --git(to specify git repository) and --github (to specify GitHub repository)
So 2 things:
-
Why are
deps.add
proposals rejected -
What do you think of this proposal ?
PS: This is my first post. Apologies if I violated any code of conduct.