diff --git a/internal/plugin.go b/internal/plugin.go index 4a5fc0c4..d1bd94b1 100644 --- a/internal/plugin.go +++ b/internal/plugin.go @@ -279,6 +279,8 @@ func (l *LuaPlugin) EnvKeys(sdkPackage *Package) (env.Envs, error) { L := l.state mainInfo := sdkPackage.Main sdkArr := L.NewTable() + sdkTable := l.createSdkInfoTable(mainInfo) + L.SetField(sdkArr, mainInfo.Name, sdkTable) for _, v := range sdkPackage.Additions { sdkTable := l.createSdkInfoTable(v) L.SetField(sdkArr, v.Name, sdkTable)