Comments (3)
First, you can't have deps
defined in the relx section.
But sadly what you are trying to do isn't possible at this time. rebar_mix
is only able to install mix hex packages, not from git repos.
The issue is rebar3 needs to be able to know all of the transitive dependencies. In the case of a hex package it is able to because it is no different from a rebar3 hex package, the dependencies are in the metadata. When the dep is a git repo this isn't available and rebar3 can not evaluate the mix.exs
script, so it has no way of telling what the dependencies of the mix dep are.
My only idea so far is to have a mix command that can output the deps as an Erlang term file which we can then read.
Hm, I suppose there is the possibility of adding a custom parser of the mix.lock
file.. But then would require the lock file, and a good bit of work most likely to create a parser for Elixir maps.
from rebar_mix.
You might want to look at https://github.com/Supersonido/rebar3_elixir as an alternative for now.
I see this one uses reading the lock file to make transitive deps possible https://github.com/Supersonido/rebar3_elixir/blob/master/src/rebar3_elixir_utils.erl#L174
Hopefully we can consolidate this into a single plugin.
from rebar_mix.
It's already consolidated!!
from rebar_mix.
Related Issues (18)
- "rebar3 shell" fails with an error
- ... has invalid version ~> Version_1 or ~> Version_2 HOT 11
- Missing hook find_elixir_libs HOT 5
- rebar3 compile crash as init is expecting {error, string()} HOT 3
- Dependency in _checkouts directory does not work HOT 2
- Handling optional dependencies
- Plugin doesn't work with upcoming Elixir v1.10 HOT 2
- compile fails with {:error, :no_beam_info} with elixir 1.10 HOT 13
- not downloading deps dependencies HOT 4
- No valid version ([]) of .app file found HOT 8
- Can we remove features that rebar3 and hex_core already cover? HOT 2
- Plugin fails if Elixir lib dir contains spaces. HOT 3
- consolidate_protocols seems to be gone from 0.5 HOT 20
- Why is `deps.get` called? HOT 1
- rebar_mix_hex needed?
- [bug] rebar_mix can not load eex, iex ...
- Won't work with ` rebar3_path_deps` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rebar_mix.