microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.49k stars 4.39k forks source link

[Package Issue]: LINQPad.LINQPad.8 and Microsoft.DotNet.SDK.8 #149642

Open TheStingPilot opened 4 months ago

TheStingPilot commented 4 months ago

Please confirm these before moving forward

Category of the issue

Other

Brief description of your issue

In the manifest https://github.com/microsoft/winget-pkgs/blob/master/manifests/l/LINQPad/LINQPad/8/8.2.4/LINQPad.LINQPad.8.installer.yaml the following information is mentioned:

Scope: machine
Dependencies:
  PackageDependencies:
  - PackageIdentifier: Microsoft.DotNet.SDK.8

However, in the https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/DotNet/SDK/8/8.0.204/Microsoft.DotNet.SDK.8.installer.yaml file scope: machine is not mentiond. So, a per machine installation of Linqpad fails because the dependency app cannot be per system installed.

Steps to reproduce

Install Linqpad 8 per machine, without the dependency installed.

Actual behavior

The installation fails with 'no suitable installer'.

Expected behavior

Both apps installed.

Environment

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

Windows: Windows.Desktop v10.0.19045.4291
System Architecture: X64

Winget Directories
------------------------------------------------------------------------------------------------------
Logs                               %TEMP%\WinGet\defaultState
User Settings                      %LOCALAPPDATA%\Microsoft\WinGet\Settings\defaultState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs

n/a

stephengillie commented 4 months ago

Related:

TheStingPilot commented 4 months ago

What are the next steps?

Nelson-numerical-software commented 4 months ago

@stephengillie ?

So, What is the good way to do ? What workaround is possible ? If I remove ref to Microsoft.VCRedist.2015+ (PackageDependencies) will it be enough ? (Microsoft.VCRedist already embedded in package)

stephengillie commented 4 months ago

Sorry. If I knew the solution, it would already be implemented.

mdanish-kh commented 4 months ago

Unfortunately, this is blocked by

If you have the dotnet sdk already installed, can you try installing / upgrading the package with --skip-dependencies flag?

winget install LINQPad.LINQPad.8 --skip-dependencies