chocolatey / chocolatey/choco

Installer broken - complains about path trying to CreateFolder, duplicates PATH

Open
#2,125 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

OS Name Microsoft Windows 10 Pro
Version 10.0.19042 Build 19042

Using Powershell, Powershell v7, the CMD based approach the installer fails. Ive tried running Powershell as admin and a normal user. Both accounts have this same issue. After the installer fails, the PATH env is duplicated multiple times. The initial error seems to indicate that a download failed but then continues. The script has virtually no error checking and this breaks my system.

**Errors**
https://pastebin.com/0iGk5JCB - powershell (default for Win10)
https://pastebin.com/crKrXam9 - powershell v7

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the installer failure on Windows 10 with Windows PowerShell and PowerShell 7, then compare the two linked error logs. Done means the reported CreateFolder or download failure is handled without duplicating or corrupting PATH; the issue names no source file or test to use.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.