microsoft / microsoft/winget-pkgs
[Package Issue]: Rustlang.Rust.MSVC does not install when scope is specified
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
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
Rust installs to C:\Program Files much like various other packages, but can only be installed with no --scope parameter specified.
Please note that this seems to affect other Rust packages such as Rustlang.Rustup too.
Steps to reproduce
- Open a terminal as Administrator
- Run
winget install --scope machine Rustlang.Rust.MSVC - Run
winget install --scope user Rustlang.Rust.MSVC
Actual behavior
Administrator in ~
🕙 [ 09:10:36 PM ] ❯ winget install --scope machine Rustlang.Rust.MSVC
No applicable installer found; see logs for more details.
Administrator in ~
🕙 [ 09:16:36 PM ] ❯ winget install --scope user Rustlang.Rust.MSVC
No applicable installer found; see logs for more details.
The errer in the log appears to be:
2024-05-13 21:10:39.320 [CLI ] Terminating context: 0x8a150010 at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:bc
Expected behavior
Installation should succeed, at least with --scope machine. Various other similar packages like 7zip.7zip work in this situation.
Environment
Windows Package Manager v1.7.11261
Windows: Windows.Desktop v10.0.22631.3447
Package: Microsoft.DesktopAppInstaller v1.22.11261.0
Screenshots and Logs
No response
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
Start by reproducing both commands, winget install --scope machine Rustlang.Rust.MSVC and --scope user, using the reported Windows Package Manager version. Inspect the resulting logs around AppInstallerCLICore\Workflows\UpdateFlow.cpp and compare the Rustlang.Rust.MSVC behavior with a working package such as 7zip.7zip. Done means the Rust package installs successfully with the requested scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100