winget-cli
winget-cli copied to clipboard
Only the first dependency is installed from the manifest
Brief description of your issue
If a manifest lists multiple dependencies, only the first one is installed (and there aren't any messages explaining why). Sorry if this is a duplicate, but I couldn't find it after a quick search.
Steps to reproduce
- Enable experimental dependency support in settings.json.
- Install a package that lists multiple dependencies (for example,
winget install -s winget Swift.Toolchain). - Note that all four dependencies are listed, but only one is installed.
Expected behavior
All four dependencies to install.
Actual behavior
Only one dependency is installing, and it looks like only one package is being passed to InstallMultiplePackages (since there's only one package in the install list).
PS C:\Users\WDAGUtilityAccount\Downloads> winget install Swift.Toolchain
Found Swift [Swift.Toolchain] Version 5.6.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
Microsoft.VC++2015-2019Redist-x64 [>= 14.28.29913.0]
Microsoft.WindowsSDK
Microsoft.VisualStudio.2019.BuildTools
Git.Git
Installing dependencies:
(1/1) Found Microsoft Visual C++ 2015-2019 Redistributable (x64) [Microsoft.VC++2015-2019Redist-x64] Version 14.29.30139.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.visualstudio.microsoft.com/download/pr/b929b7fe-5c89-4553-9abe-6324631dcc3a/296F96CD102250636BCD23AB6E6CF70935337B1BBB3507FE8521D8D9CFAA932F/VC_redist.x64.exe
██████████████████████████████ 24.0 MB / 24.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed
Downloading https://swift.org/builds/swift-5.6.1-release/windows10/swift-5.6.1-RELEASE/swift-5.6.1-RELEASE-windows10.exe
██████████████████████████████ 388 MB / 388 MB
Successfully verified installer hash
Starting package install...
Successfully installed
Environment
Windows Package Manager (Preview) v1.3.1391-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.675
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.1391.0