Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_with_preserved_format doesn't preserve the order of filters #6195

Open
kit-ty-kate opened this issue Sep 11, 2024 · 0 comments
Open

write_with_preserved_format doesn't preserve the order of filters #6195

kit-ty-kate opened this issue Sep 11, 2024 · 0 comments

Comments

@kit-ty-kate
Copy link
Member

Using opam admin add-constraint on an opam file containing the following:

depends: [
  ("ocaml" {< "4.04.1" & with-test} | "sexplib0" {with-test})
]

the resulting diff will show a unique difference (nothing else was changed):

-  ("ocaml" {< "4.04.1" & with-test} | "sexplib0" {with-test})
+  ("ocaml" {with-test & < "4.04.1"} | "sexplib0" {with-test})

This shouldn't happen and the command should preserve the order of the filters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant