Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

badmatch error when calling rebar3 appup generate #73

Open
benbro opened this issue Aug 23, 2024 · 0 comments
Open

badmatch error when calling rebar3 appup generate #73

benbro opened this issue Aug 23, 2024 · 0 comments

Comments

@benbro
Copy link
Contributor

benbro commented Aug 23, 2024

I'm not able to call appup generate and to upgrade a release.

Steps to reproduce:
erlang/otp: 27.0.1
rebar3 version: 3.23.0
rebar3_appup_plugin version: 2.4.6

  1. Create a project.
rebar3 new release mytest
  1. Add rebar3_appup_plguin and provider_hooks to rebar.config
{plugins, [rebar3_appup_plugin]}.

{provider_hooks, [
    {pre, [
        {tar, {appup, tar}}
    ]},
    {post, [
        {compile, {appup, compile}},
        {clean, {appup, clean}}
    ]}
]}.
  1. Generate first release.
rebar3 as prod release
  1. Change release in rebar.config and vsn in app.src to 0.2.0
  2. Create second release and upgrade.
rebar3 as prod release
rebar3 as prod appup generate
rebar3 as prod relup
rebar3 as prod tar

When running rebar3 as prod appup generate I'm getting this error:

Error: {badmatch,
           {'EXIT',
               {{badmatch,
                    {ok,{mytest_app,[{abstract_code,no_abstract_code}]}}},
                [{rebar3_appup_generate,read_file,1,
                     [{file,
                          "/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                      {line,1028}]},
                 {rebar3_appup_generate,cmp_files,2,
                     [{file,
                          "/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                      {line,1020}]},
                 {rebar3_appup_generate,compare_files,3,
                     [{file,
                          "/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                      {line,1007}]},
                 {rebar3_appup_generate,compare_dirs,2,
                     [{file,
                          "/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                      {line,977}]},
                 {rebar3_appup_generate,cmp_dirs,2,
                     [{file,
                          "/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                      {line,960}]},
                 {rebar3_appup_generate,generate_appup_files,6,
                     [{file,
                          "/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                      {line,315}]},
                 {lists,foreach_1,2,[{file,"lists.erl"},{line,2310}]},
                 {rebar3_appup_generate,do,1,
                     [{file,
                          "/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                      {line,162}]}]}}}
[{rebar3_appup_generate,generate_appup_files,6,
                        [{file,"/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                         {line,315}]},
 {lists,foreach_1,2,[{file,"lists.erl"},{line,2310}]},
 {rebar3_appup_generate,do,1,
                        [{file,"/home/me/temp/test/mytest/_build/default/plugins/rebar3_appup_plugin/src/rebar3_appup_generate.erl"},
                         {line,162}]},
 {rebar_core,do,2,
             [{file,"/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_core.erl"},
              {line,155}]},
 {rebar_prv_do,do_task,5,
               [{file,"/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_prv_do.erl"},
                {line,87}]},
 {rebar_core,do,2,
             [{file,"/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_core.erl"},
              {line,155}]},
 {rebar_prv_do,do_task,5,
               [{file,"/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_prv_do.erl"},
                {line,87}]},
 {rebar_core,do,2,
             [{file,"/home/runner/work/rebar3/rebar3/apps/rebar/src/rebar_core.erl"},
              {line,155}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant