Skip to content

Commit b3baa1e

Browse files
authored
Set explicit version of remote code generators (#26)
This explicitly sets the version of the remote code generators to avoid pulling in updated versions on new releases. Avoids tests regenerating code causing an unwanted diff. Upgraded google.golang.org/protobuf v1.36.9 to match code generator.
1 parent 8b8eb06 commit b3baa1e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

buf.gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ managed:
88
- file_option: go_package
99
module: buf.build/bufbuild/protovalidate
1010
plugins:
11-
- remote: buf.build/protocolbuffers/go
11+
- remote: buf.build/protocolbuffers/go:v1.36.9
1212
out: internal/gen
1313
opt: paths=source_relative
1414
inputs:
15-
- directory: .
15+
- directory: .

buf.vt.gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ managed:
55
- file_option: go_package_prefix
66
value: buf.build/go/hyperpb/internal/gen
77
plugins:
8-
- remote: buf.build/community/planetscale-vtprotobuf
8+
- remote: buf.build/community/planetscale-vtprotobuf:v0.6.0
99
out: internal/gen
1010
opt: paths=source_relative
1111
inputs:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
golang.org/x/crypto v0.41.0
1818
golang.org/x/term v0.34.0
1919
golang.org/x/tools v0.36.0
20-
google.golang.org/protobuf v1.36.7
20+
google.golang.org/protobuf v1.36.9
2121
gopkg.in/yaml.v3 v3.0.1
2222
)
2323

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20250811230008-5f3141c8851a h1:
144144
google.golang.org/genproto/googleapis/api v0.0.0-20250811230008-5f3141c8851a/go.mod h1:y2yVLIE/CSMCPXaHnSKXxu1spLPnglFLegmgdY23uuE=
145145
google.golang.org/genproto/googleapis/rpc v0.0.0-20250811230008-5f3141c8851a h1:tPE/Kp+x9dMSwUm/uM0JKK0IfdiJkwAbSMSeZBXXJXc=
146146
google.golang.org/genproto/googleapis/rpc v0.0.0-20250811230008-5f3141c8851a/go.mod h1:gw1tLEfykwDz2ET4a12jcXt4couGAm7IwsVaTy0Sflo=
147-
google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A=
148-
google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
147+
google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw=
148+
google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU=
149149
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
150150
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
151151
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

0 commit comments

Comments
 (0)