Repository navigation
Support remote YAML and ZIP and local ZIP manifests with administrator opt-in - #6651
Open
Daniel (dB.) Doubrovkine (dblock) wants to merge 1 commit into
Open
Daniel (dB.) Doubrovkine (dblock) wants to merge 1 commit into
Daniel (dB.) Doubrovkine (dblock) wants to merge 1 commit into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Daniel (dB.) Doubrovkine (dblock)
force-pushed
the
dblock/github-source-url
branch
2 times, most recently
from
November 4, 2026 18:45
02ca726 to
25c23d9
Compare
Daniel (dB.) Doubrovkine (dblock)
force-pushed
the
dblock/github-source-url
branch
from
November 4, 2026 18:50
25c23d9 to
53832b4
Compare
Daniel (dB.) Doubrovkine (dblock)
force-pushed
the
dblock/github-source-url
branch
6 times, most recently
from
November 4, 2026 20:02
77af14b to
d193c53
Compare
Extend --manifest to load HTTPS singleton YAML files and ZIP archives containing one package version. Require the RemoteManifestFiles administrator setting before downloading, preserve local-manifest gates, and clean up temporary files. Generate archive fixtures from existing YAML during the test build. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 92a6065f-7ee8-4254-bcb7-2c5c2ae0a14b
Daniel (dB.) Doubrovkine (dblock)
force-pushed
the
dblock/github-source-url
branch
from
November 4, 2026 20:03
d193c53 to
f207def
Compare
Daniel (dB.) Doubrovkine (dblock)
marked this pull request as ready for review
November 4, 2026 20:08
Daniel (dB.) Doubrovkine (dblock)
requested a review
from a team
as a code owner
November 4, 2026 20:08
This was referenced Nov 4, 2026
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.
📖 Description
Adds HTTPS
.yaml,.yml, and.zipURL support, plus local ZIP support, to--manifest.❓ Motivation
Package authors can publish a manifest alongside an installer and provide a one-line installation command without submitting to the community package repository or requiring users to download manifests manually.
🖥️ Usage
Enable the administrator setting from an elevated terminal:
winget settings --enable RemoteManifestFilesThen use either format:
Demo
Using the locally built CLI with the published ExCalc preview manifests:
Observed output (through installer launch):
The ZIP form was also tested:
Observed output (through installer launch):
Both YAML and ZIP demos reached installer launch. Installation completion has not yet been confirmed.
ℹ️ Details
Remote manifests are disabled by default behind the new
RemoteManifestFilesadministrator setting. Remote URLs require only RemoteManifestFiles; local paths still require LocalManifestFiles. The existing local-manifest group policy applies to both. The remote setting is checked before any download.YAML URLs must contain a complete singleton manifest. ZIPs can contain exactly one singleton manifest or one package version's multi-file manifests, optionally nested inside directories. Multiple packages or versions are rejected rather than inferred from the archive filename. URLs must use HTTPS and end in
.yaml,.yml, or.zip; credentials, query strings, fragments, and nonstandard ports are unsupported.Local and remote manifest providers implement a common interface exposing their required administrator setting and manifest loading. Command validation and loading share the same provider factory; the remote provider owns downloading and download cleanup. Both providers use shared archive loading with scanning, extraction, single-manifest selection, and cleanup; original local archives are preserved. Providers live in separate header/source pairs under ManifestProviders, with matching provider and factory test files; workflow integration tests cover locale application for both providers. The existing downloader, ZIP scan/extraction, manifest parser, installer selection, and hash verification are reused. Temporary downloads and extracted files are cleaned up after parsing or failure. No source or publisher consent is persisted, and
--sourcebehavior is unchanged.🔗 References
Related feature request: #6266 (user feedback: #6266 (comment))
🔍 Validation
f207def6built the Debug x64 CLI and tests. All 32 focused Catch2 cases passed (534 assertions), covering remote YAML/ZIP loading, invalid URLs and archives, multiple-manifest rejection, opt-in gating, local paths, cleanup, administrator settings, and group policy.show --manifest, plus the missing-local-path error. Relative and absolute local ZIP paths were also verified, including uppercase ZIP extensions and rejection of malformed or ambiguous archives. No installer was launched by these checks.✅ Checklist
🤖 AI Assistance
📋 Issue Type
Microsoft Reviewers: Open in CodeFlow