Skip to content

Commit 954d972

Browse files
fix(deps): update module buf.build/gen/go/open-feature/flagd/grpc/go to v1.5.1-20240906125204-0a6a901b42e8.1 (#1400)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | buf.build/gen/go/open-feature/flagd/grpc/go | `v1.5.1-20240215170432-1e611e2999cc.1` -> `v1.5.1-20240906125204-0a6a901b42e8.1` | [![age](https://developer.mend.io/api/mc/badges/age/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240215170432-1e611e2999cc.1/v1.5.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/buf.build%2fgen%2fgo%2fopen-feature%2fflagd%2fgrpc%2fgo/v1.5.1-20240215170432-1e611e2999cc.1/v1.5.1-20240906125204-0a6a901b42e8.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/open-feature/flagd). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Signed-off-by: Todd Baert <todd.baert@dynatrace.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
1 parent 94860d6 commit 954d972

File tree

11 files changed

+44
-13
lines changed

11 files changed

+44
-13
lines changed

core/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ go 1.22.0
55
toolchain go1.22.7
66

77
require (
8-
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1
9-
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2
8+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1
9+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2
1010
connectrpc.com/connect v1.17.0
1111
connectrpc.com/otelconnect v0.7.1
1212
github.com/diegoholiveira/jsonlogic/v3 v3.5.3

core/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1 h1:i30n9d9zBIbLOzwsH82w7g6EOv6xtPN/byveEH9B9KQ=
22
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1/go.mod h1:aqQ1tVIXcuAslNu5a3xTSE9qvYEazL6pCZ/VLU7j1hc=
3+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1 h1:18ZObecoJfRbNQDeuW0PoBR829Mw8FrPrmWIbbaA5hs=
4+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1/go.mod h1:WA65xyBj+VxPfJ3a+EqdZtWGeNdwqiaQO1sriHaNL1Y=
35
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2 h1:f0Zk6mcwiIZNs5pRkK8hfaE1NynStc2Z4hEnripAKTo=
46
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2/go.mod h1:Y4p3/wjytMsn6a+N0geaRNEilEqj2pS3qrPqRFO5cY0=
7+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2 h1:z/+GDTJLJJjpTon7CK/pxrbwwtK7YmllO7jSTvGh0QA=
8+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2/go.mod h1:OA7of1NYh+7uttnef5AxaNjL7y1AdjLpZ4DD1a4vuZg=
59
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
610
cloud.google.com/go v0.115.0 h1:CnFSK6Xo3lDYRoBKEcAtia6VSC837/ZkJuRduSFnr14=
711
cloud.google.com/go v0.115.0/go.mod h1:8jIM5vVgoAEoiVxQ/O4BFTfHqulPZgs/ufEzMcFMdWU=

flagd-proxy/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ go 1.22.0
55
toolchain go1.22.7
66

77
require (
8-
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1
9-
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2
8+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1
9+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2
1010
github.com/dimiro1/banner v1.1.0
1111
github.com/mattn/go-colorable v0.1.13
1212
github.com/open-feature/flagd/core v0.10.2

flagd-proxy/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1 h1:i30n9d9zBIbLOzwsH82w7g6EOv6xtPN/byveEH9B9KQ=
22
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1/go.mod h1:aqQ1tVIXcuAslNu5a3xTSE9qvYEazL6pCZ/VLU7j1hc=
3+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1 h1:18ZObecoJfRbNQDeuW0PoBR829Mw8FrPrmWIbbaA5hs=
4+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1/go.mod h1:WA65xyBj+VxPfJ3a+EqdZtWGeNdwqiaQO1sriHaNL1Y=
35
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2 h1:f0Zk6mcwiIZNs5pRkK8hfaE1NynStc2Z4hEnripAKTo=
46
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2/go.mod h1:Y4p3/wjytMsn6a+N0geaRNEilEqj2pS3qrPqRFO5cY0=
7+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2 h1:z/+GDTJLJJjpTon7CK/pxrbwwtK7YmllO7jSTvGh0QA=
8+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2/go.mod h1:OA7of1NYh+7uttnef5AxaNjL7y1AdjLpZ4DD1a4vuZg=
59
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
610
cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM=
711
cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4=

flagd-proxy/pkg/service/handler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ type oldHandler struct {
7272
ctx context.Context
7373
}
7474

75+
//nolint:staticcheck
7576
func (l *oldHandler) FetchAllFlags(ctx context.Context, req *syncv1.FetchAllFlagsRequest) (
7677
*syncv1.FetchAllFlagsResponse,
7778
error,
@@ -86,6 +87,7 @@ func (l *oldHandler) FetchAllFlags(ctx context.Context, req *syncv1.FetchAllFlag
8687
}, nil
8788
}
8889

90+
//nolint:staticcheck
8991
func (l *oldHandler) SyncFlags(
9092
req *syncv1.SyncFlagsRequest,
9193
stream rpc.FlagSyncService_SyncFlagsServer,
@@ -114,6 +116,7 @@ func (l *oldHandler) SyncFlags(
114116
}
115117
}
116118

119+
//nolint:staticcheck
117120
func dataSyncToGrpcState(s sync.DataSync) syncv1.SyncState {
118121
return syncv1.SyncState(s.Type + 1)
119122
}

flagd-proxy/tests/loadtest/pkg/watcher/watcher.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,24 @@ const (
1515
)
1616

1717
type Watcher struct {
18-
client syncv1grpc.FlagSyncServiceClient
18+
client syncv1grpc.FlagSyncServiceClient
19+
//nolint:staticcheck
1920
Stream chan syncv1Types.SyncState
2021
Ready chan struct{}
2122
targetFile string
2223
}
2324

2425
func NewWatcher(client syncv1grpc.FlagSyncServiceClient, target string) *Watcher {
2526
return &Watcher{
27+
//nolint:staticcheck
2628
Stream: make(chan syncv1Types.SyncState, 1),
2729
client: client,
2830
Ready: make(chan struct{}),
2931
targetFile: target,
3032
}
3133
}
3234

35+
//nolint:staticcheck
3336
func (w *Watcher) StartWatcher(ctx context.Context) error {
3437
stream, err := w.client.SyncFlags(ctx, &syncv1Types.SyncFlagsRequest{
3538
Selector: fmt.Sprintf("file:%s", w.targetFile),

flagd/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ toolchain go1.22.7
66

77
require (
88
buf.build/gen/go/open-feature/flagd/connectrpc/go v1.16.2-20240906125204-0a6a901b42e8.1
9-
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1
10-
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2
9+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1
10+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2
1111
connectrpc.com/connect v1.17.0
1212
github.com/dimiro1/banner v1.1.0
1313
github.com/gorilla/mux v1.8.1

flagd/go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ buf.build/gen/go/open-feature/flagd/connectrpc/go v1.16.2-20240906125204-0a6a901
22
buf.build/gen/go/open-feature/flagd/connectrpc/go v1.16.2-20240906125204-0a6a901b42e8.1/go.mod h1:1ZCmwepvRLrOEOv9Hto8qUGE+S0dhHqiCbDZHsG8jGk=
33
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1 h1:i30n9d9zBIbLOzwsH82w7g6EOv6xtPN/byveEH9B9KQ=
44
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240215170432-1e611e2999cc.1/go.mod h1:aqQ1tVIXcuAslNu5a3xTSE9qvYEazL6pCZ/VLU7j1hc=
5+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1 h1:18ZObecoJfRbNQDeuW0PoBR829Mw8FrPrmWIbbaA5hs=
6+
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20240906125204-0a6a901b42e8.1/go.mod h1:WA65xyBj+VxPfJ3a+EqdZtWGeNdwqiaQO1sriHaNL1Y=
57
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2 h1:f0Zk6mcwiIZNs5pRkK8hfaE1NynStc2Z4hEnripAKTo=
68
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240215170432-1e611e2999cc.2/go.mod h1:Y4p3/wjytMsn6a+N0geaRNEilEqj2pS3qrPqRFO5cY0=
9+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2 h1:z/+GDTJLJJjpTon7CK/pxrbwwtK7YmllO7jSTvGh0QA=
10+
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.34.2-20240906125204-0a6a901b42e8.2/go.mod h1:OA7of1NYh+7uttnef5AxaNjL7y1AdjLpZ4DD1a4vuZg=
711
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
812
cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM=
913
cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4=

flagd/pkg/service/flag-evaluation/flag_evaluator.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//lint:file-ignore SA4003 old proto is deprecated but we want to serve it for a while
2-
31
package service
42

53
import (
@@ -55,7 +53,7 @@ func NewOldFlagEvaluationService(log *logger.Logger,
5553
return svc
5654
}
5755

58-
// nolint:dupl,funlen
56+
// nolint:dupl,funlen,staticcheck
5957
func (s *OldFlagEvaluationService) ResolveAll(
6058
ctx context.Context,
6159
req *connect.Request[schemaV1.ResolveAllRequest],
@@ -126,7 +124,7 @@ func (s *OldFlagEvaluationService) ResolveAll(
126124
return connect.NewResponse(res), nil
127125
}
128126

129-
// nolint:dupl
127+
// nolint:dupl,staticcheck
130128
func (s *OldFlagEvaluationService) EventStream(
131129
ctx context.Context,
132130
req *connect.Request[schemaV1.EventStreamRequest],
@@ -166,6 +164,7 @@ func (s *OldFlagEvaluationService) EventStream(
166164
}
167165
}
168166

167+
//nolint:staticcheck
169168
func (s *OldFlagEvaluationService) ResolveBoolean(
170169
ctx context.Context,
171170
req *connect.Request[schemaV1.ResolveBooleanRequest],
@@ -190,6 +189,7 @@ func (s *OldFlagEvaluationService) ResolveBoolean(
190189
return res, err
191190
}
192191

192+
//nolint:staticcheck
193193
func (s *OldFlagEvaluationService) ResolveString(
194194
ctx context.Context,
195195
req *connect.Request[schemaV1.ResolveStringRequest],
@@ -215,6 +215,7 @@ func (s *OldFlagEvaluationService) ResolveString(
215215
return res, err
216216
}
217217

218+
//nolint:staticcheck
218219
func (s *OldFlagEvaluationService) ResolveInt(
219220
ctx context.Context,
220221
req *connect.Request[schemaV1.ResolveIntRequest],
@@ -240,6 +241,7 @@ func (s *OldFlagEvaluationService) ResolveInt(
240241
return res, err
241242
}
242243

244+
//nolint:staticcheck
243245
func (s *OldFlagEvaluationService) ResolveFloat(
244246
ctx context.Context,
245247
req *connect.Request[schemaV1.ResolveFloatRequest],
@@ -265,6 +267,7 @@ func (s *OldFlagEvaluationService) ResolveFloat(
265267
return res, err
266268
}
267269

270+
//nolint:staticcheck
268271
func (s *OldFlagEvaluationService) ResolveObject(
269272
ctx context.Context,
270273
req *connect.Request[schemaV1.ResolveObjectRequest],

flagd/pkg/service/flag-evaluation/flag_evaluator_types.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//lint:file-ignore SA4003 old proto is deprecated but we want to serve it for a while
2-
31
package service
42

53
import (
@@ -20,10 +18,12 @@ type constraints interface {
2018
}
2119

2220
type booleanResponse struct {
21+
//nolint:staticcheck
2322
schemaV1Resp *connect.Response[schemaV1.ResolveBooleanResponse]
2423
evalV1Resp *connect.Response[evalV1.ResolveBooleanResponse]
2524
}
2625

26+
//nolint:staticcheck
2727
func (r *booleanResponse) SetResult(value bool, variant, reason string, metadata map[string]interface{}) error {
2828
newStruct, err := structpb.NewStruct(metadata)
2929
if err != nil {
@@ -47,10 +47,12 @@ func (r *booleanResponse) SetResult(value bool, variant, reason string, metadata
4747
}
4848

4949
type stringResponse struct {
50+
//nolint:staticcheck
5051
schemaV1Resp *connect.Response[schemaV1.ResolveStringResponse]
5152
evalV1Resp *connect.Response[evalV1.ResolveStringResponse]
5253
}
5354

55+
//nolint:staticcheck
5456
func (r *stringResponse) SetResult(value string, variant, reason string, metadata map[string]interface{}) error {
5557
newStruct, err := structpb.NewStruct(metadata)
5658
if err != nil {
@@ -74,17 +76,20 @@ func (r *stringResponse) SetResult(value string, variant, reason string, metadat
7476
}
7577

7678
type floatResponse struct {
79+
//nolint:staticcheck
7780
schemaV1Resp *connect.Response[schemaV1.ResolveFloatResponse]
7881
evalV1Resp *connect.Response[evalV1.ResolveFloatResponse]
7982
}
8083

84+
//nolint:staticcheck
8185
func (r *floatResponse) SetResult(value float64, variant, reason string, metadata map[string]interface{}) error {
8286
newStruct, err := structpb.NewStruct(metadata)
8387
if err != nil {
8488
return fmt.Errorf("failure to wrap metadata %w", err)
8589
}
8690

8791
if r.schemaV1Resp != nil {
92+
// nolint:staticcheck
8893
r.schemaV1Resp.Msg.Value = value
8994
r.schemaV1Resp.Msg.Variant = variant
9095
r.schemaV1Resp.Msg.Reason = reason
@@ -101,10 +106,12 @@ func (r *floatResponse) SetResult(value float64, variant, reason string, metadat
101106
}
102107

103108
type intResponse struct {
109+
//nolint:staticcheck
104110
schemaV1Resp *connect.Response[schemaV1.ResolveIntResponse]
105111
evalV1Resp *connect.Response[evalV1.ResolveIntResponse]
106112
}
107113

114+
//nolint:staticcheck
108115
func (r *intResponse) SetResult(value int64, variant, reason string, metadata map[string]interface{}) error {
109116
newStruct, err := structpb.NewStruct(metadata)
110117
if err != nil {
@@ -127,10 +134,12 @@ func (r *intResponse) SetResult(value int64, variant, reason string, metadata ma
127134
}
128135

129136
type objectResponse struct {
137+
// nolint:staticcheck
130138
schemaV1Resp *connect.Response[schemaV1.ResolveObjectResponse]
131139
evalV1Resp *connect.Response[evalV1.ResolveObjectResponse]
132140
}
133141

142+
//nolint:staticcheck
134143
func (r *objectResponse) SetResult(value map[string]any, variant, reason string,
135144
metadata map[string]interface{},
136145
) error {

test/zero-downtime-flagd-proxy/grpc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"google.golang.org/grpc/credentials/insecure"
1212
)
1313

14+
//nolint:staticcheck
1415
func doRequests(grpcClient pb.FlagSyncServiceClient, waitSecondsBetweenRequests int) error {
1516
ctx := context.TODO()
1617
stream, err := grpcClient.SyncFlags(ctx, &schemav1.SyncFlagsRequest{

0 commit comments

Comments
 (0)