chocolatey / chocolatey/choco

While installing many powershell instances started

Open
#2,058 4 comments 0 reactions 0 assignees View on GitHub
0 - Triaging Bug
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### What You Are Seeing?

About 30-40 powershall instances being ran while installing one package

### What is Expected?

Not to have this many running

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

ran the command `choco install gradle`
agreed to everything it asked with Y

### Output Log

George@GEORGE C:\Users\George
$ choco install gradle
Chocolatey v0.10.15
[Pending] Removing incomplete install for 'gradle'
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).

You may experience errors - many functions/packages
require admin rights. Only advanced users should run choco w/out an
elevated shell. When you open the command shell, you should ensure
that you do so with "Run as Administrator" selected. If you are
attempting to use Chocolatey in a non-administrator setting, you
must select a different location other than the default install
location. See
https://chocolatey.org/install#non-administrative-install for details.

Do you want to continue?([Y]es/[N]o): y

Installing the following packages:
gradle
By installing you accept licenses for the packages.

gradle v6.3 [Approved]
gradle package files install completed. Performing other installation steps.
The package gradle wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y

File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Hashes match.
Hashes match.
Extracting C:\Users\George\AppData\Local\Temp\chocolatey\gradle\6.3\gradle-6.3-all.zip to C:\ProgramData\chocolatey\lib\gradle\tools...

~~~sh
PLACE LOG CONTENT HERE - WE NEED _ALL_ DETAILED OUTPUT BASED ON THE ABOVE TO BE ABLE TO PROVIDE SUPPORT (YOU WILL FIND THAT IN THE $env:ChocolateyInstall\logs\chocolatey.log between the `=====`)
~~~
Only log in the output specified above is from 25th December 2019, not today. Contains nothing on this issue

Contributor guide

Open the contributing guide

Research direction

No source file or test is identified in the issue. Start by reproducing `choco install gradle` and collect the requested full `--debug --verbose` Chocolatey log; done means identifying why 30–40 PowerShell instances appear and verifying that installation no longer starts that excessive number.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.