https://pantsbuild.org/ logo
#general
Title
# general
s

shy-advantage-49800

11/11/2022, 9:49 PM
Why pants can't infer it? 😢
Copy code
22:47:26.30 [WARN] Pants cannot infer owners for the following imports in the target tests/test_http.py:run:

  * tests.response.Response (line: 11)

If you do not expect an import to be inferrable, add `# pants: no-infer-dep` to the import line. Otherwise, see <https://www.pantsbuild.org/v2.14/docs/troubleshooting#import-errors-and-missing-dependencies> for common problems.
1
got it, it's because of the
root_patterns
was wrongly set
thanks 🙏
5 Views