summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@dashbit.co>2023-04-28 08:23:47 +0200
committerJosé Valim <jose.valim@dashbit.co>2023-04-28 08:23:51 +0200
commit1e2f1706dcea8343b9d7369db633f87c687a6c7c (patch)
treee14de739c36e9d66e9a2f2a2607c53768760b5af
parentea4d5ad3e41bc39ff2aec4b2c5d5aa36dafe34a0 (diff)
downloadelixir-1e2f1706dcea8343b9d7369db633f87c687a6c7c.tar.gz
Prefer Application.put_all_env/2 on Mix.install/2
-rw-r--r--lib/mix/lib/mix.ex9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/mix/lib/mix.ex b/lib/mix/lib/mix.ex
index 26f4c663f..2879249c4 100644
--- a/lib/mix/lib/mix.ex
+++ b/lib/mix/lib/mix.ex
@@ -644,10 +644,11 @@ defmodule Mix do
names with respective values as binaries. The system environment is made part
of the `Mix.install/2` cache, so different configurations will lead to different apps
- * `:config` (since v1.13.0) - a keyword list of keyword lists with application
- configuration to be set before the apps loaded. The configuration is part of
- the `Mix.install/2` cache, so different configurations will lead to different
- apps
+ * `:config` (since v1.13.0) - a keyword list of keyword lists of compile-time
+ configuration. The configuration is part of the `Mix.install/2` cache, so
+ different configurations will lead to different apps. For this reason, you
+ want to minimize the amount of configuration set through this option.
+ Use `Application.put_all_env/4` for setting other runtime configuration.
* `:config_path` (since v1.14.0) - path to a configuration file. If a `runtime.exs`
file exists in the same directory as the given path, it is loaded too.