opam admin add-constraint
does too much reformatting
#3993
Projects
Milestone
opam admin add-constraint
does too much reformatting
#3993
I tried to use
opam admin add-constraint
and I found out that apart from adding the correct constraint it also reformat unrelated lines in thedepends
field.This makes it a bit impractical to use.
For example
opam admin add-constraint dune>=1.11
changeshardcaml.v0.12.0
,lwt.4.2.1
and other similar files in the following manner:This would require to modify
OpamFile.Syntax.to_string_with_preserved_format
by detecting which elements changed and only modifying the constraints bloc for those elements only, leaving the rest of the line untouched.Tested with opam 2.0.5
The text was updated successfully, but these errors were encountered: