microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.77k stars 4.58k forks source link

[Package Issue]: Rustlang.Rustup tries to install x86_64 version on ARM64 #95352

Closed ssg closed 1 month ago

ssg commented 1 year ago

Please confirm these before moving forward

Category of the issue

Installation issue.

Brief description of your issue

Trying to winget upgrade for Rustlang.Rustup incorrectly tries to download x86_64 version of the rustup-init.exe and fails with "hash does not match" error (not sure if the error is related to the issue though).

Steps to reproduce

winget upgrade --include-unknown --all

Actual behavior

(1/1) Found Rustup: the Rust toolchain installer [Rustlang.Rustup] Version 1.25.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.
Downloading https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
  ██████████████████████████████  9.53 MB / 9.53 MB
Installer hash does not match; this cannot be overridden when running as admin

Expected behavior

Winget should be trying to retrieve ARM64 version of the package.

Environment

Windows: Windows.Desktop v10.0.22623.1245
System Architecture: Arm64
Package: Microsoft.DesktopAppInstaller v1.20.101.0


### Screenshots and Logs

_No response_
anarelion commented 1 year ago

I have PR #95599 to fix the download URL, because it uses the generic download.

ssg commented 1 month ago

Closing since the fix has been merged.