fresh-cat-90827
03/03/2022, 9:16 AMBUILD
files to see if they would raise any warnings when target is being used?fresh-cat-90827
03/03/2022, 9:16 AMpython_tests(
name="tests",
dependencies=[":testdata"],
sources=[
"tests/test_*.py",
"tests/foo.py",
],
)
if foo.py
doesn’t exist, then when running ./pants test
command, we’ll see a warning
[WARN] Unmatched glob from project/project:tests's `sources` field:
"project/project/tests/foo.py"
Is it possible OOTB to get warnings about unmatched globs without triggering running tests across all BUILD
files and then grepping the output for [WARN] Unmatched glob
?fresh-cat-90827
03/03/2022, 9:17 AMfresh-cat-90827
03/03/2022, 2:32 PMhappy-kitchen-89482
03/03/2022, 2:46 PM./pants --files-not-found-behavior=error filedeps ::
happy-kitchen-89482
03/03/2022, 2:46 PMhappy-kitchen-89482
03/03/2022, 2:47 PMfresh-cat-90827
03/03/2022, 2:54 PM