Skip to content

how to generalize the proto files path for umbrella projects #156

@phani35

Description

@phani35

I have a umbrella project which has multiple OTP applications. I tried to integrate proto files repository as below for one of the application and it works fine . Now if I try to add appl2 in main top application 1 it will not detect the proto files as the path _build/default/lib/appl3 is not discoverable. Is it possible to generalize the {i, "_build/default/lib/appl3/proto"}, value so that it can be detected when appl2 in integrated in another application.

rebar.config of appl2

{deps, [ {appl3, {git, "https://<githuburl>/a/appl3.git", {branch, "master"}}} ]}. {gpb_opts, [ {i, "_build/default/lib/appl3/proto"}, {o_erl, "src"}, {o_hrl, "src"}, {strings_as_binaries, true}, type_specs, maps ]}.

rebar.config of top appl1

{deps, [ {appl2, {git, "https://<githuburl>/a/appl2.git", {branch, "master"}}} {appl3, {git, "https://<githuburl>/a/appl3.git", {branch, "master"}}} ]}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions