microsoft / microsoft/winget-cli

`winget configure` unable to install Docker Desktop with DO

Open
#6,469 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Configure Issue-Bug Possible-Duplicate
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.