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?
(* 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")
This does seem a bit problematic. I wonder if this variable is something we should only scrub for dune's tests.
Last updated: Jun 03 2023 at 18:01 UTC