Remove dependency on Chocolatey
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 122k
- Forks
- 37.4k
- Merge moyen
- 4 j 3 h
- PR mergées (30 j)
- 272
Description
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
- I've created a trivial program to test if native addons' dependencies are installed and working.
- https://github.com/nodejs/node-gyp#on-windows
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la case à cocher de l’installateur référencée dans #30242 et examinez tools/msvs/msi/nodemsi/nodemsi.wixproj, ainsi que les instructions Windows dans node-gyp. Comparez le flux actuel de Chocolatey avec les commandes winget fournies et évaluez si WiX couvre l’installation de la dépendance facultative. Le travail est terminé lorsque la dépendance à Chocolatey est supprimée tout en préservant la configuration Windows nécessaire aux modules natifs.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- nodejs, powershell
- Domaine
- build-system, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100