Expand description
Windows (Chocolatey) package resolver — counterpart to macos_image_resolver.
On Windows containers (WCOW), Linux package manager invocations
(apt-get install, dnf install, apk add) inside a Dockerfile cannot
run natively. This module resolves Linux package names against the
RepoSources Chocolatey shard files published at
https://zachhandley.github.io/RepoSources/maps/choco/<distro>/<shard>.json
and returns the equivalent Chocolatey package name so the builder can
emit choco install <pkg> lines in the WCOW lowered Dockerfile.
The shard layout, on-disk cache, and HMAC cache-warming hint mirror the
macOS resolver in macos_image_resolver.rs. The Windows resolver lives in
a separate cache subdirectory (package-maps-choco-v1) so its TTL/version
is independent from the macOS resolver.
Structs§
- Choco
MapMetadata - Metadata header inside a Chocolatey shard JSON file.
- Choco
MapShard - JSON shape of a Chocolatey package-map shard file as published by
RepoSources.
Enums§
- Resolved
Windows Package - A resolved Windows package, after consulting both the relocatable-artifact discovery endpoint and the Chocolatey shard map.
Functions§
- resolve_
chocolatey_ package - Resolve a single Linux package name to its Chocolatey equivalent.
- resolve_
chocolatey_ packages - Bulk-resolve a list of Linux packages.
- resolve_
windows_ packages - Resolve a batch of Linux package names to
ResolvedWindowsPackages. - rewrite_
image_ for_ windows - Rewrite a generic image reference to the equivalent prebuilt
ZLayerWindows image under [ZLAYER_REGISTRY], parameterized by an LTSC line.