Skip to main content

Module pack

Module pack 

Source
Expand description

Packing a services tree into a bundle archive.

The file list is walked in sorted order and paths are stored with / separators, so packing the same tree twice on the same platform yields the same ServicesBundleManifest::content_hash and the same archive layout. Ownership is derived from the tree rather than declared, so a manifest cannot claim ids the bundle does not carry.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Functions§

build_manifest
collect_files
create_tarball_bytes
derive_ownership
manifest_checksum
write_tarball