Ability to disable pycache symlinks
維護者通常 1 天內回覆
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 68/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- python
- 領域
- build-system
研究方向
Start by reading the python_repository change in #3661 and the tar.bzl behavior described in this issue. The requested outcome is a way to disable the functionality completely so the repository contains no __pycache__ symlinks.
由索引模型根據 Issue 內容生成。
描述
#3661 made python_repository write __pycache__ symlinks with targets that escape Bazel. Since the repository sets reproducible = True, these links get stored in the repository contents cache and shared. This can lead to surprises, as the symlink target validity varies by host system.
The recommended opt-out procedure is to set RULES_PYTHON_PYCACHE_DIR=/dev/null. But this winds up littering the repository cache with a bunch of symlinks to a character device, which, when processed by tar.bzl, become literal character devices and prevent any py_binary being packaged into a tar layer.
There should be a way to completely disable the #3661 functionality and get a repository without any __pycache__ symlinks at all.
- 主要語言
- Starlark
- 星號
- 688
- 分支
- 728
- 平均合併
- 18 小時
- 30 天內合併 PR
- 118
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
bazel-contrib/rules_python 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 82/100
bazel-contrib/rules_python#4319 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
bazel-contrib/rules_python#4251 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
bazel-contrib/rules_python#4164 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 68/100
bazel-contrib/rules_python#4339 · 1 則留言 ·
維護者通常 1 天內回覆
-
need: repro
難度 5/5 一週以上 新手友好度 35/100
bazel-contrib/rules_python#4315 · 1 則留言 ·
維護者通常 1 天內回覆
查看 bazel-contrib/rules_python 的全部 Issue
相似的 Issue
-
package-lock.json : les binaires natifs macOS et Linux de unrs-resolver ont disparu depuis #1823未關閉bug dependencies
難度 2/5 1-3 小時 新手友好度 70/100
AxaFrance/design-system#2064 ·
維護者通常 3 天內回覆
-
The `next-js` export condition isn't set, so packages like next-sanity load their non-Next build未關閉
難度 2/5 1-3 小時 新手友好度 70/100
cloudflare/vinext#4302 ·
維護者通常 1 天內回覆
-
agent/ci-maintainer ci good first issue help wanted stage/010-actionable
難度 2/5 1-3 小時 新手友好度 80/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
arvidn/libtorrent#9047 ·
維護者通常 1 天內回覆
-
`dir.c` (0.10.17) uses `NAME_MAX` without including `<limits.h>`, so musl targets do not compile未關閉
難度 1/5 1 小時以內 新手友好度 88/100