Closed ksallberg closed 4 years ago
This might be addressed by #61.
@tsloughter This should definitely be a non-issue now... maybe @ksallberg can confirm.
@starbelly I did the following:
1) moved src/application.app.src to ebin/application.src 2) DEBUG=1 rebar3 hex publish
I still get an internal error, but it is failing with a badmatch in other lines.
===> Provider: {default,lock}
===> Provider: {hex,publish}
===> Using deprecated rebar_utils:vcs_vsn/3. Please upgrade your plugins.
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: {badmatch,[]}
===> Stack trace to the error location:
[{rebar3_hex_utils,update_app_src,2,
[{file,"/Users/kristiansallberg/Documents/brunhilde/_build/default/plugins/rebar3_hex/src/rebar3_hex_utils.
erl"},
{line,111}]},
{rebar3_hex_publish,publish,3,
[{file,"/Users/kristiansallberg/Documents/brunhilde/_build/default/plugins/rebar3_hex/src/rebar3_hex_publ
ish.erl"},
{line,122}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{rebar_core,do,2,
[{file,"/private/tmp/rebar3-20190318-95158-1ic6xql/rebar3-3.9.1/src/rebar_core.erl"},
{line,154}]},
{rebar_prv_do,do_task,5,
[{file,"/private/tmp/rebar3-20190318-95158-1ic6xql/rebar3-3.9.1/src/rebar_prv_do.erl"},
{line,87}]},
{rebar_core,do,2,
[{file,"/private/tmp/rebar3-20190318-95158-1ic6xql/rebar3-3.9.1/src/rebar_core.erl"},
{line,154}]},
{rebar3,run_aux,2,
[{file,"/private/tmp/rebar3-20190318-95158-1ic6xql/rebar3-3.9.1/src/rebar3.erl"},
{line,178}]},
{rebar3,main,1,
[{file,"/private/tmp/rebar3-20190318-95158-1ic6xql/rebar3-3.9.1/src/rebar3.erl"},
{line,66}]}]
===> When submitting a bug report, please include the output of `rebar3 report "your command"
How can I be sure I have the latest version of rebar3_hex? Do I need a development version? Since I did "git clean -ffxd" in my repo, should the rebar3_hex plugin be downloaded again with a newer version?
@ksallberg You do not need development. You do need rebar3_hex ver 6.5.0 and the latest version of rebar 3.9.1 I believe
Closing this issue as I believe it's been resolved, please re-open if you find otherwise.
Appears when using "rebar3 hex publish", when using a .app file in ebin, instead of a .app.src file in src.