Build and packaging library
- Python 68.8%
- Makefile 22.5%
- Shell 8.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
KvFile.__init__() accepts a host FileContext plus an optional Distro, and the two may live on different hosts. In effect, files are read from one host based on another host's package set, which may have its use cases but is generally undesirable. The context parameter also breaks the uniformity of the store constructors: Sops, TarGpg, and Vault are constructed from a URI alone, and FileContext.create() needs a special case that builds the kvfile store's inner context before handing it to the constructor. This commit has KvFile constructed from a URI alone like the other stores. The URI's authority names the host, no authority means "local", and the constructor builds the inner context through FileContext.create() with chroot off, forwarding the store's constructor parameters to it. The inner context is always an exec context, which the distro derivation needs: it is lazy, Distro.instantiate() runs on the first file listing, with the JW_DEFAULT_PKG_FILTER environment variable as the default package filter, as before. Adapt all call sites: - FileContext.create(): the kvfile case returns KvFile(uri) directly. - FilesContext: the distro parameter goes; the store URI is derived from the exec context's scheme, authority, and path, so a local context with a hostname in its URI stays local. - DistroContext.install(): the kvfile source wrap goes; the compounds read directly through the source context with parse_kv(). - The store tests monkey-patch Distro.instantiate() for the stores that list something Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0 Signed-off-by: Jan Lindemann <jan@janware.com> |
||
| .github/workflows | ||
| bin | ||
| conf | ||
| doc | ||
| make | ||
| scripts | ||
| src | ||
| test | ||
| .gitignore | ||
| HASH | ||
| Makefile | ||
| RELEASES | ||
| VERSION | ||