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

Make format generation idempotent #1047

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

reimai
Copy link
Contributor

@reimai reimai commented Jun 5, 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.

Copy link
Member

@mkurz mkurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit.
Will be part of Play's next patch release.

@mkurz mkurz merged commit 50b2228 into playframework:main Jun 17, 2024
17 checks passed
@mkurz
Copy link
Member

mkurz commented Jun 17, 2024

@Mergifyio backport 2.10.x

Copy link
Contributor

mergify bot commented Jun 17, 2024

backport 2.10.x

✅ Backports have been created

mergify bot added a commit that referenced this pull request Jun 17, 2024
[2.10.x] Make format generation idempotent (backport #1047) by @reimai
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