bazel-contrib / bazel-contrib/rules_python
go:embed stdlib_list.txt file in gazelle/python/std_modules.go is missing
- Vorherrschende Sprache
- Starlark
- Sterne
- 688
- Forks
- 721
- Ø Merge
- 15 Std. 7 Min.
- Gemergte PRs (30 T.)
- 76
Beschreibung
# 🐞 bug report
### Affected Rule
The issue is caused by the rule:
### Is this a regression?
Yes, the previous version in which this bug was not present was: ....
### Description
A clear and concise description of the problem...
Adding Gazelle to go.mod results in a failure running go list -deps ./... because the stdlib_list.txt used in the go:embed in gazelle/python/std_modules.go does not exist
## 🔬 Minimal Reproduction
Add something like the following to go.mod
github.com/bazel-contrib/rules_python/gazelle v0.0.0-20260330223627-293e643aa3ea
go list -deps ./... > /dev/null
## 🔥 Exception or Error
../../pkg/mod/github.com/bazel-contrib/rules_python/gazelle@v0.0.0-20260330223627-293e643aa3ea/python/std_modules.go:24:13: pattern stdlib_list.txt: no matching files found
## 🌍 Your Environment
**Operating System:**
macOS 15.4.1
**Output of `bazel version`:**
$ bazel version
Build label: 7.7.1
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Wed Nov 12 17:35:45 2025 (1762968945)
Build timestamp: 1762968945
Build timestamp as int: 1762968945
**Rules_python version:**
1.8.4
**Anything else relevant?**
Beitragsleitfaden
Rechercherichtung
Beginne mit gazelle/python/std_modules.go und untersuche den go:embed-Verweis auf stdlib_list.txt. Reproduziere den Fehler mit go list -deps ./... unter Verwendung der gemeldeten Gazelle-Abhängigkeit; überprüfe anschließend, dass die fehlende eingebettete Datei vorhanden ist und der Befehl erfolgreich abgeschlossen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, python
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 72/100