microsoft / microsoft/winget-cli
winget upgrade does not pre-install a new dependency
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
Consider the following example:
winget list DBVis.DBVisualizer
Name Id Version Available Source
--------------------------------------------------------
DbVisualizer DBVis.DBVisualizer 23.1 24.1 winget
winget upgrade DBVis.DBVisualizer
Found DbVisualizer [DBVis.DBVisualizer] Version 24.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
- Packages
Oracle.JavaRuntimeEnvironment
Installing dependencies:
(1/1) Found Java 8 [Oracle.JavaRuntimeEnvironment] Version 8.0.4010.10
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Then nothing occurs after the installer hash verification: [Oracle.JavaRuntimeEnvironment] is not installed and [DBVis.DBVisualizer] is not updated.
Steps to reproduce
- Install https://www.dbvis.com/product_download/dbvis-23.1/media/dbvis_windows-x64_23_1_jre.exe
winget upgrade DBVis.DBVisualizer
Expected behavior
Dependency should be installed and the main package updated.
Actual behavior
Dependency is not installed and the main is not updated.
Environment
Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.3007
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3482.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing winget upgrade DBVis.DBVisualizer with the provided package versions and trace the dependency-installation path after installer hash verification. Done means the Java dependency installs successfully and the DBVisualizer upgrade completes; verify both results with winget list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100