Skip to content

Comments

plugin_modules: add plugin_module_deps for supporting java_library deps#445

Merged
alexeagle merged 1 commit intobazelbuild:masterfrom
robfig:plugin_modules_pr
Dec 4, 2019
Merged

plugin_modules: add plugin_module_deps for supporting java_library deps#445
alexeagle merged 1 commit intobazelbuild:masterfrom
robfig:plugin_modules_pr

Conversation

@robfig
Copy link
Contributor

@robfig robfig commented Nov 26, 2019

Pass classpath and option to Soy compiler.

Add unit test to confirm it works with a custom print directive and function.

Fixes #197

Copy link
Contributor

@Yannic Yannic left a comment

Choose a reason for hiding this comment

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

Thanks! Added some comments.

@robfig
Copy link
Contributor Author

robfig commented Nov 26, 2019

Thanks for the review. Still working on update to include soy_plugin

@robfig robfig force-pushed the plugin_modules_pr branch 2 times, most recently from df6fc52 to 822ccbf Compare November 29, 2019 03:17
Copy link
Contributor Author

@robfig robfig left a comment

Choose a reason for hiding this comment

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

@Yannic Updated to use a plugin structure. Despite it being super simple, I had a lot of doubts on the details where I felt like I was making arbitrary choices. I left comments about them, so feel free to weigh in, or if you are also indifferent / think it doesn't matter, then that's good to know too. Thanks and happy 🦃

🦃 🦃 🦃

Copy link
Contributor

@Yannic Yannic left a comment

Choose a reason for hiding this comment

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

This looks pretty good! Just a few more comments.

@robfig
Copy link
Contributor Author

robfig commented Nov 29, 2019

Thanks for the review - addressed all your comments. PTAL

Copy link
Contributor

@Yannic Yannic left a comment

Choose a reason for hiding this comment

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

It seems like closure_templates_plugin.bzl was not pushed.
Also, please remember to export closure_templates_plugin in //closure:defs.bzl.

@robfig robfig force-pushed the plugin_modules_pr branch 2 times, most recently from 203bfe2 to 1ba2613 Compare November 30, 2019 14:21
@robfig
Copy link
Contributor Author

robfig commented Nov 30, 2019

Thanks - updated and squashed

@robfig
Copy link
Contributor Author

robfig commented Nov 30, 2019

Removed the now-failing test for the print directive, indicated by the build failure

Copy link
Contributor

@Yannic Yannic left a comment

Choose a reason for hiding this comment

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

I'm feeling very very bad for repeatedly asking you for changes, but there's one more thing :/.

@robfig robfig force-pushed the plugin_modules_pr branch from 9fe6e68 to 42419a1 Compare December 1, 2019 15:24
Copy link
Contributor Author

@robfig robfig left a comment

Choose a reason for hiding this comment

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

Nonsense, this is how learning and development works. I appreciate your comments, thank you.

Copy link
Contributor

@Yannic Yannic left a comment

Choose a reason for hiding this comment

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

I absolutely agree, but some people get frustrated if they have to go through many rounds of review and I wanted to make sure you don't feel that way. Glad you're happy about it and thank you for the contribution.

This LGTM now, deferring to @alexeagle for authoritative review and merging.

@robfig robfig force-pushed the plugin_modules_pr branch from 42419a1 to 0a82c56 Compare December 2, 2019 16:55
@robfig
Copy link
Contributor Author

robfig commented Dec 2, 2019

Thank you!

@iteriani
Copy link
Contributor

iteriani commented Dec 2, 2019

seems fine to me. internally we call this attribute "plugins".

I am guessing this doesn't work for javascript right?

@Yannic
Copy link
Contributor

Yannic commented Dec 2, 2019

@iteriani Right now, this only works for Javascript. To make it work for Java, we'd also need to modify closure_java_template_library (soy->Python isn't supported at all in rules_closure).

Renaming to plugins sgtm.

@robfig robfig force-pushed the plugin_modules_pr branch from c7247a3 to a5ce474 Compare December 2, 2019 21:05
@robfig
Copy link
Contributor Author

robfig commented Dec 2, 2019

Renamed to plugins

Pass classpath and option to Soy compiler in closure_js_template_library.

Add unit test to confirm it works with a custom function.

Rename plugin_modules to plugins to match Google's internal rule.

Fixes bazelbuild#197
@alexeagle alexeagle merged commit d0cda5b into bazelbuild:master Dec 4, 2019
@robfig
Copy link
Contributor Author

robfig commented Dec 5, 2019

Found an issue, here's a fix:
#446

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugin_modules doesn't work

5 participants