Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Reduce size of MODULE.bazel.lock file

未關閉
#4,278 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
38/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
活躍
技術堆疊
python
領域
build-system

研究方向

Start by reproducing lockfile generation with a restricted platform list passed to pip.parse, using the linked comparison as the reference. Inspect how MODULE.bazel.lock records dist_hashes, then determine why hashes for unrequested platforms remain. Done means the generated lockfile omits those irrelevant hashes without breaking reproducible dependency resolution, with tests covering the behavior.

由索引模型根據 Issue 內容生成。

描述

🚀 feature request

Description

I would like the MODULE.bazel.lock file to be smaller if possible.

Describe the solution you'd like

Open to any solution but I'm noticing that if you pass a limited set of platforms to pip.parse, the MODULE.bazel.lock contains hashes for other platforms as well:

  "facts": {
    "@@rules_python+//python/extensions:pip.bzl%pip": {
      "dist_hashes": {
        "https://pypi.org/simple": {
          ...
          "cffi": {
            "https://files.pythonhosted.org/packages/01/9a/11f687cb39d6a3504060d5242f04f48c735afb4d3d533958a20594890cb2/cffi-2.1.1-cp313-cp313-win_arm64.whl": "sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973",
            "https://files.pythonhosted.org/packages/02/10/4b3c75dde3d9663c9e02ba05c2668b954f671d4bbe346413ca8c696b295a/cffi-2.1.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl": "sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264",
...

which probably could be omitted.

主要語言
Starlark
星號
688
分支
728
平均合併
17 小時 20 分鐘
30 天內合併 PR
117

環境準備

從這裡開始

  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 摘要。