We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c66813f commit 2d79f6bCopy full SHA for 2d79f6b
src/rebar3_nova_new.erl
@@ -526,15 +526,7 @@ generate_sup(Name, #{kura := true}) ->
526
" supervisor:start_link({local, ?SERVER}, ?MODULE, []).\n\n",
527
"init([]) ->\n",
528
" SupFlags = #{strategy => one_for_all},\n",
529
- " ChildSpecs = [\n",
530
- " #{id => ",
531
- Name,
532
- "_repo,\n",
533
- " start => {",
534
535
- "_repo, start_link, []},\n",
536
- " type => worker}\n",
537
- " ],\n",
+ " ChildSpecs = [],\n",
538
" {ok, {SupFlags, ChildSpecs}}.\n"
539
],
540
rebar3_nova_utils:write_file(Path, Content);
test/rebar3_nova_new_SUITE.erl
@@ -101,8 +101,9 @@ kura_flag(_Config) ->
101
AppSrc = read_file(Name, "src/testapp_kura.app.src"),
102
assert_contains(AppSrc, "kura"),
103
104
- SupErl = read_file(Name, "src/testapp_kura_sup.erl"),
105
- assert_contains(SupErl, "testapp_kura_repo"),
+ AppErl = read_file(Name, "src/testapp_kura_app.erl"),
+ assert_contains(AppErl, "kura_repo_worker:start(testapp_kura_repo)"),
106
+ assert_contains(AppErl, "kura_migrator:migrate(testapp_kura_repo)"),
107
108
DevConfig = read_file(Name, "config/dev_sys.config.src"),
109
assert_contains(DevConfig, "pgo"),
@@ -253,7 +254,7 @@ combined_kura_arizona_ci(_Config) ->
253
254
assert_contains(Router, "_main_controller:index/1"),
255
256
SupErl = read_file(Name, "src/testapp_combo_sup.erl"),
- assert_contains(SupErl, "testapp_combo_repo"),
257
+ assert_contains(SupErl, "supervisor"),
258
259
ok.
260
0 commit comments