Skip to content

Add jvm_flags support to Twirl toolchain and update to new annex Scala toolchain#53

Open
jjudd wants to merge 1 commit into
masterfrom
jjudd-annex-toolchain-update
Open

Add jvm_flags support to Twirl toolchain and update to new annex Scala toolchain#53
jjudd wants to merge 1 commit into
masterfrom
jjudd-annex-toolchain-update

Conversation

@jjudd

@jjudd jjudd commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@jjudd jjudd requested a review from jadenPete June 12, 2026 16:12
@jjudd jjudd changed the title Add jvm_flags support to Twirl toolchain and update to new annex Scal… Add jvm_flags support to Twirl toolchain and update to new annex Scala toolchain Jun 12, 2026
@jjudd jjudd force-pushed the jjudd-annex-toolchain-update branch from 73257ff to b47313e Compare June 12, 2026 19:18
"scala_version_setting",
)

def _twirl_toolchain_transition_impl(settings, attr):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are we no longer managing the Twirl configuration in this transition? Also, can we reuse the transitions from rules_scala_annex instead of manually setting and resetting the Scala configuration?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh, is it because we've deleted the Twirl configuration settings in favor of having the Scala version completely determine the Twirl toolchain? If so, this looks good to me. But I still think it'd be favorable to reuse the transitions from rules_scala_annex.

executable = True,
doc = "Tool used to compile Twirl templates",
),
"jvm_flags": attr.string_list(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rather than making this an attribute on the Twirl toolchain, why don't we use the JVM arguments on the Scala toolchain?

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