Emit YAML manifest alongside installer on download#29
Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intoMay 28, 2026
Merged
Conversation
Marc-André Moreau (mamoreau-devolutions)
approved these changes
May 28, 2026
dc723a8
into
master
13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to the download workflow: when downloading an installer, the CLI now also writes a YAML manifest file alongside the installer, mirroring the behavior of
winget download. The manifest file provides a self-contained snapshot of the package version that was downloaded. The changes also refactor related code to return richer result objects and update tests and consumers accordingly.Key changes include:
Download Workflow Enhancements
DownloadResult/DownloadOutputtype in both .NET and Rust to encapsulate the manifest, installer path, and manifest path returned by the download operation. This replaces returning a tuple of just the manifest and installer path.DownloadInstallermethod now writes a flattened YAML manifest next to the installer file, using a filename format that matcheswinget download. Helper methods were added to generate the YAML content and derive the correct filename.Refactoring and Internal API Changes
Testing
These changes ensure that every download operation now provides both the installer and a corresponding manifest, improving traceability and aligning with established package management behavior.
for issue Devolutions/UniGetUI#4817