email_test: allow running with INTERNAL=on

This commit is contained in:
Harvey Tindall
2025-08-31 17:39:08 +01:00
parent febbe27a0d
commit 87c0f54a8d
8 changed files with 43 additions and 30 deletions
+4 -3
View File
@@ -6,7 +6,8 @@ package main
import (
"embed"
"io/fs"
"log"
"github.com/hrfee/jfa-go/logger"
)
const binaryType = "internal"
@@ -35,8 +36,8 @@ func FSJoin(elem ...string) string {
return out[:len(out)-1]
}
func loadFilesystems() {
func loadFilesystems(rootDir string, logger *logger.Logger) {
langFS = rewriteFS{laFS, "lang/"}
localFS = rewriteFS{loFS, "data/"}
log.Println("Using internal storage")
logger.Println("Using internal storage")
}