-
Notifications
You must be signed in to change notification settings - Fork 87
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
Updating a manifest is only supported with the same number of installer URLs and some other errors not patched completely #236
Comments
Hi @gnpaone, Could you provide me the exact arguments used to execute the update command as well as a link to the existing manifests you were trying to update? |
Hi @ryfu-msft, this is the manifest in my test repo - https://github.com/gnpaone/winget-pkgs/tree/master/manifests/r/rcmaehl/MSEdgeRedirect
Also, I already have that GitHub secret in my repo settings |
So the errors that you're telling me about makes me think the two URLs you are providing are not getting parsed correctly. I would try enclosing each installerURL within a pair of parentheses each, just so that it is clear exactly the values you are providing to the tool. For example:
Could you try that out and let me know if that worked for you? |
https://github.com/gnpaone/MSEdgeRedirect/runs/5504156661?check_suite_focus=true so the overriding architecture worked, but still there's |
So looking at your script, there are a couple things I am noticing:
Regarding the error message, the reason why |
Hey, thanks for the help, it worked (my bad that I didn't notice the typo 😅), https://github.com/gnpaone/MSEdgeRedirect/actions/runs/1966585425 😊 |
Yeah, without double quotes for url it fails (https://github.com/gnpaone/MSEdgeRedirect/runs/5507275073?check_suite_focus=true). One more small doubt, does GitHub CI method create new package too instead of just updating manifests? |
Both |
I'm not sure what you mean by "does GitHubCI method create new package". WingetCreate can create a new manifest, but that is interactive and can't be used in a CI/CD scenario. |
Actually no, |
Ah my apologies, you are correct. That settings.json path is if you installed the tool using the MSIX bundle. Closing this issue as I believe everything has been addressed. |
Thanks for the help 😊 |
Brief description of your issue
Updating a manifest is only supported with the same number of installer URLs
error occurred in previous version of wingetcreate and is said to be solved according to winget: fix asset/release regexes to match correctly git#475 but it's not solved inwingetcreate-self-contained.exe
as you can see inwinget log
of https://github.com/gnpaone/MSEdgeRedirect/runs/5457611735?check_suite_focus=true (workflow used - https://github.com/gnpaone/MSEdgeRedirect/actions/runs/1948760855/workflow)wingetcreate-self-contained.exe
as inwinget log
of https://github.com/gnpaone/MSEdgeRedirect/runs/5498146493?check_suite_focus=true (workflow used - https://github.com/gnpaone/MSEdgeRedirect/actions/runs/1963943160/workflow)Actually I am trying to test submitting an app "using Github CI" to gnpaone/winget-pkgs instead of default microsoft/winget-pkgs by changing the settings of wingetcreate, but unfortunately (as tested in Windows 10 VM Powershell) the downloaded version of wingetcreate.exe gives not a self contained app error when
./wingetcreate.exe settings
is ran (I ran that to find the path ofsettings.json
file so that I can change the default submit repo to my repo using Github CI like this but due to that "not self contained app" error I am forced to use wingetcreate-self-contained.exe to findsettings.json
path) - finding path is via runningwingetcreate settings
and opening it in Notepad, clickCTRL+Shift+S
orSave As
to reveal the defaultsettings.json
path created bywingetcreate
Steps to reproduce
1.
https://github.com/gnpaone/MSEdgeRedirect/actions/runs/1948760855/workflow2.
https://github.com/gnpaone/MSEdgeRedirect/actions/runs/1963943160/workflowExpected behavior
I expected it to update manifest/create PR in test repo flawlessly according to documentation. I basically just wanted to see how the
--submit
works.Actual behavior
1.
it givesUpdating a manifest is only supported with the same number of installer URLs
error2.
shows some syntax error as if the app isn't updated.Environment
The text was updated successfully, but these errors were encountered: