I’m seeing the “Unmatched Glob” problem in my proj...
# general
s
I’m seeing the “Unmatched Glob” problem in my project, but the files its referring to were deleted a while back. Is there some sort of caching mechanism that means it’s still looking for these files? I ran
./pants tailor ::
as well as
./pants generate-lockfiles
but it’s still there.
Copy code
14:41:38.91 [WARN] Unmatched globs from src/wanpan/extraction:extraction's `sources` field: ["src/wanpan/extraction/*.py", "src/wanpan/extraction/*.pyi"], excludes: ["src/wanpan/extraction/*_test.py", "src/wanpan/extraction/*_test.pyi", "src/wanpan/extraction/conftest.py", "src/wanpan/extraction/test_*.py", "src/wanpan/extraction/test_*.pyi", "src/wanpan/extraction/tests.py", "src/wanpan/extraction/tests.pyi"]

Do the file(s) exist? If so, check if the file(s) are in your `.gitignore` or the global `pants_ignore` option, which may result in Pants not being able to see the file(s) even though they exist on disk. Refer to <https://www.pantsbuild.org/v2.14/docs/troubleshooting#pants-cannot-find-a-file-in-your-project>.
The BUILD file at that location doesn’t even have
extraction
as a target:
Copy code
python_sources()

shell_sources(
    name="launch_ec2_extraction",
)
w
are there any python files at all in that directory? it sounds like not
if not (and there aren’t supposed to be) you’d want to delete the
python_sources()
target
s
Ahhhh I bet that’s it!