-
Notifications
You must be signed in to change notification settings - Fork 5k
Improve YAML Parsing #21204
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
Improve YAML Parsing #21204
Conversation
|
Hello @Trenly, Example: For details on the error, see the details link below in the build pipeline. You may also try the Windows Package Manager Manifest Creator |
|
Something weird happened with the commit history when I tried to rebase on master. I revered back to before the rebase. I'll rebase to resolve the merge conflicts before going too much further |
|
Hello @Trenly, |
|
@OfficialEsco I believe this is all I have left - <#
TO-DO:
- Handle writing null parameters as comments
- Ensure licensing for powershell-yaml is met
#>I'm not sure how to write comments with powershell-yaml, so that may be difficult. As far as I can tell, there aren't any licensing requirement for powershell-yaml since we aren't using the source code in any way, but I would like someone else to verify that. Other than those two things, I believe this is ready for testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue 1:
[Optional] Enter any Protocols the application provides a handler for. For example: http, https (Max 16)
Protocols:
[Optional] Enter any Commands or aliases to run the application. For example: msedge (Max 16)
Commands:
[Optional] List of additional non-zero installer success exit codes other than known default values by winget (Max 16)
Commands:
Feature Request:
Keep Metadata outside of hardcoded metadata (do we have to hardcode all the different metadata fields?)
Untested:
Does it work as expected with additional locales? (Copying them to the new version)
I'll keep testing it if i can find any non submitted versions which have gotten harder 😠
Edit: On last issue revealed itself at the end
Submit PR?
Do you want to submit your PR now?
[Y] Yes [N] No (default is 'Y'): yUpdate
PS C:\Users\Esco\Github\winget-pkgs>
|
@jedieaston @vedantmgoyal2009 I believe these are the only issues remaining: I looked and I see these parameters being used, so I think they are false positives |
|
@denelon I've left the commit history mostly in-tact up until this point; Would you have any objection if I rewrite the history of this branch to reduce the amount of clutter? |
|
If you rebase we might lose some of the commit data for the PRs in your fork (I think). If this will be squashed on merge anyway, do you need to clear it now? |
It depends on how the rebase is performed; I just don’t know if it will be squash merged here or just merged |
|
We squash merge. |
|
@denelon I know it's a big ask, but how long do you think review will take? |
|
I'll see if I can get someone to look at this today or tomorrow. We have a lot in flight right now. Sorry this is taking so long. |
No worries. I completely understand having a lot in flight. There is no rush on this, I understand it's a community submission and that you guys have a lot of other things to be working on. I appreciate all your help in getting this reviewed though, it truly means a lot |
|
@jedieaston @OfficialEsco Would you mind reviewing this PR for @denelon ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran through it one more time, there doesn't seem to be any outstanding uh-ohs that we haven't noted.
![]()
Found one from the latest fixes to the CLI; Patched it |


Summary
This PR updates the YamlCreate.ps1 script to be more fully-featured and uses powershell-yaml (See it on GitHub) to handle the parsing of keys and values
Major Updates
Minor Updates
exitwhen a user choice exits the script andthrowwhen the script terminates unexpectedlyResolves #21940
Resolves #21219
Microsoft Reviewers: Open in CodeFlow