Skip to content

fix(nix): apply opam patches in their declared order - #16994

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:nix-opam-patch-order
Nov 10, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:nix-opam-patch-order

Conversation

@Alizter

@Alizter Alizter commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Apply opam patches in the order declared by the top-level patches field rather than filename order. Handle singleton/list declarations, line comments, and quoted filenames without changing the other metadata readers. Unsupported block comments and escaped patch names fail explicitly; patch filters remain unevaluated.

Split out of #16969.

Read the top-level patches field in declaration order, supporting
singleton/list values, line comments, and quoted delimiters. Leave the
other metadata readers unchanged. Reject block comments and escaped
patch names explicitly; patch filters remain unevaluated.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter force-pushed the nix-opam-patch-order branch from de59a2e to 6d09792 Compare November 10, 2026 22:22
@Alizter
Alizter marked this pull request as ready for review November 10, 2026 23:12
@Alizter
Alizter merged commit 18e9aef into ocaml:main Nov 10, 2026
36 of 37 checks passed
@Alizter
Alizter deleted the nix-opam-patch-order branch November 10, 2026 23:12
@Alizter Alizter added this to the 3.26.0 milestone Nov 11, 2026
Alizter added a commit that referenced this pull request Nov 25, 2026
Update both Nix and opam CI to OxCaml `5.4.0-ox9`, sharing
compiler/repository pins and the upstream odoc port from
ocaml/odoc#1520. Update the affected integration expectations and keep
the OxCaml patch guards enabled. Formatting and unrelated CI cleanups
remain separate follow-ups.

Follows merged #16968, #16985, #16990, and #16994.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant