Lists all addresses under the current build root.
build_root = get_buildroot()
source_roots = SourceRoots(build_root, tuple())
symbol_table_cls = LegacyTable
address_mapper = AddressMapper(build_root,
symbol_table_cls=symbol_table_cls,
parser_cls=LegacyPythonCallbacksParser)
// Create a Scheduler containing only the graph tasks, with a single installed goal that
// requests an Address.
goal = "list"
tasks = create_graph_tasks(address_mapper, symbol_table_cls, source_roots)
scheduler = LocalScheduler({goal: Address}, symbol_table_cls, tasks)
// Execute a request for the root.
build_request = BuildRequest(goals=[goal], spec_roots=[DescendantAddresses(build_root)])
After Change
// Create a Scheduler containing only the graph tasks, with a single installed goal that
// requests an Address.
goal = "list"
tasks = create_fs_tasks(build_root) + create_graph_tasks(address_mapper, symbol_table_cls)
scheduler = LocalScheduler({goal: Address}, symbol_table_cls, tasks)
// Execute a request for the root.
build_request = BuildRequest(goals=[goal], subjects=[DescendantAddresses("")])