File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,10 @@ Unreleased
147
147
- Do not log ` live_words ` and ` free_words ` in trace file. This allows using
148
148
` Gc.quick_stat ` which does not scan the heap. (#4643 , @emillon )
149
149
150
+ - Don't let command run by Dune observe the environment variable
151
+ ` INSIDE_EMACS ` in order to improve reproducibility (#4680 ,
152
+ @jeremiedimino )
153
+
150
154
2.9.0 (unreleased)
151
155
------------------
152
156
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ let init ~capture_outputs =
14
14
else
15
15
Colors. setup_env_for_colors Env. initial
16
16
in
17
- Env. add env ~var: " INSIDE_DUNE" ~value: " 1" )
17
+ let env = Env. add env ~var: " INSIDE_DUNE" ~value: " 1" in
18
+ (* To improve reproducibility, we don't let command executed by Dune
19
+ observe whether Dune is run inside emacs or not. One such program that
20
+ behave differently when run inside emacs is Dune itself and we sometimes
21
+ run Dune from inside Dune, for instnace in cram tests, so it is
22
+ important to do this. *)
23
+ Env. remove env ~var: " INSIDE_EMACS" )
18
24
19
25
let env () = Fdecl. get env
You can’t perform that action at this time.
0 commit comments