Hey friends, is there any way to make the warn of ...
# general
r
Hey friends, is there any way to make the warn of type
[WARN] Pants cannot infer owners for the following imports in the target...
be an error instead? We're having some issues with people accidentally merging commits with missing dependencies in their requirements.txt and this warning is great to notice this issue, and we'd like to block our CI pipeline when this happens. I checked the docs and noticed Pants has both
unmatched_build_file_globs
and
unmatched_cli_globs
values to play with, but they seem to be unrelated to what I want to do. Thank you for the amazing work! 👖
👀 1
1
r
Hey @wide-midnight-78598! That's exactly what I wanted. I thought it was something in the
[GLOBAL]
table. I didn't check other options. Sorry about that. Thank you so much for your suggestion. ❤️
👍 1
w
No prob, as I was just saying recently, Pants has a lot of ways to solve problems - with the new docs using Algolia, searching for these kinda things is about 10x easier 🙂
😅 1
r
Tbh, after pants started using Algolia, I am struggling a lot more to find things in the docs. Oops. I tried searching for
[Warn]
at first, then looked at the reference for the
[GLOBAL]
options. Can you point to me how you did find this option using the search feature?
w
I looked at Github's search to run into that code, so I knew it had to do with the dependency inference system (unsurprisingly), and then I just wrote the error into algolia
👍 1
I don't know why our blog articles come first, though, should be docs or refs - but yeah, high-level it's the first subsystem
👍 1
r
Ooooh, I didn't know it would work with the entire text there. Thank you so much. I usually just search for very small snippets because I always feel the search engine will not work well if I write something too big. I guess I was wrong. I hope I can find more stuff by doing this in the future lol.
w
The previous search engine was pretty rough - I've used Algolia a lot, including implementing it on an enterprise site. Just throw a lot of terms in there, occasionally quote if needed. It's surprisingly good
👍 1
r
Hey, thanks again. Both suggestions were great! :)))
👍 1