diff options
| author | t <t@tjp.lol> | 2026-06-23 09:38:23 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-23 10:53:26 -0600 |
| commit | 69a1ee138bb78ad4663fe2d9e58678f7b0d07b74 (patch) | |
| tree | 453d3ad42a07536220e6ca5d91b439ff57793e32 /src/luarocks_runtime.zig | |
| parent | 538a5d926fa626a00cc3dc12c555f11f82867efd (diff) | |
ponytail simplifications to panto cli and lua extensiosn
Diffstat (limited to 'src/luarocks_runtime.zig')
| -rw-r--r-- | src/luarocks_runtime.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/luarocks_runtime.zig b/src/luarocks_runtime.zig index 7991e4e..1505b8f 100644 --- a/src/luarocks_runtime.zig +++ b/src/luarocks_runtime.zig @@ -2,7 +2,7 @@ //! //! Responsibilities at startup (per LUA_MAKEOVER.md steps 3-5 and Q1-Q5): //! -//! 1. Resolve `$PANTO_HOME` and the per-Lua-version rocks tree +//! 1. Resolve the panto data home and the per-Lua-version rocks tree //! (`panto_home.zig`). Create the directory layout if missing. //! 2. Stage Lua headers under `<tree>/include/` (from `@embedFile`) //! so luarocks can compile C rocks against them. Idempotent: a @@ -21,7 +21,7 @@ //! 7. Reconcile the batteries manifest: for each pinned rock, check //! `<tree>/lib/luarocks/rocks-<short>/<name>/<version>/` and invoke //! `luarocks install` for anything missing. (Slow path; only the -//! first run after a fresh `$PANTO_HOME` actually downloads.) +//! first run after a fresh data home actually downloads.) //! //! Step 7 needs a usable `lua` executable on PATH from luarocks's point //! of view \u2014 it shells out for rockspec build scripts. We satisfy @@ -330,7 +330,7 @@ fn ensurePantoModuleSignature( // --------------------------------------------------------------------------- /// Materialize the binary-embedded `agent/` tree under -/// `$PANTO_HOME/agent/`. Each entry's `path` is relative to the agent +/// `<data home>/agent/`. Each entry's `path` is relative to the agent /// root and may include subdirectories (`tools/read.lua` etc.); the /// parent directory is created lazily as we encounter files inside it. /// @@ -360,7 +360,7 @@ fn stageAgentTree( } } -/// The default base `config.toml`, materialized at `$PANTO_HOME/config.toml` +/// The default base `config.toml`, materialized at `<data home>/config.toml` /// on first run if absent. It declares OpenAI and Anthropic providers, each /// naming an `[auth.<name>]` session whose key comes from the conventional /// env var — so a provider's first request fails with a clear auth error @@ -463,7 +463,7 @@ const default_base_config = \\ ; -/// Materialize the default base config at `$PANTO_HOME/config.toml`, +/// Materialize the default base config at `<data home>/config.toml`, /// but only if no file exists there yet. We never overwrite — the base /// config is user-editable, and a stale-but-edited file must win over the /// shipped default. @@ -579,7 +579,7 @@ fn writeShellQuoted(w: anytype, s: []const u8) !void { /// Materialize a luarocks config-<short>.lua under `layout.sysconfdir`. /// This is the file luarocks reads from `SYSCONFDIR`; we point every /// path-typed variable at the in-tree directories so installs land in -/// `$PANTO_HOME/rocks/lua-X.Y.Z/`. +/// `<data home>/rocks/lua-X.Y.Z/`. /// /// Format reference: docs/config_file_format.md in the luarocks repo. fn writeLuarocksConfig( |
