e23ca1b352022d9715d8046b71079cba2250fcc1,src/python/pants/backend/project_info/list_roots.py,,all_roots,#Any#,25
Before Change
snapshot = await Get[Snapshot](PathGlobs(globs=sorted(all_paths)))
all_source_roots: Set[SourceRoot] = set()
// The globs above can match on subdirectories of the source roots.
// For instance, `src/*/` might match "src/rust/" as well as
After Change
// For instance, `src/*/` might match "src/rust/" as well as
// "src/rust/engine/process_execution/bazel_protos/src/gen".
// So we use find_by_path to verify every candidate source root.
responses = await MultiGet (Get[OptionalSourceRoot](SourceRootRequest(d)) for d in snapshot.dirs)
all_source_roots = {
response.source_root for response in responses if response.source_root is not None
}
return AllSourceRoots(all_source_roots)
@goal_rule
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: pantsbuild/pants
Commit Name: e23ca1b352022d9715d8046b71079cba2250fcc1
Time: 2020-05-29
Author: benjyw@gmail.com
File Name: src/python/pants/backend/project_info/list_roots.py
Class Name:
Method Name: all_roots
Project Name: pantsbuild/pants
Commit Name: 82be0c568fe0a74393cd1cda95e702b51b888394
Time: 2020-06-17
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/pytest_coverage.py
Class Name:
Method Name: generate_coverage_report
Project Name: pantsbuild/pants
Commit Name: 56f5c0a72ecb2ea78c3a2db78ffe9efa77e639bd
Time: 2020-08-16
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/goals/test.py
Class Name:
Method Name: run_tests