:wave: hey! My company has been using pants for ov...
# general
c
đź‘‹ hey! My company has been using pants for over a year. When it was introduced someone added this is in our pants.toml: unmatched_cli_globs = "warn" We're now flooded with warnings. I'd like to clean these up and replace it with an error. How do I get a full list of the problematic globs? With caching they appear to show only occasionally.
h
Not sure what you mean by “full list” -
unmatched_cli_globs
means that you have some command
pants path/to/dir1:: path/to/dir2:: ...
where one of those
::
globs doesn’t match anything. So you’d have to audit all the
pants
commands that are generating those errors.
Or possibly you meant
unmatched_build_file_globs
? That is set to
warn
by default, and determines how Pants treats globs in BUILD files that don’t match anything…
In that case, try running something trivial like
pants list ::
to force Pants to evaluate all the BUILD files
c
I did mean
unmatched_cli_globs
, but the effect that I was actually looking for is
unmatched_build_file_globs
. Thanks for the correction! I'll try setting that to error and running
pants list ::