Closed EdijsPerkums closed 8 months ago
This is because there isn't a valid file returned from the URL: https://masterpackager.com/uploads/file_archive/mpdev_self_contained_Arm64_1.0.6.msi. Winget-create fails to parse the downloaded response since it's not a valid MSI file.
The error message definitely needs to be improved though to show that it's a parsing error not a user error
@mdanish-kh Hello, could you provide some more details what is not valid in that file? Also the link you posted will not work without www in front. The link provided in the command downloads a valid msi - https://www.masterpackager.com/uploads/file_archive/mpdev_self_contained_Arm64_1.0.6.msi
@EdijsPerkums - That link doesn't seem to be working for me
https://github.com/microsoft/winget-create/assets/88161975/30cc928f-e2d8-42c1-9f07-5c34f40a4f9a
@mdanish-kh sorry you are right, there was an issue with some capital letters. I wasn't aware that urls are case sensitive. Anyway it would be great if that error message could be made a bit less confusing. Should I close this issue?
@EdijsPerkums No worries ☺️ I'll link this issue to the PR I made fixing the error message. This will automatically close out when that gets merged
Brief description of your issue
I am trying to update an existing package with a new version with this command: wingetcreate.exe update --submit --urls https://www.masterpackager.com/installer/dev/masterpackagerdev_1.0.6.msi https://www.masterpackager.com/uploads/file_archive/mpdev_self_contained_Arm64_1.0.6.msi --version 1.0.6 MasterPackager.MasterPackagerDev
And I receive the following error:
Retrieving latest manifest for MasterPackager.MasterPackagerDev Downloading and parsing: https://www.masterpackager.com/installer/dev/masterpackagerdev_1.0.6.msi... Downloading and parsing: https://www.masterpackager.com/uploads/file_archive/mpdev_self_contained_Arm64_1.0.6.msi... The number of new installer packages must match the number of existing installer packages.
Here is the previous manifest - https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/MasterPackager/MasterPackagerDev/1.0.5/MasterPackager.MasterPackagerDev.installer.yaml As you can see it has 2 installer packages and the error message is incorrect.
Steps to reproduce
wingetcreate.exe update --submit --urls https://www.masterpackager.com/installer/dev/masterpackagerdev_1.0.6.msi https://www.masterpackager.com/uploads/file_archive/mpdev_self_contained_Arm64_1.0.6.msi --version 1.0.6 MasterPackager.MasterPackagerDev
Expected behavior
It should create a pull request with a new manifest for the new version.
Actual behavior
I receive this error message - The number of new installer packages must match the number of existing installer packages.
Environment