.opam-switch/environment
file format is ambiguous and can lead to errors
#4325
Milestone
.opam-switch/environment
file format is ambiguous and can lead to errors
#4325
Currently, the
.opam-switch/environment
file is wrongly parsed byopam
when the value of a variable is empty:If my file is
CPP
will wrongly be set toUpdated by package ocaml-base-compiler
. This will prevent creating another switch aftereval $(opam env)
because ocaml will fail to compile with a wrong CPP var.An immediate fix should be to stop writing these "Updated by package $name" comments. A long-term fix should be to use a more standard format.
The text was updated successfully, but these errors were encountered: