Skip to content
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

winget version not matching with internal version #1257

Closed
masterflitzer opened this issue Jun 21, 2024 · 4 comments
Closed

winget version not matching with internal version #1257

masterflitzer opened this issue Jun 21, 2024 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@masterflitzer
Copy link

Current behavior

when installing devtoys via winget the version tagged 2.0.2 installs the version 2.0-preview.2, this results in the same version always being offered as update in winget (infinite upgrade loop when running winget upgrade)

the problem is that the package manager version (2.0.2) doesn't match with the internal version (2.0-preview.2):

How to reproduce it (as minimally and precisely as possible)

powershell:

winget install DevToys-app.DevToys
winget upgrade
# devtoys is always offered as upgrade, so this can be repeated infinitely:
winget upgrade DevToys-app.DevToys

Expected behavior

winget should upgrade to the latest version and then stop offering updates until a new one is released

Screenshots

notice how version (2.0-preview.2) and available (2.0.2) columns differ even though the latest version is installed

~
❯ winget upgrade
Name                                  Id                  Version       Available
---------------------------------------------------------------------------------
DevToys Preview version 2.0-preview.2 DevToys-app.DevToys 2.0-preview.2 2.0.2
1 upgrades available.
6 package(s) have pins that prevent upgrade. Use the 'winget pin' command to view and edit pins. Using the --include-pinned argument may show more results.

~
❯

Workaround

No response

Affected platforms

No response

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

Version 2.0-preview.2

Relevant Assets/Logs

relevant github comments:

@masterflitzer masterflitzer added bug Something isn't working untriaged labels Jun 21, 2024
@veler
Copy link
Collaborator

veler commented Jun 22, 2024

Hi @stephengillie,
I hope it's OK to ping you here. I'm wondering if you have any recommendation on what to do with such issue.
Thank you very much in advance for your help :-)

@veler veler added help wanted Extra attention is needed and removed untriaged labels Jun 22, 2024
@stephengillie
Copy link

stephengillie commented Jun 24, 2024

Yes. The error is that the PackageVersion is 2.0.1 but should be 2.0-preview.1.

  • This happened again with 2.0.2 and 2.0-preview.2. This is because these are the bits that the package manager uses to match repo data with Registry data.
  • In New package: DevToys 2.0.1 microsoft/winget-pkgs#156567 (comment), the version in the application was fixed, but this didn't "backpropagate" into the manifest.
  • If the application matches the Registry, then a DisplayVersion isn't necessary and the PackageVersion should match both.

@veler
Copy link
Collaborator

veler commented Jun 25, 2024

Yes. The error is that the PackageVersion is 2.0.1 but should be 2.0-preview.1.

  • This happened again with 2.0.2 and 2.0-preview.2. This is because these are the bits that the package manager uses to match repo data with Registry data.
  • In New package: DevToys 2.0.1 microsoft/winget-pkgs#156567 (comment), the version in the application was fixed, but this didn't "backpropagate" into the manifest.
  • If the application matches the Registry, then a DisplayVersion isn't necessary and the PackageVersion should match both.

Thank you very much! I just released an update and opened a PR here: microsoft/winget-pkgs#159727
Hopefully it's well done this time. Please let me know if you find anything wrong. Thank you again for your help, I really appreciate a lot!

@masterflitzer
Copy link
Author

@veler after the changes it works perfectly now, thank you very much for jumping through all the hoops to make devtoys available on winget, i very much appreciate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants