bazel-contrib / bazel-contrib/rules_python

[gazelle] Support -index=lazy

Open
#3,396 0 comments 0 reactions 0 assignees View on GitHub
gazelle
Dominant language
Starlark
Stars
688
Forks
721
Avg merge
15h 7m
Merged PRs (30d)
76

Description

Gazelle supports `-index=lazy` to speed up indexing directories. This currently fails on Python with a bunch of errors like
```
my_project/foo/bar.py: "foo.other.baz" is an invalid dependency
```

Perhaps a `gazelle:py_search` directive is needed?

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure in Gazelle with Python and `-index=lazy`, focusing on the reported invalid dependency errors such as `foo.other.baz`. Investigate whether a `gazelle:py_search` directive is needed; done means lazy indexing works for Python without those dependency errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.