What do folks think about the need for an additional task framework (e.g. Invoke, Rake, Make, etc.) in repositories managed via Pants? Do you use a task framework for custom tasks, or do you bake them into Pants via plugins?
h
happy-kitchen-89482
03/01/2021, 7:50 PM
If possible it's better to write plugins, because then you get the right invalidation, caching and concurrency semantics. If you shell out to something like Make, you have to know how to capture and encapsulate the state differences it causes, and that can get really tricky if trying to do it in a general-purpose way.
happy-kitchen-89482
03/01/2021, 7:51 PM
But where there are reusable patterns we do want to capture them. So I can totally imagine composing functionality out of rule kits that effectively give you the level of general-purposeness you need.
l
limited-insurance-37393
03/01/2021, 7:51 PM
Roger that. My current use case is for executing Copier (same idea as cookiecutter) to generate a directory structure from a template and wrap it with some default parameters.
limited-insurance-37393
03/01/2021, 7:52 PM
Definitely doable with Pants, just made me think about the general topic.