Does dune 3 do some env variable removal? It seems to be removing INSIDE_EMACS when using dune exec -- dev/dune-dbg
I don't know, but yes, it can mess with the env sometimes. But I'm suprised. Maybe it is tracking that var in some deps field?
Yes
(* To improve reproducibility, we don't let command executed by Dune
observe whether Dune is run inside emacs or not. One such program that
behave differently when run inside emacs is Dune itself and we sometimes
run Dune from inside Dune, for instance in cram tests, so it is
important to do this. *)
Env.remove env ~var:"INSIDE_EMACS")
https://github.com/ocaml/dune/pull/4680
This does seem a bit problematic. I wonder if this variable is something we should only scrub for dune's tests.
Last updated: Oct 13 2024 at 01:02 UTC