voltone/rebar3_sbom

Error in writing the output file

Closed this issue · 0 comments

IndFer commented

I was testing the plugin in one of the repositories at work. We would like to use the plugin and we are a big company with more than 300 repositories. There was an error if the version in app.src tuple is an atom e.x {vsn, git}.

It is fixed if we consider the case of Version being an atom.

These are the logs from rebar

===> Uncaught error: badarg
===> Stack trace to the error location:
[{erlang,binary_to_list,[git],[]},
 {xmerl_lib,export_text,2,[{file,"xmerl_lib.erl"},{line,69}]},
 {xmerl,export_content,2,[{file,"xmerl.erl"},{line,191}]},
 {xmerl,export_element,2,[{file,"xmerl.erl"},{line,224}]},
 {xmerl,export_content,2,[{file,"xmerl.erl"},{line,199}]},
 {xmerl,export_content,2,[{file,"xmerl.erl"},{line,199}]},
 {xmerl,export_element,2,[{file,"xmerl.erl"},{line,224}]},
 {xmerl,export_content,2,[{file,"xmerl.erl"},{line,199}]}]