mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-19 18:15:00 +00:00

* fix(embed): use go-rice for large backend assets Golang embed FS has a hard limit that we might exceed when providing many binary alternatives. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * simplify golang deps Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(tests): switch to testcontainers and print logs Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix(tests): do not build a test binary Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * small fixup Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
15 lines
210 B
Go
15 lines
210 B
Go
package main
|
|
|
|
import (
|
|
rice "github.com/GeertJohan/go.rice"
|
|
)
|
|
|
|
var backendAssets *rice.Box
|
|
|
|
func init() {
|
|
var err error
|
|
backendAssets, err = rice.FindBox("backend-assets")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|