chocolatey / chocolatey/choco

Chocolatey should timeout when waiting for input

Open
#2,679 3 comments 0 reactions 0 assignees View on GitHub
0 - Backlog Enhancement Up For Grabs
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### What You Are Seeing?

If you run a command such as `choco install ` with `allowGlobalConfirmation` disabled (the default configuration) or in a non-administrative shell, choco just waits for input forever. This is a problem when run in a CI environments where you're never going to see that prompt.

For example: Fresh Windows 11 VM installed Chocolatey, then issued the command `choco install chocolateygui`:

2022-04-05_12-51-58

And for completeness, that same VM in a non-administrator shell:

2022-04-05_12-55-08

Note: I have tested this on both Chocolatey 1.1.0 and 0.10.15.

### What is Expected?

Eventually the command should timeout

### How Did You Get This To Happen? (Steps to Reproduce)

1. Install Chocolatey normally
2. Run `choco install python`
3. leave the prompt open for hours

### Output Log

See gist: https://gist.github.com/corbob/5c0435630ea8eaa8ce41d5fe578fed80

Contributor guide

Open the contributing guide

Research direction

The issue names no source file or test; start by reproducing `choco install python` in a non-administrative shell or CI-like environment and trace where the install command waits for input. Done means the command stops waiting indefinitely and times out while preserving the expected behavior for interactive users.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.