You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project uses other tool for build and is not rebar3 discoverable prior to compilation (E.g.: rabbitmq_common), we could use pre hooks to compile it and also to generate the .app.src, .app files.
case rebar_app_discover:find_app(AppInfo1, AppDir, all) of
{true, AppInfo2} ->
rebar_app_info:is_available(AppInfo2, true);
false ->
- throw(?PRV_ERROR({dep_app_not_found, rebar_app_info:name(AppInfo1)}))
+ rebar_app_info:is_available(AppInfo1, true)
end;
This solves the problem but I am unsure about the consequences. Should be a rebar_app_discover:find_app/3 call between prehook of compile and compile to double check for the "app.src" later?
The text was updated successfully, but these errors were encountered:
When a project uses other tool for build and is not
rebar3
discoverable prior to compilation (E.g.: rabbitmq_common), we could use pre hooks to compile it and also to generate the.app.src
,.app
files.The following
rebar.config
still fails though:with error:
The above error is from 3.7.5.
3.6.2 fails as well:
Fetching the dependency calls
rebar_app_discover:find_app/3
here:https://github.com/erlang/rebar3/blob/3.7.5/src/rebar_fetch.erl#L33
which expects the
.app.src
or.app
file to be present which in this case are generated bymake
.If we could tell
rebar3
not fail so quickly here:https://github.com/erlang/rebar3/blob/3.7.5/src/rebar_fetch.erl#L36
maybe by replacing the
throw
https://github.com/erlang/rebar3/blob/3.7.5/src/rebar_fetch.erl#L37with
rebar_app_info:is_available(AppInfo1, true)
we might have a solution.This solves the problem but I am unsure about the consequences. Should be a
rebar_app_discover:find_app/3
call betweenprehook of compile
andcompile
to double check for the "app.src" later?The text was updated successfully, but these errors were encountered: