diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-08-10 18:48:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-10 18:48:22 -0400 |
commit | 4b63d35b940fcf88892a220b6e6639511c7252da (patch) | |
tree | f1fa9979b9cb2867f91e3bbb6dfbf20392e51c8e | |
parent | 4bbd20f2900f542ce1c4d2b2278ac909d3820fb6 (diff) | |
parent | ea7942d9477bf2b0e3fffb905c04d330536f6c53 (diff) |
Merge pull request #1298 from ferd/escript-filter-paths-fix
Fix filtering of system libraries in escriptize
-rw-r--r-- | src/rebar_prv_escriptize.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar_prv_escriptize.erl b/src/rebar_prv_escriptize.erl index 6e10947..06b54ed 100644 --- a/src/rebar_prv_escriptize.erl +++ b/src/rebar_prv_escriptize.erl @@ -236,7 +236,9 @@ find_deps_of_deps([Name|Names], Apps, Acc) -> DepNames = proplists:get_value(applications, rebar_app_info:app_details(App), []), BinDepNames = [ec_cnv:to_binary(Dep) || Dep <- DepNames, %% ignore system libs; shouldn't include them. - not lists:prefix(code:root_dir(), code:lib_dir(Dep))] + DepDir <- [code:lib_dir(Dep)], + DepDir =:= {error, bad_name} orelse % those are all local + not lists:prefix(code:root_dir(), DepDir)] -- ([Name|Names]++Acc), % avoid already seen deps ?DEBUG("new deps of ~p found to be ~p", [Name, BinDepNames]), find_deps_of_deps(BinDepNames ++ Names, Apps, BinDepNames ++ Acc). |