Expand description
Host-aware installer selection policy for catalog packages.
Catalog packages can publish multiple installers for different architectures, platform families, and install scopes. This module centralizes the ranking rules so callers do not need to replicate host-profile fallback logic in command code.
The selection order is intentionally simple and predictable:
- ignore installers whose platform metadata does not match the host family
- prefer installers whose scope matches the current elevation state
- prefer an installer that exactly matches the host architecture
- fall back to
Architecture::Anywhen no exact match exists - fall back to the first scope-compatible installer if nothing else matches
Structsยง
- Selection
Context ๐ - Selection inputs derived from the current runtime host state.
Enumsยง
- Installer
Scope ๐Kind - Installer
Selection ๐Error - Raised when catalog installers cannot be matched to the current host.
Functionsยง
- installer_
scope_ ๐kind - platform_
matches_ ๐host - scope_
compatible_ ๐installers - scope_
matches_ ๐host - select_
installer ๐ - Select the best installer for the current host.