agreeable-shampoo-91351
03/27/2024, 5:01 PMpython_sources(
resolve=parametrize("default", "airflow"),
overrides={"utils.py": {"resolve": "default"}},
)
But running into the following error when importing utils.py:
nownedDependencyError: Pants cannot infer owners for the following imports in the target src/pdl/builds/person/metrics/publish_release_metrics.py:
* pdl.svc.data.databricks.common.helpers.utils.get_dbutils (line: 29)
Thanks in advance!broad-processor-92400
03/31/2024, 12:46 AMagreeable-shampoo-91351
03/31/2024, 4:22 PMsvc/data/helpers
)which is parametrized to use both default and airflow resolves since it has some shared code. But I want to limit one module (say utils.py
) in that directory to use only the default resolve using overrides, but looks like pants doesn't allow that.
PANTS file in svc/data/helpers
has the following:
python_sources(
resolve=parametrize("default", "airflow"),
overrides={"utils.py": {"resolve": "default"}},
)
Running into the following error on a module(say svc/builds/publish_metrics.py- which uses default resolve) that imports utils.py:
nownedDependencyError: Pants cannot infer owners for the following imports in the target svc/builds/publish_metrics.py):
* svc.data.helpers.utils (line: 29)
broad-processor-92400
03/31/2024, 11:58 PMagreeable-shampoo-91351
04/01/2024, 4:19 PM