@@ -352,8 +352,6 @@ defmodule Mix do
352352 * `MIX_INSTALL_DIR` - (since v1.12.0) specifies directory where `Mix.install/2` keeps
353353 install cache
354354
355- * `MIX_INSTALL_FORCE` - (since v1.13.0) runs `Mix.install/2` with empty install cache
356-
357355 * `MIX_PATH` - appends extra code paths
358356
359357 * `MIX_PROFILE` - a list of comma-separated Mix tasks to profile the time spent on
@@ -661,13 +659,6 @@ defmodule Mix do
661659 This function can only be called outside of a Mix project and only with the
662660 same dependencies in the given VM.
663661
664- The `MIX_INSTALL_RESTORE_PROJECT_DIR` environment variable may be specified.
665- It should point to a previous installation directory, which can be obtained
666- with `Mix.install_project_dir/0` (after calling `Mix.install/2`). Using a
667- restore dir may speed up the installation, since matching dependencies do
668- not need be refetched nor recompiled. This environment variable is ignored
669- if `:force` is enabled.
670-
671662 ## Options
672663
673664 * `:force` - if `true`, runs with empty install cache. This is useful when you want
@@ -783,6 +774,21 @@ defmodule Mix do
783774 The contents inside `defmodule` will only be expanded and executed
784775 after `Mix.install/2` runs, which means that any struct, macros,
785776 and imports will be correctly handled.
777+
778+ ## Environment variables
779+
780+ The `MIX_INSTALL_DIR` environment variable configures the directory that
781+ caches all `Mix.install/2`.
782+
783+ The `MIX_INSTALL_FORCE` is available since Elixir v1.13.0 and forces
784+ `Mix.install/2` to discard any previously cached entry of the current install.
785+
786+ The `MIX_INSTALL_RESTORE_PROJECT_DIR` environment variable may be specified
787+ since Elixir v1.16.2. It should point to a previous installation directory,
788+ which can be obtained with `Mix.install_project_dir/0` (after calling `Mix.install/2`).
789+ Using a restore dir may speed up the installation, since matching dependencies
790+ do not need be refetched nor recompiled. This environment variable is ignored
791+ if `:force` is enabled.
786792 """
787793 @ doc since: "1.12.0"
788794 def install ( deps , opts \\ [ ] )
@@ -1057,6 +1063,7 @@ defmodule Mix do
10571063 Returns the directory where the current `Mix.install/2` project
10581064 resides.
10591065 """
1066+ @ doc since: "1.16.2"
10601067 @ spec install_project_dir ( ) :: Path . t ( )
10611068 def install_project_dir ( ) do
10621069 case Mix.State . get ( :installed ) do
0 commit comments