Bugfix: Broken dependency resolution due to removed python 3.8 support in rules_python
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- python
- 领域
- build-system
调研方向
Reproduce the failure with bazel run //:docs, then inspect the score_bazel_tools_python 0.1.3 MODULE.bazel reference at the linked registry URL and the rules_python 1.8.0 changelog. Trace the python_3_8 import and determine the compatible behavior for newer rules_python versions; done means dependency resolution no longer requests the unavailable repository.
由索引模型根据 Issue 内容生成。
描述
When using score_bazel_tools_python 0.1.3 (which references rules_python 1.4.1) in a repository that specifices a version of rules_python >= 1.8.0, this breaks. Due to dependency resolution following "Minimal Version Selection", the newer rules_python version is taken.
That is also the case if a recent score_docs_as_code (>=3.0.0) is referenced, as this itself references rules_python 1.8.3:
https://github.com/eclipse-score/docs-as-code/blob/main/MODULE.bazel#L22
The support of python 3.8 was dropped in rules_python 1.8.0, leading to the failure
https://rules-python.readthedocs.io/en/latest/changelog.html#v1-8-0
I guess that's valid since python 3.8 support from the python core team was stopped in October 2024.
In score_bazel_tools_python there is the implicit assumption that python 3.8 support from rules_python exists.
Either that should be removed or reworked.
Actual error message:
~/score/inc_someip_gateway$ bazel run //:docs
ERROR: module extension @@rules_python+//python/extensions:python.bzl%python does not generate repository "python_3_8", yet it is imported as "bazel_tools_python_python_3_8" in the usage at https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_bazel_tools_python/0.1.3/MODULE.bazel:74:23 (did you mean 'python_3_9'?)
INFO: Elapsed time: 0.814s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
[!IMPORTANT]
Make sure to link this issue with the PR for your bugfix.
- 主要语言
- Python
- 星标
- 0
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eclipse-score/bazel-tools-python 的其他 Issue
-
Evaluate whether this repository is still needed可能重新可做 @nradakovic 于 101 天前认领,目前没有进行中的 PR。 未关闭
eclipse-score/bazel-tools-python#20 · 已指派 1 人 ·
查看 eclipse-score/bazel-tools-python 的全部 Issue
相似的 Issue
-
jobs restart --verify: hotlane restart timeout (10s) shorter than its shutdown (~30s) → false exit 1未关闭
难度 2/5 1-3 小时 新手友好度 85/100
EtanHey/brainlayer#1072 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
_apply_doc_content: a cancel during the shielded image gather still sends the content batchUpdate未关闭enhancement
难度 2/5 1 小时以内 新手友好度 80/100
khuisman/mcp-gee-sweet#904 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
-
CORE-HIST-005/006 multi-turn history tests send three different messages with the same messageId未关闭
难度 2/5 1-3 小时 新手友好度 85/100
a2aproject/a2a-tck#248 ·