Skip to content

Commit

Permalink
bugfix(plugin): following 9151cf2#r139483858
Browse files Browse the repository at this point in the history
  • Loading branch information
aooohan committed Mar 7, 2024
1 parent e1a0462 commit 1ec5bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,12 @@ func (l *LuaPlugin) EnvKeys(sdkPackage *Package) (env.Envs, error) {
mainInfo := sdkPackage.Main
sdkArr := L.NewTable()
sdkTable := l.createSdkInfoTable(mainInfo)
L.SetField(sdkArr, "main", sdkTable)
for _, v := range sdkPackage.Additions {
sdkTable := l.createSdkInfoTable(v)
L.SetField(sdkArr, v.Name, sdkTable)
}
ctxTable := L.NewTable()
L.SetField(ctxTable, "main", sdkTable)
L.SetField(ctxTable, "sdkInfo", sdkArr)
L.SetField(ctxTable, "runtimeVersion", lua.LString(RuntimeVersion))
// TODO Will be deprecated in future versions
Expand Down

0 comments on commit 1ec5bc0

Please sign in to comment.