https://pantsbuild.org/ logo
#general
Title
# general
v

victorious-potato-60449

03/08/2017, 9:04 AM
Hi, I’m trying to add a task to the existing
binary
goal that I want to be the very last thing to happen. I have registered it successfully on the goal and it is being run, just not at the right time. As per the here: http://www.pantsbuild.org/dev_tasks.html#task-installation-associate-task-with-goals I understand that you need to have a
prepare
method that declares
round_manager.require_data()
with a product_type. After looking through the source code I found that this is the class that I want my task to be executed after: https://github.com/pantsbuild/pants/blob/d30cca1e0ecb9cc0e1b7e2cd0ff6e7e077e62a52/contrib/go/src/python/pants/contrib/go/tasks/go_binary_create.py. However,
GoBinaryCreate
doesn’t implement the method
product_types
. Am I right then that there is no way for me to tell my task to happen after GoBinaryCreate? I guess I could make a pull request adding the
product_types
method, but I would like to know if there is another way before I go that direction. Thanks!