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§
- Bundle
Manifest - Manifest that the release packaging script writes into each bundle.
- Bundle
Platform - A Node platform that has a release bundle.
- Cleanup
Plan - What
fallow type-aware cleanupkeeps and removes. - Installed
Bundle - 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_versionwhen it speaksprotocol, otherwise the newest install that speaksprotocol. Versions compare by semantic version precedence, so the result does not depend on the order ofbundles. - store_
root - The store directory of this user, or
Nonewhen 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_signaturewith 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.