Skip to content

Commit c4f03dc

Browse files
ggcampinhoJosé Valim
authored andcommitted
Set runtime config as false when not rebooting (#9677)
This allows the release skip the creation of runtime files during the execution of the clis
1 parent d69d771 commit c4f03dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/mix/lib/mix/release.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ defmodule Mix.Release do
426426
]
427427

428428
init = Config.Provider.init(release.config_providers, config_path, opts)
429-
{Config.Reader.merge(sys_config, [elixir: [config_providers: init]] ++ extra_config), true}
429+
{Config.Reader.merge(sys_config, [elixir: [config_providers: init]] ++ extra_config), reboot?}
430430
end
431431

432432
defp start_distribution(%{options: opts}) do

lib/mix/test/mix/release_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ defmodule Mix.ReleaseTest do
521521
test "writes the given sys_config without reboot" do
522522
release = release(config_providers: @providers, reboot_system_after_config: false)
523523
assert make_sys_config(release, [kernel: [key: :value]], "/foo/bar/bat") == :ok
524-
assert File.read!(@sys_config) =~ "%% RUNTIME_CONFIG=true"
524+
assert File.read!(@sys_config) =~ "%% RUNTIME_CONFIG=false"
525525
{:ok, [config]} = :file.consult(@sys_config)
526526
assert %Config.Provider{} = provider = config[:elixir][:config_providers]
527527
refute provider.reboot_after_config

0 commit comments

Comments
 (0)