nodejs / nodejs/node

Remove dependency on Chocolatey

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

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

feature request never-stale
Ngôn ngữ chính
JavaScript
Star
122k
Fork
37.4k
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
283

Mô tả

What is the problem this feature will solve?

Windows users are concerned by the check box in the installer (#30242) - why not remove the external dependency?

Chocolatey is an independent, open core (with proprietary extensions), package manager for Windows that recreates existing functionality included in all current versions of Windows. Chocolatey has its own set of problems, mostly stemming from the independent partially closed source for profit nature of the project.

What is the feature you are proposing to solve the problem?

winget is an open source package manager from Microsoft and is installed by default on modern versions of Windows. It has all the packages that Chocolatey wants to install.

This is equivalent to the checkbox, with newer package versions, and without Chocolatey:

winget install -e --id Python.Python.3.12
winget install -e --id Microsoft.VisualStudio.2022.Community --override "--passive --wait --add Microsoft.VisualStudio.Workload.VCTools"
What alternatives have you considered?

WiX Toolset, which is already in use, might have all the capabilities necessary to install these optional dependencies without using any PowerShell scripts.

Additional Resources

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

Bắt đầu với hộp kiểm của trình cài đặt được tham chiếu trong #30242 và kiểm tra tools/msvs/msi/nodemsi/nodemsi.wixproj, cùng với hướng dẫn Windows trong node-gyp. So sánh quy trình Chocolatey hiện tại với các lệnh winget được cung cấp và đánh giá xem WiX có bao quát việc cài đặt dependency tùy chọn hay không. Hoàn tất có nghĩa là loại bỏ dependency Chocolatey trong khi vẫn duy trì thiết lập Windows cho các yêu cầu của native addon.

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

Đánh giá

Công nghệ
nodejs, powershell
Lĩnh vực
build-system, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/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.