[Bug]: wheels bundled in ensurepip are not valid wheels

Đang mở
#1,272 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
build-system

Hướng nghiên cứu

The payload names no source files, so start with the reproduction: run wheel unpack on the pip wheel in ensurepip/_bundled and observe the hash mismatch for pip/_internal/cli/cmdoptions.py. Then find where GraalPy patches bundled wheels during its build and check whether the RECORD file is rewritten afterwards. Done means the patched wheel unpacks without a hash error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Describe the bug

The pip wheel bundled in ensurepip is patched by graalpy but the RECORD file is not updated with new sha256 for patched files.

I came across the issue while trying to patch pip wheels in ensurepip with a version of certifi that does not embed the compromised eMudhra intermediate CA certificates.

For older versions, it likely applies to setuptools as well.

Operating system

Linux

CPU architecture

x86_64

GraalPy version

graalpy-24.2.2, graalpy-25.0.3, graalpy3.12-25.2.4, graalpy3.13-25.4.4

JDK version

No response

Context configuration

No response

Steps to reproduce
wheel unpack /opt/_internal/graalpy313-graalpy253_313_native/lib/python3.13/ensurepip/_bundled/pip-26.1.2-py3-none-any.whl
Unpacking to: pip-26.1.2...Hash mismatch for file 'pip/_internal/cli/cmdoptions.py'
Expected behavior

wheel unpacked without error

Stack trace

Additional context

No response

Ngôn ngữ chính
Python
Star
1.7k
Fork
167
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
68

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của oracle/graalpython

Tất cả issue của oracle/graalpython

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.