Fix gopher-lua init

This commit is contained in:
2026-02-19 16:26:30 +00:00
parent c8f2ad021f
commit 91ee243f9c

View File

@@ -267,7 +267,7 @@ func ensureDir(path string) error {
func loadConfig(path string) (*packageConfig, error) { func loadConfig(path string) (*packageConfig, error) {
L := lua.NewState() L := lua.NewState()
defer L.Close() defer L.Close()
lua.OpenLibraries(L) L.OpenLibs()
if err := L.DoFile(path); err != nil { if err := L.DoFile(path); err != nil {
return nil, err return nil, err