Skip to content

[Package Issue]: Discord.Discord requires explicit targeting and upgrade fails with "Installer hash does not match" #136960

Description

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

Discord upgrade with winget upgrade -h --all fails because it requires a explicit targeting.
Upgrading with explicit targeting fails with "Installer hash does not match"

Steps to reproduce

Run winget upgrade -h --all, then run winget upgrade -h Discord.Discord.

Actual behavior

After the first command the upgrade is not executed and I get the following message:

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name    Id              Version  Available Source
-------------------------------------------------
Discord Discord.Discord 1.0.9012 1.0.9030  winget

After the second command the upgrade is not executed and I get the following error:

Found Discord [Discord.Discord] Version 1.0.9030
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://discord.com/api/downloads/distributions/app/installers/latest?channel=stable&platform=win&arch=x86
  ██████████████████████████████  91.7 MB / 91.7 MB
Installer hash does not match; this cannot be overridden when running as admin

Expected behavior

The upgrade succeeds after the first command, or at least after the second.

Environment

Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3085
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3482.0

Screenshots and Logs

WinGet-2024-01-29-11-47-13.285.log
WinGet-2024-01-29-11-47-20.241.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Error-Hash-MismatchThe InstallerSHA256 Hash specified in the manifest doesn't match with the InstallerURL hashIssue-TaskIt's a taskPackage-UpdateThis package needs to be updated

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions