Closed efine closed 12 years ago
It looks as if the Yaws rebar plugin, rebar_reltool_link, is not being found (I ran rebar -v generate on the test base project):
DEBUG: Entering /tmp/rebar_build_cKnl9191/test_yaws_as_dep/deps/yaws
DEBUG: Consult config file "/tmp/rebar_build_cKnl9191/test_yaws_as_dep/deps/yaws/rebar.config"
DEBUG: Available deps: []
DEBUG: Missing deps : []
WARN: Missing plugins: [rebar_reltool_link]
DEBUG: Predirs: ["/tmp/rebar_build_cKnl9191/test_yaws_as_dep/deps/yaws/rel"]
DEBUG: Entering /tmp/rebar_build_cKnl9191/test_yaws_as_dep/deps/yaws/rel
DEBUG: Consult config file "/tmp/rebar_build_cKnl9191/test_yaws_as_dep/deps/yaws/rel/rebar.config"
DEBUG: Available deps: []
DEBUG: Missing deps : []
WARN: Missing plugins: [rebar_reltool_link]
DEBUG: Predirs: []
==> rel (generate)
INFO: sh info:
cwd: "/tmp/rebar_build_cKnl9191/test_yaws_as_dep/deps/yaws/rel"
cmd: sed -ne '1,/^YAWS_VSN=/s/^YAWS_VSN=//p' ../vsn.mk 2>/dev/null
opts: [{cd,"/tmp/rebar_build_cKnl9191/test_yaws_as_dep/deps/yaws/rel"},
{use_stdout,false}]
DEBUG: vcs_vsn: Unknown VCS atom in vsn field: []
Here is a solution to this issue, but I am not sure if it has other side-effects:
mkdir plugins
mv rebar_reltool_link.erl plugins/
When running rebar generate on a parent project, I get a crash:
Environment
CentOS 5.7 x86_64, Erlang R15B, latest rebar and yaws master as of today.
To reproduce
I wrote a little script to reproduce the issue. It creates a dummy project that includes yaws as a dep to show the issue.
create_yaws_deps_test_case.sh
Script output