`winget configure` unable to install Docker Desktop with DO

未关闭
#6,469 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
cpp
领域
cli

调研方向

使用所示的 Docker.DockerDesktop 资源,并将 network.downloader 设置为 do,通过 winget dsc winget-dsc-docker.yaml 重现该问题,然后将其与 winget install Docker.DockerDesktop 和 wininet 下载器进行比较。跟踪 winget configure 针对由 DO 支持的下载和安装程序执行的路径;当 Docker Desktop 能够在不挂起的情况下完成安装时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Command-Configure Issue-Bug Possible-Duplicate
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)
主要语言
C++
星标
26.6k
派生
1.8k
平均合并
3 天 10 小时
30 天内合并 PR
41

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/winget-cli 的其他 Issue

查看 microsoft/winget-cli 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。