Skip to content

Commit 7e05740

Browse files
committed
chore: fix buf lint issues
1 parent ff1f94a commit 7e05740

File tree

5 files changed

+22
-26
lines changed

5 files changed

+22
-26
lines changed

go.mod

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ tool (
136136
github.com/magefile/mage/mage
137137
// vulncheck always uses the current directory's go.mod.
138138
golang.org/x/vuln/cmd/govulncheck
139-
// the following are for protobuf generation
140-
google.golang.org/protobuf/cmd/protoc-gen-go
141-
google.golang.org/grpc/cmd/protoc-gen-go-grpc
142-
github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto
143139
)
144140

145141
require (

magefiles/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/ecordell/optgen v0.0.9
99
github.com/envoyproxy/protoc-gen-validate v1.0.4
1010
github.com/magefile/mage v1.15.0
11-
github.com/planetscale/vtprotobuf v0.6.1-0.20240409071808-615f978279ca
11+
github.com/planetscale/vtprotobuf v0.6.1-0.20240917153116-6f2963f01587
1212
golang.org/x/tools v0.22.0
1313
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0
1414
google.golang.org/protobuf v1.34.2

magefiles/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
291291
github.com/pkg/profile v1.7.0 h1:hnbDkaNWPCLMO9wGLdBFTIZvzDrDfBM2072E1S9gJkA=
292292
github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo=
293293
github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg=
294-
github.com/planetscale/vtprotobuf v0.6.1-0.20240409071808-615f978279ca h1:ujRGEVWJEoaxQ+8+HMl8YEpGaDAgohgZxJ5S+d2TTFQ=
295-
github.com/planetscale/vtprotobuf v0.6.1-0.20240409071808-615f978279ca/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=
294+
github.com/planetscale/vtprotobuf v0.6.1-0.20240917153116-6f2963f01587 h1:xzZOeCMQLA/W198ZkdVdt4EKFKJtS26B773zNU377ZY=
295+
github.com/planetscale/vtprotobuf v0.6.1-0.20240917153116-6f2963f01587/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=
296296
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
297297
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
298298
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=

pkg/proto/core/v1/core.pb.go

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/internal/core/v1/core.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,9 @@ message UsersetRewrite {
437437
oneof rewrite_operation {
438438
option (buf.validate.oneof).required = true;
439439

440-
SetOperation union = 1 [(buf.validate.field).required = true];
441-
SetOperation intersection = 2 [(buf.validate.field).required = true];
442-
SetOperation exclusion = 3 [(buf.validate.field).required = true];
440+
SetOperation union = 1;
441+
SetOperation intersection = 2;
442+
SetOperation exclusion = 3;
443443
}
444444

445445
SourcePosition source_position = 4;
@@ -454,10 +454,10 @@ message SetOperation {
454454
option (buf.validate.oneof).required = true;
455455

456456
This _this = 1;
457-
ComputedUserset computed_userset = 2 [(buf.validate.field).required = true];
458-
TupleToUserset tuple_to_userset = 3 [(buf.validate.field).required = true];
459-
UsersetRewrite userset_rewrite = 4 [(buf.validate.field).required = true];
460-
FunctionedTupleToUserset functioned_tuple_to_userset = 8 [(buf.validate.field).required = true];
457+
ComputedUserset computed_userset = 2;
458+
TupleToUserset tuple_to_userset = 3;
459+
UsersetRewrite userset_rewrite = 4;
460+
FunctionedTupleToUserset functioned_tuple_to_userset = 8;
461461
Nil _nil = 6;
462462
}
463463

0 commit comments

Comments
 (0)