rapid-bird-79300
02/16/2023, 7:24 PMgoal_rule
. Using targets: Targets
doesn't seem to include BUILD files.bitter-ability-32190
02/16/2023, 7:25 PMSpecs
? And filter the file specs to BUILD
files?rapid-bird-79300
02/16/2023, 7:25 PM./pants my-goal app/BUILD
and we can inspect the options on that filebitter-ability-32190
02/16/2023, 7:26 PMBUILD
contents. Getting the semantic contents may be a different affair (post-macro targets/fields/etc...)rapid-bird-79300
02/16/2023, 7:27 PM12:22:21.29 [INFO] stdout: "Targets([])"
bitter-ability-32190
02/16/2023, 7:29 PMfiles = await Get(SpecsPaths, Specs, specs)
and then
specified_build_files = FilespecMatcher(
includes=[os.path.join("**", p) for p in build_file_options.patterns],
excludes=build_file_options.ignores,
).matches(files)
bitter-ability-32190
02/16/2023, 7:29 PMBUILD
files genericallybitter-ability-32190
02/16/2023, 7:30 PMrapid-bird-79300
02/16/2023, 7:30 PMrapid-bird-79300
02/16/2023, 7:30 PMbitter-ability-32190
02/16/2023, 7:31 PM--changed-since
?rapid-bird-79300
02/16/2023, 7:31 PM/pants my-goal --changed-since=origin/master app/BUILD
?rapid-bird-79300
02/16/2023, 7:32 PMapp/BUILD
was provided as input to the goalbitter-ability-32190
02/16/2023, 7:33 PMmy-goal
take in Specs
and filter just to BUILD
files using the above code
⢠Run it using ./pants --changed-since my-goal
bitter-ability-32190
02/16/2023, 7:35 PMrapid-bird-79300
02/16/2023, 7:35 PMtargets: Targets,
spec: Specs,
seeing some rule graph errorsbitter-ability-32190
02/16/2023, 7:36 PMtargets
?rapid-bird-79300
02/16/2023, 7:36 PMrapid-bird-79300
02/16/2023, 7:37 PMbitter-ability-32190
02/16/2023, 7:37 PMspecs
to get `targets`:
Get(
FilteredTargets,
Specs,
specs,
)
rapid-bird-79300
02/16/2023, 7:37 PMbitter-ability-32190
02/16/2023, 7:38 PM