victorious-wire-62055
06/27/2025, 7:08 PMpython_sources
targets but no target named for the folder itself
ResolveError: The address projects/hello_world:hello_world from the `dependencies` field of the target projects/hello_world/build.py:build does not exist.
The BUILD
file looks like this:
python_sources(
name="src-python"
sources=[*python_sources.sources.default, "!build.py"],
)
python_sources(
name="build",
sources=["build.py"],
overrides={
"build.py": {"dependencies": ["!./__init__.py"]},
},
)
If I remove the name
from the first python_sources, that resolves the error, but pants peek
on both the :build target and build.py do not show any dependency on the folder itself. What am I missing here?gorgeous-winter-99296
06/27/2025, 7:29 PMpython_source
for the latter rule affect this?victorious-wire-62055
06/27/2025, 7:55 PMvictorious-wire-62055
06/27/2025, 8:33 PMResolveError: The address projects/hello_world:hello_world from the `dependencies` field of the target projects/hello_world:build does not exist.