Add support for using subdirectories from Git repositories

42 views
Skip to first unread message

Łukasz Niemier

unread,
Jun 3, 2020, 12:20:58 PM6/3/20
to elixir-lang-core
This would be handy for supporting monorepos which contain different projects. One example of project that would benefit from such thing is OpenTelemetry repository which could contain data for API and SDK in one repo instead of using separate ones.

José Valim

unread,
Jun 3, 2020, 12:21:52 PM6/3/20
to elixir-l...@googlegroups.com
We already support sparse checkouts. It was added back then due to a Nerves team request.

On Wed, Jun 3, 2020 at 6:21 PM Łukasz Niemier <luk...@niemier.pl> wrote:
This would be handy for supporting monorepos which contain different projects. One example of project that would benefit from such thing is OpenTelemetry repository which could contain data for API and SDK in one repo instead of using separate ones.

--
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/bb872d28-f712-4126-a436-3cea0d09d07f%40googlegroups.com.

Łukasz Niemier

unread,
Jun 4, 2020, 10:18:22 AM6/4/20
to elixir-lang-core
Ok, I misstnderstood the original intent in this issue - https://github.com/open-telemetry/opentelemetry-erlang-api/issues/61

The point is in updating Mix to support such dependencies coming from Rebar3 projects.

José Valim

unread,
Jun 4, 2020, 10:28:53 AM6/4/20
to elixir-l...@googlegroups.com
This is the code that translates rebar3 options to Mix options, we just need to do this for the new Rebar3 option: https://github.com/elixir-lang/elixir/blob/d9e01a61c911fd621c9f62e58fcff2d03714c529/lib/mix/lib/mix/rebar.ex#L151-L165

PRs are welcome!

On Thu, Jun 4, 2020 at 4:18 PM Łukasz Niemier <luk...@niemier.pl> wrote:
Ok, I misstnderstood the original intent in this issue - https://github.com/open-telemetry/opentelemetry-erlang-api/issues/61

The point is in updating Mix to support such dependencies coming from Rebar3 projects.

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

Xavier Noria

unread,
Jun 4, 2020, 11:33:10 AM6/4/20
to elixir-l...@googlegroups.com
Let me add that Git dependencies accept a `:sparse` option that allows you to point to a subdirectory of 3rd party monorepos. (If the app lives in a monorepo, then `:path` is the thing.)
Reply all
Reply to author
Forward
0 new messages