-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microsoft Preview applications should not be listed when running winget upgrade or a --preview switch should be added #1701
Comments
We usually don't put preview versions under the same ID, I don't know why that redist version is there. (@ItzLevvie, looks like you submitted that PR? microsoft/winget-pkgs#34549) That version of the .NET SDK is in stable though. #476 should allow you to stop upgrades if you aren't ready to move to .NET 6. |
The current dotnet version is 6.0.100 https://dotnet.microsoft.com/download/dotnet (I already have installed) but not 6.1.x - 6.1.x seems to be a preview version too. |
VC++ Redist links were taken from https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md, so I wasn't aware it was a preview version. EULA in the installer seems to be the same on both when installing, but I wouldn't mind splitting them out. At the moment, there's no such thing as .NET 6.1, the team likely moved to developing .NET 7. Latest Production version of .NET 6.0 is displayed as 6.1.21.52711 in Control Panel instead of 6.0.100. |
The official Microsoft link "Microsoft Visual C++ Redistributable Latest Supported Downloads" for the redistributables is : https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist |
Yeah, I used to use that website before, but I found out that the links there for some the Visual C++ Redistributable which are older than 2019 are outdated and were missing critical security patches: microsoft/winget-pkgs#31024, microsoft/winget-pkgs#31025, microsoft/winget-pkgs#31026, microsoft/winget-pkgs#31027, microsoft/winget-pkgs#31028, microsoft/winget-pkgs#31029, so I decided to use https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md which seems to be updated more frequently than the aka.ms links as the aka.ms links are updated manually by a human so sometimes the aka.ms links are behind compared to the Visual Studio links. Judging by the links used in https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md, I assume it was grabbed from Visual Studio compared to the aka.ms links, despite the InstallerSha256 being the same. |
I'm guilty of not getting the aka.ms links updated myself. I'm going to start creating an Issue for RC builds to capture the tasks necessary including updating aka.ms links when a release is pushed. We're close to shipping the first 1.2 dev build as well. It's being internally validated now. |
It seems that the original intent of this thread was to indicate that currently some winget upgrades cause a non-preview program to get updated to the latest version, which happens to be a preview version. I think the .NET issue was used as an example. The problem most likely being that some devs use the same app ID for their non-production channels. Suggested Fix by OP: To extend on that a bit:
ie. winget upgrade --all --preview true, alphaonly # will only perform upgrade if alpha version available for DL. anyhow, you all can probably best mesh that out. |
This is related to: |
Description of the new feature / enhancement
When running
winget upgrade
I get the following applications listed as not uptodate:Microsoft Visual C++ 2015-2022 Redistributable (x… Microsoft.VC++2015-2022Redist-x86 14.30.30704.0 14.31.30818.0 winget Microsoft Visual C++ 2015-2022 Redistributable (x… Microsoft.VC++2015-2022Redist-x64 14.30.30704.0 14.31.30818.0 winget Microsoft .NET SDK Microsoft.dotnet 5.4.321.52708 6.1.21.52711 winget
But these seem to be preview versions, e.g. Redistributable 14.31.30818.0 is shipped with Visual Studio 2022 17.1.0 Preview 1.0.
I (and may be all other people too) don't want to install preview versions on a production system.
A switch could be added to allow preview versions to be listed e.g.
winget upgrade --preview
Thanks for the help,
Andreas.
Proposed technical implementation details
winget upgrade --preview
The text was updated successfully, but these errors were encountered: