microsoft / microsoft/winget-cli
`winget configure` unable to install Docker Desktop with DO
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget configure
Brief description of your issue
When using winget configure, winget simply stalls trying to install Docker.DockerDesktop. However, when using winget install Docker.DockerDesktop, it works fine. In addition, running winget configure with network.downloader set to wininet works fine. It seems the issue happens when using both winget configure and DO.
Steps to reproduce
Run winget dsc winget-dsc-docker.yaml, with this file:
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: install-docker-desktop
directives:
description: Install docker desktop
securityContext: elevated
settings:
id: Docker.DockerDesktop
source: winget
installMode: silent
configurationVersion: 0.2.0
with network.downloader set to do (default).
Expected behavior
Docker desktop should be installed.
Actual behavior
Docker desktop was not installed. Instead, it would hold indefinitely, as the installer continues running, I believe.
Environment
Windows Package Manager v1.29.280
Windows: Windows.Desktop v10.0.19045.6456
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.280.0
(running in a VM)
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
Reproduce the issue with winget dsc winget-dsc-docker.yaml using the shown Docker.DockerDesktop resource and network.downloader set to do, then compare it with winget install Docker.DockerDesktop and the wininet downloader. Trace the winget configure path for DO-backed downloads and installer execution; done means Docker Desktop installs without hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100