summaryrefslogtreecommitdiff
path: root/spec/test_init.lua
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-08-20 12:49:36 -0600
committert <t@tjp.lol>2026-08-20 13:39:46 -0600
commita08d854d52cf5492a7763bccc1ce475dcc057cba (patch)
treeccc2933bba649e9cd6d0fbe0cfc2426f9ae2d886 /spec/test_init.lua
parentd1306506aa7f504b0e91c9c6ed7314afbf99978e (diff)
Replace lyaml with api7-lua-tinyyaml and prepare the 0.1.0 releasev0.1.0
lyaml binds the system libyaml, which luarocks does not vendor, so installing the rock failed wherever that library was absent, taking the whole extension down on a stock macOS machine. api7-lua-tinyyaml is pure Lua and matches lyaml on every quoting, escaping and block-scalar form profiles use. What the subset costs: anchors and aliases are not resolved, and plain multi-line scalars raise. The raise surfaces through the existing parse warning, but an unresolved alias came back as the literal "*alias" string and would have become a profile name, so frontmatter.parse now detects those keys, drops them, and warns. Point source.url at code.tjp.lol with a v0.1.0 tag, replacing a GitHub URL that never existed. Add a LICENSE file and mise release tasks, and fix the README dependency-install command, which called a luarocks.cmd function that does not exist.
Diffstat (limited to 'spec/test_init.lua')
-rw-r--r--spec/test_init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/test_init.lua b/spec/test_init.lua
index 5d2f8d9..eb8777a 100644
--- a/spec/test_init.lua
+++ b/spec/test_init.lua
@@ -5,7 +5,7 @@
-- lifecycle subscription is invisible until a user notices the tools are gone or
-- a cancelled turn leaves children running. Discovery is pointed at a temporary
-- config layer, so the assertions do not depend on this machine's ~/.config; the
--- first case skips when luv or lyaml is missing because the profile it looks for
+-- first case skips when luv or tinyyaml is missing because the profile it looks for
-- could not be read without them.
local fake = require("spec.fake_ext")
@@ -55,8 +55,8 @@ return {
if not ok_uv then
return "skip", "luv is not installed"
end
- if not pcall(require, "lyaml") then
- return "skip", "lyaml is not installed"
+ if not pcall(require, "tinyyaml") then
+ return "skip", "tinyyaml is not installed"
end
local tmp = assert(uv.fs_mkdtemp("/tmp/panto-subagents-init-XXXXXX"))