bazel-contrib / bazel-contrib/rules_python
pkg_zip creates the zip file with broken link inside venv
- Ngôn ngữ chính
- Starlark
- Star
- 688
- Fork
- 721
- Merge trung bình
- 15 giờ 7 phút
- Pull request đã merge (30 ngày)
- 76
Mô tả
Using latest rules_python 1.8.2 (venv enabled) and rules_pkg 1.2.0
```
py_binary(
name = "app",
...
)
pkg_zip(
name = "app_zip",
srcs = [":app"],
include_runfiles = True,
)
```
When I unzip the app_zip.zip file, I can see all the symlinks inside app.runfiles/_main/utils/_app.venv are broken. They all have one extra ../
I checked unzipped directory structure, those rules_python++pip* directories are wrongly located inside app.runfiles/_main/ while on the build host bazel-bin, they are directly inside app.runfiles, parallel to _main. This caused all symlinks in venv broken.
Hướng dẫn đóng góp
Hướng nghiên cứu
Reproduce the issue with the shown py_binary and pkg_zip targets using rules_python 1.8.2 and rules_pkg 1.2.0. Compare the extracted app.runfiles layout with bazel-bin, focusing on the rules_python++pip directories and symlink targets under _main/utils/_app.venv. Done means the archive preserves the expected layout and the virtual-environment symlinks resolve after extraction.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100