-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Repair switch support for V1.7 YAML manifest #4041
Repair switch support for V1.7 YAML manifest #4041
Conversation
Manifest Entries includes: - The Repair switch, within InstallerSwitch, allows for custom repair of a package. - The RepairBehavior enum field, present in both the Installer and root nodes, determines the repair behavior for the source package used to repair a package.
…v1_7 manifest schema.
…ring only supported installers can specify repair behavior. [Why] This change is to prevent incorrect mapping for unsupported installers by disallowing RepairBehavior field at root level
…cope with Installer Object.
src/AppInstallerCLITests/TestData/MultiFileManifestV1_7/ManifestV1_7-MultiFile-Installer.yaml
Show resolved
Hide resolved
… with the manifest design. This commit address two spacing alignment issues in manifest through this commit.
…epair� InstallerSwitch manifest read/parsing logic within manifest major version 1
…viorEnum to utilize string_view from last commit.
…d and added corresponding test
…avior and modified V1_7 test manifests. NOTE:Please note that RepairBehavior, Repair reference, and values in test manifest are for demonstration and validation only, not real samples.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Does this PR also add support for it in the COM API? |
The scope of this PR is limited to manifest support for the Repair functionality. While we do have plans to add support for the COM API, that change is not included in this PR. The repair workflow and COM API implementation will be addressed in separate PRs, allowing us to more effectively manage the complexity and address feedback on different aspects of the implementation. |
I see; Thanks! |
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.
…a manifest to ensure consistency with other usage in the schema manifest.
Add YAML manifest entries for winget repair behavior
Manifest Entries includes:
- The
Repair
switch, withinInstallerSwitch,
allows for custom repair of a package.- The
RepairBehavior
enum field, present in the Installer & root level field, determines the repair behavior for the source package used to repair a package.- Updated the test manifest (ManifestV1_7-MultiFile-Installer.yaml) and the test code that validate the Repair switch and RepairBehavior fields.
[How Validated:]
[Test Result:]
TODO's:
Related to :
Microsoft Reviewers: Open in CodeFlow