[bug] install_core missing unzip — install_bun fails on fresh VMs, blocks service_books install #187
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#187
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
install_core(orinstall_bun, whichever owns the dependency) should ensureunzipis installed as a base apt dep. Today's deploy on a fresh-ish herodemo VM hit:Workaround on the VM:
apt-get install -y unzip. After that,install_bunruns andservice_books installcompletes.Where it fits
Either:
install_coreaddsunzipto its apt list (most defensible — matches its broader role of installing apt deps)install_bunchecks forunzipand installs it explicitly when missingEither is fine.
install_coreis the cleaner spot since other tools (besides bun) might also benefit from unzip being present.Why it surfaced today
VM was set up months ago without unzip; the bun installer worked back then because someone manually ran apt at some point. New VMs / re-provisioned VMs would hit this on first install_all that reaches service_books.
Severity
Low (one-line apt install workaround), but it's a deploy-blocker on a fresh VM. Worth catching in install_core to avoid the next person hitting the same wall.
Cross-refs
Adding two more deps that bit us during the same 2026-05-01 deploy:
sccache—apt-get install -y sccacheworks (Ubuntu 24.04 has 0.7.7). Hero already has thesccache.nuskill withinstall_sccachemachinery, andinstall_corecalls it underis-admin, but on this VM that pathway never ran (manualinstall_corenot executed since provision). Workaround applied: directapt install sccache+ symlink/usr/local/bin/sccache → /usr/bin/sccache(matching whatinstall_sccachewould produce). Nowwhich sccachereturns clean for bothrootanddriver.install_sccacherun-as-root bugs (separate but related):Command sudo not found— when invoked as root,run_privcallssudounconditionally instead of detecting root and running directlyROOTDIR not set—init mainrunsload_init_shwhich expects~/hero/cfg/init.shto exist; for root that path is/root/hero/cfg/init.shwhich isn\u0027t configured on this VMBoth probably worth a pass on the run-as-root code paths in
sccache.nuandinit.nu.Combined with the unzip case in this issue, the picture is:
install_coreis the right place for these but the path of "manually run install_core on a fresh VM" hasn\u0027t been part of the deploy runbook in a while. Either:install_core --idempotentstep toservice_completeso deploys self-heal missing apt depsOption 2 is the long answer; option 1 is the cheap shorter-term fix.