File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ defmodule Mix.CLI do
78
78
defp run_task ( name , args ) do
79
79
try do
80
80
ensure_no_slashes ( name )
81
- Mix.Tasks.Loadconfig . load_default ( )
81
+ # We must go through the task instead of invoking the module directly
82
+ # because projects like Nerves use this to invoke it early.
83
+ Mix.Task . run ( "loadconfig" )
82
84
Mix.Task . run ( name , args )
83
85
rescue
84
86
# We only rescue exceptions in the Mix namespace, all
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ defmodule Mix.Tasks.Loadconfig do
33
33
end
34
34
end
35
35
36
- @ doc false
37
- def load_default do
36
+ defp load_default do
38
37
config = Mix.Project . config ( )
39
38
40
39
if File . regular? ( config [ :config_path ] ) or config [ :config_path ] != "config/config.exs" do
You can’t perform that action at this time.
0 commit comments