posit-dev / posit-dev/rsconnect-python

Checkum mismatch in `write-manifest shiny` for requirements.txt

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

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

Ngôn ngữ chính
Python
Star
37
Fork
28
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
7

Mô tả

Hey guys,

this is related to issue #429 but different as I don't manually change the requirements file. On my windows machine (win11 and latest version of rsconnect, 1.31.1), I run this command to create the requirements:

rsconnect write-manifest shiny --requirements-file "pyproject.toml" --overwrite --verbose .

This runs flawlessly but when I deploy to shinyapps.io (okay soon deprecated 😁), I get the error that the checksum of the requirements file does not match and indeed:

manifest.json:

...
  "files": {
    "requirements.txt": {
      "checksum": "9575666e0dd133b66c6ffad2ee76d0a7"
    },
...

and the manual calculation:

certutil -hashfile requirements.txt MD5
MD5-Hash von requirements.txt:
5091c1d66ce4ff619a9787030deea0f8

Manually replacing the MD5 checksum in manifest.json results in successful deployment. However, when I run this command before automated deployment with GitHub Actions on Linux, there is no issue. Let me know if you need further information, or if I'm just doing it wrong 🙄

Cheers,
Tobi

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Tái hiện lệnh rsconnect write-manifest shiny trên Windows bằng pyproject.toml, sau đó so sánh requirements.txt được tạo với checksum của nó trong manifest.json. Đối chiếu đầu ra trên Windows với kết quả Linux của GitHub Actions và xác minh rằng checksum của manifest khớp với nội dung tệp để quá trình triển khai thành công mà không cần chỉnh sửa thủ công.

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
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
58/100

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.