Git Product home page Git Product logo

Comments (3)

tsloughter avatar tsloughter commented on July 4, 2024

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.

tsloughter avatar tsloughter commented on July 4, 2024

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.

Supersonido avatar Supersonido commented on July 4, 2024

It's already consolidated!!

from rebar_mix.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.