Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No longer generate config for mix new (#8932)
The fact we explicitly told developers to configure their application in the config file and access it with `Application.get_env/2`, probably led many to rely on the application environment when better options are available. Furthermore, `mix new` is mostly used for libraries, where config is even less important, as configuration from libraries is not transitive. Developers that need the config, can simply add it back by calling: echo "use Mix.Config" > config/config.exs This commit removes config for new apps and deprecate the `--config` flag, which cannot perform deep merges. Note we do keep the config for umbrellas, as umbrellas are about applications and not libraries (plus we need the umbrella children to share and point to an existing config). Closes #8815. Closes #8811.
- Loading branch information
Showing
6 changed files
with
25 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters