Also, I sometimes (maybe every 3 times I run a com...
# general
c
Also, I sometimes (maybe every 3 times I run a command) an error saying "unmatched globs in project's source fields" but there are no changes in any file between the runs, so I am confused. Do I miss some config?
1
I think that message comes from the daemon, when it starts.
b
Yes. You'll see it every time pants encounters the
warn
in it's code. However work done is memoized in the daemon, so realistically you'll see it when you restart daemon or don't use it
c
Thank you for the answer. It's not clear what that warning is printed, because I have files in that project, and other targets work fine. I'll see if I can figure it out 🙂
b
If you have a glob for a targets sources, and that glob fails to match any files that's when you should see the warning. It should be logging the targets' address
h
You can also convert it to an error by setting this in pants.toml https://www.pantsbuild.org/docs/reference-global#unmatched_build_file_globs
Copy code
[GLOBAL]
unmatched_build_file_globs = "error"
c
I had files in the places it warned about, that's why I was confused. I started migrating real projects and there's no warning. I will keep an eye on it, if I can reproduce it I will send more details. Thanks!
👍 1