Skip to content

fix(ppx): collect cookies from transitive ppx dependencies#13737

Open
Alizter wants to merge 1 commit intoocaml:mainfrom
Alizter:push-mzwotvnpmusq
Open

fix(ppx): collect cookies from transitive ppx dependencies#13737
Alizter wants to merge 1 commit intoocaml:mainfrom
Alizter:push-mzwotvnpmusq

Conversation

@Alizter
Copy link
Collaborator

@Alizter Alizter commented Mar 6, 2026

Cookies defined on a ppx_rewriter were lost when that rewriter was used as a dependency of another ppx_rewriter. This is because get_cookies only iterated over the directly listed ppx libraries. We now compute the transitive closure before collecting cookies.

Cookies defined on a ppx_rewriter were lost when that rewriter was used
as a dependency of another ppx_rewriter. This is because get_cookies only
iterated over the directly listed ppx libraries. We now compute the
transitive closure before collecting cookies.

Fixes ocaml#3426

Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter Alizter marked this pull request as ready for review March 6, 2026 12:39
@Alizter Alizter requested a review from rgrinberg March 6, 2026 12:39
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

Successfully merging this pull request may close these issues.

Interaction between nested ppx_rewriters and cookies

1 participant