Modules that failed to install should not be considered "installed"

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

Hướng nghiên cứu

Start by tracing the zpm install command and the code that records or reports installed modules; the issue does not name specific files or tests. Reproduce by interrupting an install with Ctrl+C, then check how a subsequent install handles the incomplete module. Done means failed installs are shown as troubled or are uninstalled when transactions are enabled.

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

If you attempt to install a module and it fails to install, the module is displayed in zpm "list" as having been installed. This is problematic for the following reasons:

  • For a base module, it seems like install has succeeded even though it hasn't
  • For a dependency, if you go to install the base module again, it won't try to reinstall the dependency that previously failed to completely install, which could result in other downstream failures

To Reproduce

Steps to reproduce the behavior:

  1. Run IPM command zpm "install "
  2. Ctrl + C to quit the process to leave some modules with incomplete installs
  3. Attempt installing again.

Expected behavior

If a module fails to install, either indicate it is in a "troubled" state or uninstall it if transactions are enabled.

Ngôn ngữ chính
ObjectScript
Star
40
Fork
31
Merge trung bình
23 giờ 20 phút
Pull request đã merge (30 ngày)
29

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

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 intersystems/ipm

Tất cả issue của intersystems/ipm

Issue tương tự

Thêm issue về CLI

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.