Skip to content

Commit 68af4bd

Browse files
authored
bump polly to v0.3.3 (#669)
1 parent 1e11d03 commit 68af4bd

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

cmd/command/cd/cd_services.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -347,29 +347,29 @@ func (p *Plural) handleLuaTemplate(c *cli.Context) error {
347347
if err != nil {
348348
return err
349349
}
350-
proc := luautils.NewProcessor(dir)
351-
defer proc.L.Close()
350+
L := luautils.NewLuaState(dir)
351+
defer L.Close()
352352

353353
// Register global values and valuesFiles in Lua
354-
valuesTable := proc.L.NewTable()
355-
proc.L.SetGlobal("values", valuesTable)
354+
valuesTable := L.NewTable()
355+
L.SetGlobal("values", valuesTable)
356356

357-
valuesFilesTable := proc.L.NewTable()
358-
proc.L.SetGlobal("valuesFiles", valuesFilesTable)
359-
proc.L.SetGlobal("cluster", luautils.GoValueToLuaValue(proc.L, ctx["cluster"]))
360-
proc.L.SetGlobal("configuration", luautils.GoValueToLuaValue(proc.L, ctx["configuration"]))
361-
proc.L.SetGlobal("contexts", luautils.GoValueToLuaValue(proc.L, ctx["contexts"]))
362-
proc.L.SetGlobal("imports", luautils.GoValueToLuaValue(proc.L, ctx["imports"]))
357+
valuesFilesTable := L.NewTable()
358+
L.SetGlobal("valuesFiles", valuesFilesTable)
359+
L.SetGlobal("cluster", luautils.GoValueToLuaValue(L, ctx["cluster"]))
360+
L.SetGlobal("configuration", luautils.GoValueToLuaValue(L, ctx["configuration"]))
361+
L.SetGlobal("contexts", luautils.GoValueToLuaValue(L, ctx["contexts"]))
362+
L.SetGlobal("imports", luautils.GoValueToLuaValue(L, ctx["imports"]))
363363

364-
if err := proc.L.DoString(luaStr); err != nil {
364+
if err := L.DoString(luaStr); err != nil {
365365
return err
366366
}
367367

368-
if err := luautils.MapLua(proc.L.GetGlobal("values").(*lua.LTable), &values); err != nil {
368+
if err := luautils.MapLua(L.GetGlobal("values").(*lua.LTable), &values); err != nil {
369369
return err
370370
}
371371

372-
if err := luautils.MapLua(proc.L.GetGlobal("valuesFiles").(*lua.LTable), &valuesFiles); err != nil {
372+
if err := luautils.MapLua(L.GetGlobal("valuesFiles").(*lua.LTable), &valuesFiles); err != nil {
373373
return err
374374
}
375375

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
cloud.google.com/go/resourcemanager v1.10.6
88
cloud.google.com/go/serviceusage v1.9.6
99
cloud.google.com/go/storage v1.52.0
10-
dario.cat/mergo v1.0.1
10+
dario.cat/mergo v1.0.2
1111
filippo.io/age v1.2.1
1212
github.com/AlecAivazis/survey/v2 v2.3.7
1313
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.0
@@ -44,7 +44,7 @@ require (
4444
github.com/pluralsh/console/go/controller v0.0.0-20251003110458-1e8b13ad7500
4545
github.com/pluralsh/gqlclient v1.12.2
4646
github.com/pluralsh/plural-operator v0.5.5
47-
github.com/pluralsh/polly v0.3.1
47+
github.com/pluralsh/polly v0.3.3
4848
github.com/posthog/posthog-go v1.4.10
4949
github.com/samber/lo v1.50.0
5050
github.com/urfave/cli v1.22.16

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ cloud.google.com/go/storage v1.52.0 h1:ROpzMW/IwipKtatA69ikxibdzQSiXJrY9f6IgBa9A
2929
cloud.google.com/go/storage v1.52.0/go.mod h1:4wrBAbAYUvYkbrf19ahGm4I5kDQhESSqN3CGEkMGvOY=
3030
cloud.google.com/go/trace v1.11.6 h1:2O2zjPzqPYAHrn3OKl029qlqG6W8ZdYaOWRyr8NgMT4=
3131
cloud.google.com/go/trace v1.11.6/go.mod h1:GA855OeDEBiBMzcckLPE2kDunIpC72N+Pq8WFieFjnI=
32-
dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s=
33-
dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
32+
dario.cat/mergo v1.0.2 h1:85+piFYR1tMbRrLcDwR18y4UKJ3aH1Tbzi24VRW1TK8=
33+
dario.cat/mergo v1.0.2/go.mod h1:E/hbnu0NxMFBjpMIE34DRGLWqDy0g5FuKDhCb31ngxA=
3434
filippo.io/age v1.2.1 h1:X0TZjehAZylOIj4DubWYU1vWQxv9bJpo+Uu2/LGhi1o=
3535
filippo.io/age v1.2.1/go.mod h1:JL9ew2lTN+Pyft4RiNGguFfOpewKwSHm5ayKD/A4004=
3636
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
@@ -579,8 +579,8 @@ github.com/pluralsh/oauth v0.9.2 h1:tM9hBK4tCnJUeCOgX0ctxBBCS3hiCDPoxkJLODtedmQ=
579579
github.com/pluralsh/oauth v0.9.2/go.mod h1:aTUw/75rzcsbvW+/TLvWtHVDXFIdtFrDtUncOq9vHyM=
580580
github.com/pluralsh/plural-operator v0.5.5 h1:57GxniNjUa3hpHgvFr9oDonFgvDUC8XDD5B0e7Xduzk=
581581
github.com/pluralsh/plural-operator v0.5.5/go.mod h1:WIXiz26/WDcUn0FA7Q1jPxmfsm98U1/JL8YpIdKVLX0=
582-
github.com/pluralsh/polly v0.3.1 h1:uE4+xI3opn4a/doCyY3V8Wa1h1zN+7nOb3gnsKG0CvQ=
583-
github.com/pluralsh/polly v0.3.1/go.mod h1:uPZ7V76dzahVot6m+MOA3Y9iY0oBBoHuzUYFkJ4DnsQ=
582+
github.com/pluralsh/polly v0.3.3 h1:Vh8oc6Fvx/ZulVxZHUh160+G8dMSeoye6EpuENeC6b8=
583+
github.com/pluralsh/polly v0.3.3/go.mod h1:gk48el0JCoEV2FZXW5DV5FvlDf4G/01Wb+Py7attQjU=
584584
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
585585
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
586586
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

0 commit comments

Comments
 (0)