diff options
-rw-r--r-- | src/rlx_app_discovery.erl | 7 | ||||
-rw-r--r-- | test/rlx_release_SUITE.erl | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/rlx_app_discovery.erl b/src/rlx_app_discovery.erl index aab1d3b..0414a0a 100644 --- a/src/rlx_app_discovery.erl +++ b/src/rlx_app_discovery.erl @@ -303,9 +303,10 @@ get_deps(AppDir, AppName, AppVsn, AppDetail) -> Apps :: list(atom())) -> list(atom()). ensure_stdlib_kernel(kernel, Deps) -> Deps; ensure_stdlib_kernel(stdlib, Deps) -> Deps; -ensure_stdlib_kernel(_AppName, Deps) -> - %% ensure that stdlib and kernel are the first deps - [kernel, stdlib | Deps -- [stdlib, kernel]]. +ensure_stdlib_kernel(_AppName, []) -> + %% minimum required deps are kernel and stdlib + [kernel, stdlib]; +ensure_stdlib_kernel(_AppName, Deps) -> Deps. %%%=================================================================== %%% Test Functions diff --git a/test/rlx_release_SUITE.erl b/test/rlx_release_SUITE.erl index 3323bed..c9430fd 100644 --- a/test/rlx_release_SUITE.erl +++ b/test/rlx_release_SUITE.erl @@ -1436,7 +1436,7 @@ make_exclude_modules_release(Config) -> {modules,[]}, {included_applications,[]}, {registered,[]}, - {applications,[kernel,stdlib]}]}]}, + {applications,[stdlib,kernel]}]}]}, file:consult(filename:join([OutputDir, "foo", "lib", "non_goal_1-0.0.1", "ebin", "non_goal_1.app"]))). |