Skip to content

Commit

Permalink
Merge pull request #700 from diml/ignore-config-file-inside-dune
Browse files Browse the repository at this point in the history
Do not load the user configuration file when INSIDE_DUNE is set
  • Loading branch information
rgrinberg authored Apr 12, 2018
2 parents db41c35 + 294d693 commit 0e7c127
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
next
----

- Do not load the user configuration file when running inside dune
(#..., @diml)

1.0+beta20 (10/04/2018)
-----------------------

Expand Down
6 changes: 5 additions & 1 deletion bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ let common =
match config_file with
| No_config -> Config.default
| This fname -> Config.load_config_file ~fname
| Default -> Config.load_user_config_file ()
| Default ->
if Config.inside_dune then
Config.default
else
Config.load_user_config_file ()
in
let config =
Config.merge config
Expand Down

0 comments on commit 0e7c127

Please sign in to comment.