chocolatey / chocolatey/choco

Choco reports install location of last installed package, not the one its installing

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

Description

### What You Are Seeing?
If you install a package (or upgrade, in my case), and at the same time something else is also upgrading, `choco.exe` will give the _other_ program's install location as the install location of the package it was installing.

In this screenshot, I am upgrading `buffalo`, and at the same time I did a vscode update (which finished first), and then I get this:

![image](https://user-images.githubusercontent.com/603112/79027207-08215580-7b94-11ea-8f4a-217f05a0e6cc.png)

### What is Expected?

I expected it to show the correct installation path.

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

Install something externally while choco is instaling / upgrading.

### Output Log

Next time, I'll run with `--debug` and report back.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the concurrent package installation or upgrade described in the issue, using --debug --verbose to capture the relevant output. Trace how choco.exe determines and reports the installation location for each package; done means the reported path belongs to the package currently being installed, even when another update finishes first.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.