Skip to content

Commit 21aabc2

Browse files
committed
chore: update deps
Signed-off-by: Christian Stewart <[email protected]>
1 parent 2bc4808 commit 21aabc2

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

example/plugin-demo/go.mod

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ replace github.com/aperturerobotics/controllerbus => ../..
1010
replace github.com/libp2p/go-libp2p => github.com/aperturerobotics/go-libp2p v0.37.1-0.20241111002741-5cfbb50b74e0 // aperture
1111

1212
require (
13-
github.com/aperturerobotics/controllerbus v0.49.3 // master
13+
github.com/aperturerobotics/controllerbus v0.50.0 // master
1414
github.com/aperturerobotics/protobuf-go-lite v0.9.1 // latest
1515
github.com/aperturerobotics/starpc v0.38.0 // indirect; main
16-
github.com/aperturerobotics/util v1.29.2 // indirect; latest
16+
github.com/aperturerobotics/util v1.30.0 // indirect; latest
1717
)
1818

1919
require (
@@ -24,7 +24,7 @@ require (
2424

2525
require (
2626
github.com/aperturerobotics/cli v1.0.0 // indirect
27-
github.com/aperturerobotics/common v0.21.2 // indirect
27+
github.com/aperturerobotics/common v0.22.1 // indirect
2828
github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20241223092408-d525fa878b3e // indirect
2929
github.com/coder/websocket v1.8.13 // indirect
3030
github.com/fsnotify/fsnotify v1.9.0 // indirect
@@ -48,7 +48,7 @@ require (
4848
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
4949
github.com/zeebo/blake3 v0.2.4 // indirect
5050
golang.org/x/crypto v0.35.0 // indirect
51-
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect
51+
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
5252
golang.org/x/mod v0.24.0 // indirect
5353
golang.org/x/sync v0.13.0 // indirect
5454
golang.org/x/sys v0.32.0 // indirect

example/plugin-demo/go.sum

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github.com/aperturerobotics/cli v1.0.0 h1:s3xT2h7eBih4/4yZKTn/HQ6P+qpk6ygWZl2416xAI1M=
22
github.com/aperturerobotics/cli v1.0.0/go.mod h1:wtlINjMcKuwyV1x4ftReuA6hHZcPB8kPMXHyQqGFCSc=
3-
github.com/aperturerobotics/common v0.21.2 h1:fqnPL5Oovpd8nDaNBYGiD1UpZhcH/JfpsS8gt5iBDyA=
4-
github.com/aperturerobotics/common v0.21.2/go.mod h1:FrecdNcsYvVS8RcWCR8FUkKFh+XmouFOYKHpBdMqqBA=
3+
github.com/aperturerobotics/common v0.22.1 h1:wxTV9wSgfAM9jYUuSzNFzUeC28DQMBgDO3iGahlHeaY=
4+
github.com/aperturerobotics/common v0.22.1/go.mod h1:wsPfDVCTNpGHddg/MSfm84rKoO4GAvb+TQtATXz+pKY=
55
github.com/aperturerobotics/go-libp2p v0.37.1-0.20241111002741-5cfbb50b74e0 h1:tGwbeDoEeQCrUQL+ClUywldqvz9eRmhcVrGwGxz2xJg=
66
github.com/aperturerobotics/go-libp2p v0.37.1-0.20241111002741-5cfbb50b74e0/go.mod h1:FJkAtQcP9XxqG1NNLNHKm+wLVIGSCQX2s6CEoD+w97g=
77
github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20241223092408-d525fa878b3e h1:9KDK70CSnHCUGShpq3sEg/t8zEEnKePlhJ4775ekpeI=
@@ -10,8 +10,8 @@ github.com/aperturerobotics/protobuf-go-lite v0.9.1 h1:P1knXKnwLJpVE8fmeXYGckKu7
1010
github.com/aperturerobotics/protobuf-go-lite v0.9.1/go.mod h1:fULrxQxEBWKQm7vvju9AfjTp9yfHoLgwMQWTiZQ2tg0=
1111
github.com/aperturerobotics/starpc v0.38.0 h1:/1R3TLIoVIk5AA2SdCylykrL9BfoeTsXVvv8cRn0ebU=
1212
github.com/aperturerobotics/starpc v0.38.0/go.mod h1:hXOnhcvSXOoA6/Tw/qinQKhpi8+7WDkhrFXS5nHQ6us=
13-
github.com/aperturerobotics/util v1.29.2 h1:4mF7PfltK2g9KuD5gYUx3zvfEQXA/7F/V6EIEwJA35Q=
14-
github.com/aperturerobotics/util v1.29.2/go.mod h1:wfEm6n6evCQCGu+NjR8qINo0feaPEgeXxDZK6/oSuk8=
13+
github.com/aperturerobotics/util v1.30.0 h1:OKhFVPnAfR8/dfVNV27EtMr27C0kzwPiStoCwKiint0=
14+
github.com/aperturerobotics/util v1.30.0/go.mod h1:T97YTP+FVLegYo5rylOVaPuTLyZyiDqYxD5zVLI9YAc=
1515
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
1616
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
1717
github.com/coder/websocket v1.8.13 h1:f3QZdXy7uGVz+4uCJy2nTZyM0yTBj8yANEHhqlXZ9FE=
@@ -85,8 +85,8 @@ github.com/zeebo/pcg v1.0.1 h1:lyqfGeWiv4ahac6ttHs+I5hwtH/+1mrhlCtVNQM2kHo=
8585
github.com/zeebo/pcg v1.0.1/go.mod h1:09F0S9iiKrwn9rlI5yjLkmrug154/YRW6KnnXVDM/l4=
8686
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
8787
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
88-
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw=
89-
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394/go.mod h1:sIifuuw/Yco/y6yb6+bDNfyeQ/MdPUy/hKEMYQV17cM=
88+
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 h1:R84qjqJb5nVJMxqWYb3np9L5ZsaDtB+a39EqjV0JSUM=
89+
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0/go.mod h1:S9Xr4PYopiDyqSyp5NjCrhFrqg6A5zA2E/iPHPhqnS8=
9090
golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
9191
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
9292
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=

plugin/compiler/module-compiler.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,17 @@ func (m *ModuleCompiler) GenerateModules(analysis *Analysis, pluginBinaryVersion
100100
outPluginCodeFilePath := path.Join(codegenModulesPluginPathBin, "plugin.go")
101101

102102
// outPluginGoMod will contain the go.mod for the container plugin.
103-
// Add the first line "module plugin"
104103
outPluginGoMod := &modfile.File{}
104+
105+
// Add the first line "module plugin"
105106
err = outPluginGoMod.AddModuleStmt(path.Join(buildPrefix, codegenModulesPluginName))
106107
if err != nil {
107108
return err
108109
}
109110

111+
// Add the go version
112+
outPluginGoMod.AddGoStmt("1.24")
113+
110114
// For each module, create a codegen module directory.
111115
// Add a replace statement to outPluginGoMod for each.
112116
genCodegenModulePath := func(modPath string) string {
@@ -298,7 +302,7 @@ func (m *ModuleCompiler) GenerateModules(analysis *Analysis, pluginBinaryVersion
298302
}
299303

300304
formatCodeFile := func(pkgCodeFile *ast.File) ([]byte, error) {
301-
format.File(analysis.fset, pkgCodeFile, format.Options{LangVersion: "1.14"})
305+
format.File(analysis.fset, pkgCodeFile, format.Options{LangVersion: "go1.24"})
302306
var outBytes bytes.Buffer
303307
var printerConf printer.Config
304308
printerConf.Mode |= printer.SourcePos

0 commit comments

Comments
 (0)