Skip to content

Commit 05855af

Browse files
committed
Pass environment and target forward in mix deps.partition
1 parent cf34fcc commit 05855af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/mix/lib/mix/tasks/deps.partition.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ defmodule Mix.Tasks.Deps.Partition do
7272
:use_stdio,
7373
:stderr_to_stdout,
7474
line: 1_000_000,
75-
env: [{~c"MIX_OS_CONCURRENCY_LOCK", ~c"false"} | env_vars]
75+
env: [
76+
{~c"MIX_OS_CONCURRENCY_LOCK", ~c"false"},
77+
{~c"MIX_ENV", Atom.to_charlist(Mix.env())},
78+
{~c"MIX_TARGET", Atom.to_charlist(Mix.target())}
79+
| env_vars
80+
]
7681
]
7782

7883
ports =

0 commit comments

Comments
 (0)