Skip to content

Commit 0627d7b

Browse files
committed
Pass env and target to Mix.Config readers
1 parent 99ec752 commit 0627d7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/lib/mix/config.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ defmodule Mix.Config do
176176
"""
177177
@doc deprecated: "Use Config.Reader.read_imports!/2 instead"
178178
def eval!(file, imported_paths \\ []) do
179-
Config.Reader.read_imports!(file, imports: imported_paths)
179+
Config.Reader.read_imports!(file, imports: imported_paths, env: Mix.env(), target: Mix.target())
180180
end
181181

182182
@doc """
@@ -195,7 +195,7 @@ defmodule Mix.Config do
195195
@doc deprecated: "Use Config.Reader.read!/2 instead"
196196
@spec read!(Path.t(), [Path.t()]) :: keyword
197197
def read!(file, imported_paths \\ []) do
198-
Config.Reader.read!(file, imports: imported_paths)
198+
Config.Reader.read!(file, imports: imported_paths, env: Mix.env(), target: Mix.target())
199199
end
200200

201201
@doc """

0 commit comments

Comments
 (0)