8ec8a7d4d8260c9da7f920cda61255d580e326ff,src/python/pants/bin/goal_runner.py,GoalRunnerFactory,__init__,#GoalRunnerFactory#Any#Any#Any#Any#Any#Any#Any#Any#,33
Before Change
)
suggestion = f"run `{pants_bin_name} {suggested_owners_args} {v1_goals}`."
trying_to_use_globs = any("*" in spec.glob for spec in self._specs.filesystem_specs)
if trying_to_use_globs:
suggestion = (
f"run `{pants_bin_name} --owner-of=src/python/f1.py --owner-of=src/python/f2.py "
f"{v1_goals}`. (You must explicitly enumerate every file because " f"`--owner-of` does "
f"not support globs.)"
)
raise FilesystemSpecsUnsupported(
f"Instead of running `{approximate_original_command}`, {suggestion}\n\n"
f"Why? Filesystem specs like `src/python/example.py` and `src/**/*.java` (currently) only "
f"work when running goals implemented with the V2 engine. When using V1 goals, either use "
After Change
BuildFileAddresses, [self._specs.filesystem_specs]
)
updated_address_specs = AddressSpecs(
dependencies=tuple(
SingleAddress(a.spec_path, a.target_name) for a in owned_addresses
),
tags=self._specs.address_specs.matcher.tags,
exclude_patterns=self._specs.address_specs.matcher.exclude_patterns,
)
self._specs = Specs(
address_specs=updated_address_specs,
filesystem_specs=FilesystemSpecs([]),
)
def _determine_v1_goals(self, options: Options) -> List[Goal]:
Check and populate the requested goals for a given run.
v1_goals, ambiguous_goals, _ = options.goals_by_version
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: 8ec8a7d4d8260c9da7f920cda61255d580e326ff
Time: 2020-02-03
Author: ericarellano@me.com
File Name: src/python/pants/bin/goal_runner.py
Class Name: GoalRunnerFactory
Method Name: __init__
Project Name: pantsbuild/pants
Commit Name: 4d92ff50d3f9be9e4177f423a3e5701a3137c09b
Time: 2018-06-14
Author: ity@users.noreply.github.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name: LegacyBuildGraph
Method Name: inject_addresses_closure
Project Name: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/source_mapper.py
Class Name: EngineSourceMapper
Method Name: iter_target_addresses_for_sources