Skip to main content

Module type_aware_setup

Module type_aware_setup 

Source
Expand description

The user directory of fallow type-aware setup, its bundle manifest, and the signature check of a bundle. The user directory that fallow type-aware setup installs into.

Each install lives in <store>/<fallow version>/. The directory holds the unpacked, signature-checked bundle and its bundle.json manifest. Discovery checks the store after FALLOW_TYPE_AWARE_BIN and the sibling of the active executable. It prefers the install of the running Fallow version. Otherwise it takes the newest install that speaks the same wire protocol, so a Fallow upgrade keeps a working companion until the protocol changes.

Structs§

BundleManifest
Manifest that the release packaging script writes into each bundle.
BundlePlatform
A Node platform that has a release bundle.
CleanupPlan
What fallow type-aware cleanup keeps and removes.
InstalledBundle
One install in the store.

Constants§

BUNDLE_MANIFEST
File name of the bundle manifest inside an install directory.
BUNDLE_MANIFEST_SCHEMA_VERSION
Schema version of BundleManifest.
BUNDLE_PLATFORMS
Node platforms that the release job builds a bundle for. The TypeScript platform package follows Node, not Fallow: an x64 Node on an arm64 Mac needs the x64 bundle.
SETUP_DIRECTORY_SOURCE
Discovery source label of a companion from the setup directory.

Functions§

bundle_platform
Select the bundle for the platform and architecture that Node reports.
cleanup_plan
Plan the removal of every install except the one that discovery uses.
find_setup_companion
The companion executable of the selected install, when one exists.
find_user_setup_companion
The companion of this user’s setup directory, when one exists.
installed_bundles
Every install in the store whose directory name equals the Fallow version in its manifest. Other entries (temporary directories of an interrupted setup, files) are skipped.
read_manifest
Read a bundle manifest.
release_signing_key
Public key of the release signatures that this binary holds.
select_bundle
The install that discovery uses: the one of current_version when it speaks protocol, otherwise the newest install that speaks protocol. Versions compare by semantic version precedence, so the result does not depend on the order of bundles.
store_root
The store directory of this user, or None when the environment has no home or data directory.
verify_bundle_signature
Check the detached Ed25519 signature of a bundle archive against the release key that this binary holds.
verify_bundle_signature_with_key
verify_bundle_signature with an explicit public key. Tests and debug builds use it with a test key; release builds use the release key only.
version_dir
The install directory of one Fallow version inside the store.
wire_protocol_version
Wire protocol version that this Fallow build speaks.