Skip to content

[2.10.x] Make format generation idempotent (backport #1047) by @reimai#1052

Merged
mergify[bot] merged 1 commit into2.10.xfrom
mergify/bp/2.10.x/pr-1047
Jun 17, 2024
Merged

[2.10.x] Make format generation idempotent (backport #1047) by @reimai#1052
mergify[bot] merged 1 commit into2.10.xfrom
mergify/bp/2.10.x/pr-1047

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jun 17, 2024

Fixes

Code generated by JsMacroImpl is slightly different between compilations, the order of sealed trait's subclasses keeps changing, because they are collected into a Set in directKnownSubclasses method. I've simply changed that to a LinkedHashSet.
We're using bazel as a build tool and it's important for build to produce an exact same file for the same input, otherwise it's dependent targets are re-evaluated.

Purpose

Have better caching in bazel project using play framework.


This is an automatic backport of pull request #1047 done by Mergify.

(cherry picked from commit 27c2a35)
@mergify mergify bot merged commit 34d9b20 into 2.10.x Jun 17, 2024
@mkurz mkurz deleted the mergify/bp/2.10.x/pr-1047 branch June 17, 2024 09:48
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.

2 participants