Mix.Project.clear_deps_cache
You're seeing just the function
clear_deps_cache
, go back to Mix.Project module for more information.
Specs
clear_deps_cache() :: :ok
Clears the dependency for the current environment.
Useful when dependencies need to be reloaded due to change of global state.
For example, Nerves uses this function to force all dependencies to be reloaded after it updates the system environment. It goes roughly like this:
- Nerves fetches all dependencies and looks for the system specific deps
- Once the system specific dep is found, it loads it alongside env vars
- Nerves then clears the cache, forcing dependencies to be loaded again
- Dependencies are loaded again, now with an updated env environment