bazel-contrib / bazel-contrib/rules_python

go:embed stdlib_list.txt file in gazelle/python/std_modules.go is missing

オープン 初心者向け
#3,821 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Starlark
スター
688
フォーク
721
平均マージ
15時間 7分
マージ済み PR(30日)
76

説明

# 🐞 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?**

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

gazelle/python/std_modules.go から始めて、stdlib_list.txt への go:embed 参照を調べます。報告された Gazelle 依存関係を使って go list -deps ./... で失敗を再現し、その後、見つからない埋め込みファイルが存在し、コマンドが正常に完了することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go, python
領域
build-system
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
72/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。