Skip to content

Commit ebb347a

Browse files
committed
Make protocol consolidation part of the Mix.install cache
1 parent 713633a commit ebb347a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/mix/lib/mix.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,10 @@ defmodule Mix do
663663

664664
config = Keyword.get(opts, :config, [])
665665
system_env = Keyword.get(opts, :system_env, [])
666+
consolidate_protocols? = Keyword.get(opts, :consolidate_protocols, true)
666667

667668
id =
668-
{deps, config, system_env}
669+
{deps, config, system_env, consolidate_protocols?}
669670
|> :erlang.term_to_binary()
670671
|> :erlang.md5()
671672
|> Base.encode16(case: :lower)
@@ -703,7 +704,7 @@ defmodule Mix do
703704
erlc_paths: ["src"],
704705
elixirc_paths: ["lib"],
705706
compilers: [],
706-
consolidate_protocols: Keyword.get(opts, :consolidate_protocols, true)
707+
consolidate_protocols: consolidate_protocols?
707708
]
708709

709710
started_apps = Application.started_applications()

0 commit comments

Comments
 (0)