Skip to content

Internal rebar3 invocation causes crash running rebar3 grisp-io upload #108

@ziopio

Description

@ziopio

The issue appears on Erlang 28.2 and rebar 3.26.0

rebar3 grisp-io upload
or
rebar3 grisp firmware

===> Compiling grisp_demo
* Deploying bundle...
Args: ["as",
       ["default",",","braid",",","grisp"],
       "grisp","deploy","--tar","--relname","grisp_demo","--relvsn","1.2.0",
       "--destination", []]
Error: {case_clause,[]}
[{rebar_utils,rest_arg_self_contains_comma,1,
              [{file,"/private/var/folders/_z/j32x_t_s13j70f97g_jj9c780000gn/T/rebar3-3.26.0/apps/rebar/src/rebar_utils.erl"},
               {line,956}]},
 {rebar_utils,arg_or_flag,2,
              [{file,"/private/var/folders/_z/j32x_t_s13j70f97g_jj9c780000gn/T/rebar3-3.26.0/apps/rebar/src/rebar_utils.erl"},
               {line,917}]},
 {rebar_prv_as,comma_or_end,2,
               [{file,"/private/var/folders/_z/j32x_t_s13j70f97g_jj9c780000gn/T/rebar3-3.26.0/apps/rebar/src/rebar_prv_as.erl"},
                {line,94}]},
 {rebar_prv_as,do,1,
               [{file,"/private/var/folders/_z/j32x_t_s13j70f97g_jj9c780000gn/T/rebar3-3.26.0/apps/rebar/src/rebar_prv_as.erl"},
                {line,35}]},
 {rebar_core,do,2,
             [{file,"/private/var/folders/_z/j32x_t_s13j70f97g_jj9c780000gn/T/rebar3-3.26.0/apps/rebar/src/rebar_core.erl"},
              {line,155}]},
 {rebar3,run_aux,2,
         [{file,"/private/var/folders/_z/j32x_t_s13j70f97g_jj9c780000gn/T/rebar3-3.26.0/apps/rebar/src/rebar3.erl"},
          {line,212}]},
 {rebar3_grisp_firmware,deploy_bundle,5,
                        [{file,"/Users/lucasucci/Desktop/grisp/grisp_demo/_checkouts/rebar3_grisp/src/rebar3_grisp_firmware.erl"},
                         {line,194}]},
 {rebar3_grisp_firmware,get_bundle,5,
                        [{file,"/Users/lucasucci/Desktop/grisp/grisp_demo/_checkouts/rebar3_grisp/src/rebar3_grisp_firmware.erl"},
                         {line,166}]}]

It looks like the fact that we pass an empty list as argument breaks the arg parsing logic in rebar3

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions