[bug] service_install_all references service_lib_rhai but no such module exists — install_all aborts on 6th service #186
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills#186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
service_install_allintools/modules/services/packages.nureferencesservice_lib_rhai5 times but no matchingservice_lib_rhai.numodule exists intools/modules/services/, and there's nouse service_lib_rhai.nuat the top of the file. nu falls through trying to execute it as an external command, which fails with:This blocks
service_install_alldeterministically on the 6th iteration (services_core[6]), aborting before any of theservices_extraservices get a chance to install.Hit live during a herodemo deploy on 2026-05-01.
Source
tools/modules/services/packages.nu:67—service_lib_rhaientry inservices_coretools/modules/services/— only containsservice_runner_rhai.nu, noservice_lib_rhai.nulhumina_code/hero_lib_rhai— exists as a Cargo workspace with library + service-runner cratesFix options
Option A: create
service_lib_rhai.nuthat doescargo build --releaseon the library crates ofhero_lib_rhai(excluding the runner_rhai service crates whichservice_runner_rhai.nualready handles). Add the matchinguse service_lib_rhai.nuat the top ofpackages.nu. Cleanest if the intent is genuinely to ship binaries from this workspace.Option B: remove
service_lib_rhaifromservices_coreand rely onservice_runner_rhai(already in the list) plus transitivecargo buildto pull the library crates as deps when other services need them. Simplest if the rhai libraries are only consumed as Cargo deps and don't need standalone build/install.Pick the one that matches the original design intent. The comment at line 167 ("install-only, no runtime") suggests Option A was the intent, but Option B may also be correct given how the dependent services already build their rhai deps transitively.
Workaround used on herodemo
Locally commented out the
service_lib_rhailine at packages.nu:67 to unblockservice_install_all. NOT pushed upstream — local-only on the herodemo VM. Will conflict on next manualgit pullof hero_skills.Meta-observation
This is the third deploy-blocking bug found today during a single
service_install_allrun, after hero_router#81 (/Volumes/T7path leak) and hero_proc#91 (CREATE INDEX before ALTER TABLE). Suggestsservice_install_allhasn't been end-to-end exercised on a clean machine in a while.Worth considering: a CI job that runs
service_install_all --update --releaseagainst a fresh VM image weekly, to catch this class of regression before someone needs to deploy under pressure.