Watch
0
0
Fork
You've already forked hyperhive
0

hive-c0re: validate forge env at startup; char-safe short revs

HIVE_FORGE_URL (set + parseable) and HIVE_ASSETS_DIR are checked once in
main before workers start. Short revs in container_view and pr_status
take 12 chars instead of byte-slicing.
This commit is contained in:
atlas 2026-10-09 10:10:24 +02:00 • committed by mara
commit 6bb13f964d
4 changed files with 56 additions and 6 deletions

View file

@ -219,6 +219,9 @@ async fn main() -> Result<()> {
// succeeded.
lifecycle::network_isolation_from_env()
.context("network isolation settings are required at startup")?;
// The forge integration is mandatory (the NixOS module sets both
// vars unconditionally), so check them before any worker starts.
forge::validate_env()?;
cmd_serve(sc.env, sc.model_prices, sc.build_slots, db, &cli.socket).await
}
}