Repository navigation
Improve YAML Parsing - #21204
Improve YAML Parsing#21204
Conversation
|
Hello Kaleb Luedtke (@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 |
db072b7 to
e6a201e
Compare
|
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 Kaleb Luedtke (@Trenly), |
e6a201e to
3f006db
Compare
54b6b68 to
d6af85b
Compare
|
Esco (@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 |
|
Kaleb Luedtke (@Trenly) is it this one? |
Yes, It is that one |
There was a problem hiding this comment.
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>
|
Easton Pillay (@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 |
|
Demitrius Nelon (@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. |
|
Demitrius Nelon (@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 |
|
Easton Pillay (@jedieaston) Esco (@OfficialEsco) Would you mind reviewing this PR for Demitrius Nelon (@denelon) ? |
Easton Pillay (jedieaston)
left a comment
There was a problem hiding this comment.
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