mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
The disable-backend-install switch (#12754) makes InstallBackend and UpgradeBackend read d.systemState.DisableBackendInstall. The test fixtures build the manager as a struct literal or through NewDistributedBackendManager with an empty ApplicationConfig, so systemState is nil and every install and upgrade spec panics with a nil pointer dereference. Set a zero-value SystemState in each fixture. That keeps installs allowed, which is what these specs expect. Assisted-by: Claude Code:claude-haiku-5-5 Co-authored-by: Ettore Di Giacinto <mudler@localai.io>