future-oxygen-10553
02/14/2023, 7:24 PMops_core.data_io.pathlib
from which a function is imported, and a client client_code.client
that uses the import. However, pants
warns me that the dependency can’t be inferred. Any help is appreciated!future-oxygen-10553
02/14/2023, 7:25 PM❯ pants --no-pantsd dependencies --transitive src/client_code/client_code/client.py
14:21:31.74 [WARN] Pants cannot infer owners for the following imports in the target src/client_co
de/client_code/client.py:
* ops_core.data_io.pathlib.AnyPath (line: 1)
If you do not expect an import to be inferrable, add `# pants: no-infer-dep` to the import line. O
therwise, see <https://www.pantsbuild.org/v2.14/docs/troubleshooting#import-errors-and-missing-depe>
ndencies for common problems.
future-oxygen-10553
02/14/2023, 7:26 PM--no-pantsd
is only so that the warning shows up every time, otherwise it’s suppressed after the first timefuture-oxygen-10553
02/14/2023, 7:26 PMpants roots
is just src
.enough-analyst-54434
02/14/2023, 7:27 PMroots
are the issueenough-analyst-54434
02/14/2023, 7:27 PMenough-analyst-54434
02/14/2023, 7:27 PMfuture-oxygen-10553
02/14/2023, 7:27 PMfuture-oxygen-10553
02/14/2023, 7:28 PMenough-analyst-54434
02/14/2023, 7:28 PMenough-analyst-54434
02/14/2023, 7:28 PMfuture-oxygen-10553
02/14/2023, 7:29 PMenough-analyst-54434
02/14/2023, 7:29 PMfuture-oxygen-10553
02/14/2023, 7:30 PMenough-analyst-54434
02/14/2023, 7:30 PMenough-analyst-54434
02/14/2023, 7:30 PMfuture-oxygen-10553
02/14/2023, 7:32 PMfuture-oxygen-10553
02/14/2023, 7:33 PMfuture-oxygen-10553
02/14/2023, 7:36 PMresolves
future-oxygen-10553
02/14/2023, 7:40 PMparametrize
the resolve in the ops_core
package to cover client_code
as wellfuture-oxygen-10553
02/14/2023, 7:40 PMenough-analyst-54434
02/14/2023, 7:44 PMenough-analyst-54434
02/14/2023, 7:45 PMfuture-oxygen-10553
02/14/2023, 7:48 PMfuture-oxygen-10553
02/14/2023, 7:49 PMenough-analyst-54434
02/14/2023, 7:52 PMpants.toml
in the resolves section - "Update over here too.". And a mulligan to anyone who doesn't read the comment.