Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#3,821 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
go, python
领域
build-system

调研方向

从 gazelle/python/std_modules.go 开始,检查对 stdlib_list.txt 的 go:embed 引用。使用报告中的 Gazelle 依赖通过 go list -deps ./... 重现失败,然后验证缺失的嵌入文件已存在且命令成功完成。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Starlark
星标
690
派生
722
平均合并
1 天 55 分钟
30 天内合并 PR
38

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bazel-contrib/rules_python 的其他 Issue

查看 bazel-contrib/rules_python 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。