Skip to content

Commit

Permalink
Add goals to run_info (pantsbuild#11374)
Browse files Browse the repository at this point in the history
Add a new key "goals" containing the list of goals executed in this pants run, to the `run_info` structure in `RunTracker`, which will be output when the `run_information` method is called. This will allow us to get rid of the slightly-messy code around `_v2_goal_rule_names`, which contains the same information.
  • Loading branch information
gshuflin authored Dec 23, 2020
1 parent 0e76596 commit 7d82283
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/python/pants/goal/run_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def start(self, all_options: Options, run_start_time: float) -> None:
self._main_root_workunit.start(run_start_time)
self.report.start_workunit(self._main_root_workunit)

self.run_info.add_info("goals", all_options.goals)
goal_names: Tuple[str, ...] = tuple(all_options.goals)
self._v2_goal_rule_names = goal_names

Expand Down

0 comments on commit 7d82283

Please sign in to comment.