Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump bufbuild/buf-setup-action from 1.32.2 to 1.33.0 #220

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
go-version: stable
cache-dependency-path: go.work.sum
- name: Install buf
uses: bufbuild/buf-setup-action@v1.32.2
uses: bufbuild/buf-setup-action@v1.33.0
with:
github_token: ${{ github.token }}
- name: Buf format
Expand Down
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ load("@rules_buf//buf:repositories.bzl", "rules_buf_dependencies", "rules_buf_to

rules_buf_dependencies()

rules_buf_toolchains(version = "v1.28.0")
rules_buf_toolchains(version = "v1.33.0")

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ message BytesMaxLen {
}
message BytesMinMaxLen {
bytes val = 1 [(buf.validate.field).bytes = {
min_len: 3,
min_len: 3
max_len: 5
}];
}
message BytesEqualMinMaxLen {
bytes val = 1 [(buf.validate.field).bytes = {
min_len: 5,
min_len: 5
max_len: 5
}];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ message NoExpressions {
// A message with message-level custom expressions
message MessageExpressions {
option (message).cel = {
id: "message_expression_scalar",
message: "a must be less than b",
id: "message_expression_scalar"
message: "a must be less than b"
expression: "this.a < this.b"
};
option (message).cel = {
id: "message_expression_enum",
message: "c must not equal d",
expression: "this.c != this.d",
id: "message_expression_enum"
message: "c must not equal d"
expression: "this.c != this.d"
};
option (message).cel = {
id: "message_expression_embed",
message: "e.a must equal f.a",
id: "message_expression_embed"
message: "e.a must equal f.a"
expression: "this.e.a == this.f.a"
};

Expand All @@ -59,7 +59,7 @@ message MessageExpressions {

message Nested {
option (message).cel = {
id: "message_expression_nested",
id: "message_expression_nested"
expression:
"this.a > this.b ? ''"
": 'a must be greater than b'"
Expand All @@ -72,66 +72,66 @@ message MessageExpressions {

message FieldExpressions {
int32 a = 1 [(field).cel = {
id: "field_expression_scalar",
id: "field_expression_scalar"
expression:
"this > 42 ? ''"
": 'a must be greater than 42'",
": 'a must be greater than 42'"
}];
Enum b = 2 [(field).cel = {
id: "field_expression_enum",
message: "b must be ~ONE",
expression: "this == 1",
id: "field_expression_enum"
message: "b must be ~ONE"
expression: "this == 1"
}];
Nested c = 3 [(field).cel = {
id: "field_expression_embed",
message: "c.a must be a multiple of 4",
expression: "this.a % 4 == 0",
id: "field_expression_embed"
message: "c.a must be a multiple of 4"
expression: "this.a % 4 == 0"
}];

message Nested {
int32 a = 1 [(field).cel = {
id: "field_expression_nested"
expression:
"this > 0 ? ''"
": 'a must be positive'",
": 'a must be positive'"
}];
}
}

message MissingField {
option (message).cel = {
id: "missing_field",
message: "b must be positive",
expression: "this.b > 0",
id: "missing_field"
message: "b must be positive"
expression: "this.b > 0"
};

int32 a = 1;
}

message IncorrectType {
option (message).cel = {
id: "incorrect_type",
message: "a must start with 'foo'",
expression: "this.a.startsWith('foo')",
id: "incorrect_type"
message: "a must start with 'foo'"
expression: "this.a.startsWith('foo')"
};

int32 a = 1;
}

message DynRuntimeError {
option (message).cel = {
id: "dyn_runtime_err",
message: "dynamic type tries to use a non-existent field",
expression: "dyn(this).b == 'foo'",
id: "dyn_runtime_err"
message: "dynamic type tries to use a non-existent field"
expression: "dyn(this).b == 'foo'"
};

int32 a = 1;
}

message NowEqualsNow {
option (message).cel = {
id: "now_equals_now",
message: "now should equal now within an expression",
expression: "now == now",
id: "now_equals_now"
message: "now should equal now within an expression"
expression: "now == now"
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ message IgnoreEmptyProto2Message {
optional Msg val = 1 [
(buf.validate.field).ignore_empty = true,
(buf.validate.field).cel = {
id: "ignore_empty.proto2.message",
message: "foobar",
expression: "this.val == 'foo'",
id: "ignore_empty.proto2.message"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ message IgnoreEmptyProto3Message {
optional Msg val = 1 [
(buf.validate.field).ignore_empty = true,
(buf.validate.field).cel = {
id: "ignore_empty.proto3.message",
message: "foobar",
expression: "this.val == 'foo'",
id: "ignore_empty.proto3.message"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand Down Expand Up @@ -71,20 +71,20 @@ message IgnoreEmptyProto3Map {

message IgnoreEmptyRepeatedItems {
repeated int32 val = 1 [(buf.validate.field).repeated.items = {
ignore_empty: true,
int32: {gt: 0},
ignore_empty: true
int32: {gt: 0}
}];
}

message IgnoreEmptyMapPairs {
map<string, int32> val = 1 [
(buf.validate.field).map.keys = {
ignore_empty: true,
string: {min_len: 3},
ignore_empty: true
string: {min_len: 3}
},
(buf.validate.field).map.values = {
ignore_empty: true,
int32: {gt: 0},
ignore_empty: true
int32: {gt: 0}
}
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ message Proto2ScalarRequiredIgnoreDefaultWithDefault {

message Proto2MessageOptionalIgnoreUnspecified {
optional Msg val = 1 [(buf.validate.field).cel = {
id: "proto2.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto2.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}];
message Msg {
optional string val = 1;
Expand All @@ -115,9 +115,9 @@ message Proto2MessageOptionalIgnoreEmpty {
optional Msg val = 1 [
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED,
(buf.validate.field).cel = {
id: "proto2.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto2.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand All @@ -129,9 +129,9 @@ message Proto2MessageOptionalIgnoreDefault {
optional Msg val = 1 [
(buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
(buf.validate.field).cel = {
id: "proto2.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto2.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand All @@ -141,9 +141,9 @@ message Proto2MessageOptionalIgnoreDefault {

message Proto2MessageRequiredIgnoreUnspecified {
required Msg val = 1 [(buf.validate.field).cel = {
id: "proto2.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto2.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}];
message Msg {
optional string val = 1;
Expand All @@ -154,9 +154,9 @@ message Proto2MessageRequiredIgnoreEmpty {
required Msg val = 1 [
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED,
(buf.validate.field).cel = {
id: "proto2.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto2.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand All @@ -168,9 +168,9 @@ message Proto2MessageRequiredIgnoreDefault {
required Msg val = 1 [
(buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
(buf.validate.field).cel = {
id: "proto2.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto2.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ message Proto3ScalarIgnoreDefault {

message Proto3MessageOptionalIgnoreUnspecified {
optional Msg val = 1 [(buf.validate.field).cel = {
id: "proto3.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto3.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}];
message Msg {
optional string val = 1;
Expand All @@ -69,9 +69,9 @@ message Proto3MessageOptionalIgnoreEmpty {
optional Msg val = 1 [
(buf.validate.field).ignore = IGNORE_EMPTY,
(buf.validate.field).cel = {
id: "proto3.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto3.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand All @@ -83,9 +83,9 @@ message Proto3MessageOptionalIgnoreDefault {
optional Msg val = 1 [
(buf.validate.field).ignore = IGNORE_DEFAULT,
(buf.validate.field).cel = {
id: "proto3.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto3.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand All @@ -95,9 +95,9 @@ message Proto3MessageOptionalIgnoreDefault {

message Proto3MessageIgnoreUnspecified {
Msg val = 1 [(buf.validate.field).cel = {
id: "proto3.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto3.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}];
message Msg {
optional string val = 1;
Expand All @@ -108,9 +108,9 @@ message Proto3MessageIgnoreEmpty {
Msg val = 1 [
(buf.validate.field).ignore = IGNORE_EMPTY,
(buf.validate.field).cel = {
id: "proto3.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto3.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand All @@ -122,9 +122,9 @@ message Proto3MessageIgnoreDefault {
Msg val = 1 [
(buf.validate.field).ignore = IGNORE_DEFAULT,
(buf.validate.field).cel = {
id: "proto3.message.ignore.empty",
message: "foobar",
expression: "this.val == 'foo'",
id: "proto3.message.ignore.empty"
message: "foobar"
expression: "this.val == 'foo'"
}
];
message Msg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ message ComplexTestMsg {
in: ["type.googleapis.com/google.protobuf.Duration"]
}];
repeated google.protobuf.Timestamp rep_ts_val = 13 [(buf.validate.field).repeated = {
items {
timestamp {
gte {nanos: 1000000}
items: {
timestamp: {
gte: {nanos: 1000000}
}
}
}];
Expand Down
Loading