Skip to content

Commit f91eb8a

Browse files
authored
Update a number of dependencies (#3160)
Signed-off-by: ItalyPaleAle <[email protected]>
1 parent 75078a3 commit f91eb8a

File tree

11 files changed

+226
-249
lines changed

11 files changed

+226
-249
lines changed

.build-tools/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/invopop/jsonschema v0.6.0
88
github.com/spf13/cobra v1.6.1
99
github.com/xeipuuv/gojsonschema v1.2.1-0.20201027075954-b076d39a02e5
10-
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
10+
golang.org/x/exp v0.0.0-20230905200255-921286631fa9
1111
gopkg.in/yaml.v3 v3.0.1
1212
sigs.k8s.io/yaml v1.3.0
1313
)
@@ -24,7 +24,7 @@ require (
2424
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
2525
gopkg.in/inf.v0 v0.9.1 // indirect
2626
gopkg.in/yaml.v2 v2.4.0 // indirect
27-
k8s.io/apimachinery v0.26.3 // indirect
27+
k8s.io/apimachinery v0.26.9 // indirect
2828
)
2929

3030
replace github.com/dapr/components-contrib => ../

.build-tools/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec
4848
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
4949
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
5050
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
51-
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 h1:m64FZMko/V45gv0bNmrNYoDEq8U5YUhetc9cBWKS1TQ=
52-
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63/go.mod h1:0v4NqG35kSWCMzLaMeX+IQrlSnVE/bqGSyC2cz/9Le8=
51+
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g=
52+
golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k=
5353
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
5454
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
5555
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
@@ -80,7 +80,7 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
8080
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
8181
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
8282
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
83-
k8s.io/apimachinery v0.26.3 h1:dQx6PNETJ7nODU3XPtrwkfuubs6w7sX0M8n61zHIV/k=
84-
k8s.io/apimachinery v0.26.3/go.mod h1:ats7nN1LExKHvJ9TmwootT00Yz05MuYqPXEXaVeOy5I=
83+
k8s.io/apimachinery v0.26.9 h1:5yAV9cFR7Z4gIorKcAjWnx4uxtxiFsERwq4Pvmx0CCg=
84+
k8s.io/apimachinery v0.26.9/go.mod h1:qYzLkrQ9lhrZRh0jNKo2cfvf/R1/kQONnSiyB7NUJU0=
8585
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
8686
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=

bindings/azure/openai/openai.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,13 @@ func (p *AzOpenAI) completion(ctx context.Context, message []byte, metadata map[
239239
}
240240

241241
resp, err := p.client.GetCompletions(ctx, azopenai.CompletionsOptions{
242-
DeploymentID: prompt.DeploymentID,
243-
Prompt: []string{prompt.Prompt},
244-
MaxTokens: &prompt.MaxTokens,
245-
Temperature: &prompt.Temperature,
246-
TopP: &prompt.TopP,
247-
N: &prompt.N,
248-
Stop: prompt.Stop,
242+
Deployment: prompt.DeploymentID,
243+
Prompt: []string{prompt.Prompt},
244+
MaxTokens: &prompt.MaxTokens,
245+
Temperature: &prompt.Temperature,
246+
TopP: &prompt.TopP,
247+
N: &prompt.N,
248+
Stop: prompt.Stop,
249249
}, nil)
250250
if err != nil {
251251
return nil, fmt.Errorf("error getting completion api: %w", err)
@@ -304,13 +304,13 @@ func (p *AzOpenAI) chatCompletion(ctx context.Context, messageRequest []byte, me
304304
}
305305

306306
res, err := p.client.GetChatCompletions(ctx, azopenai.ChatCompletionsOptions{
307-
DeploymentID: messages.DeploymentID,
308-
MaxTokens: maxTokens,
309-
Temperature: &messages.Temperature,
310-
TopP: &messages.TopP,
311-
N: &messages.N,
312-
Messages: messageReq,
313-
Stop: messages.Stop,
307+
Deployment: messages.DeploymentID,
308+
MaxTokens: maxTokens,
309+
Temperature: &messages.Temperature,
310+
TopP: &messages.TopP,
311+
N: &messages.N,
312+
Messages: messageReq,
313+
Stop: messages.Stop,
314314
}, nil)
315315
if err != nil {
316316
return nil, fmt.Errorf("error getting chat completion api: %w", err)
@@ -342,8 +342,8 @@ func (p *AzOpenAI) getEmbedding(ctx context.Context, messageRequest []byte, meta
342342
}
343343

344344
res, err := p.client.GetEmbeddings(ctx, azopenai.EmbeddingsOptions{
345-
DeploymentID: message.DeploymentID,
346-
Input: []string{message.Message},
345+
Deployment: message.DeploymentID,
346+
Input: []string{message.Message},
347347
}, nil)
348348
if err != nil {
349349
return nil, fmt.Errorf("error getting embedding api: %w", err)

configuration/azure/appconfig/appconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const (
5252

5353
type azAppConfigClient interface {
5454
GetSetting(ctx context.Context, key string, options *azappconfig.GetSettingOptions) (azappconfig.GetSettingResponse, error)
55-
NewListSettingsPager(selector azappconfig.SettingSelector, options *azappconfig.ListSettingsOptions) *runtime.Pager[azappconfig.ListSettingsPage]
55+
NewListSettingsPager(selector azappconfig.SettingSelector, options *azappconfig.ListSettingsOptions) *runtime.Pager[azappconfig.ListSettingsPageResponse]
5656
}
5757

5858
// ConfigurationStore is a Azure App Configuration store.

configuration/azure/appconfig/appconfig_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (m *MockConfigurationStore) GetSetting(ctx context.Context, key string, opt
5252
return resp, nil
5353
}
5454

55-
func (m *MockConfigurationStore) NewListSettingsPager(selector azappconfig.SettingSelector, options *azappconfig.ListSettingsOptions) *runtime.Pager[azappconfig.ListSettingsPage] {
55+
func (m *MockConfigurationStore) NewListSettingsPager(selector azappconfig.SettingSelector, options *azappconfig.ListSettingsOptions) *runtime.Pager[azappconfig.ListSettingsPageResponse] {
5656
settings := make([]azappconfig.Setting, 2)
5757

5858
setting1 := azappconfig.Setting{}
@@ -65,12 +65,12 @@ func (m *MockConfigurationStore) NewListSettingsPager(selector azappconfig.Setti
6565
settings[0] = setting1
6666
settings[1] = setting2
6767

68-
return runtime.NewPager(runtime.PagingHandler[azappconfig.ListSettingsPage]{
69-
More: func(azappconfig.ListSettingsPage) bool {
68+
return runtime.NewPager(runtime.PagingHandler[azappconfig.ListSettingsPageResponse]{
69+
More: func(azappconfig.ListSettingsPageResponse) bool {
7070
return false
7171
},
72-
Fetcher: func(ctx context.Context, cur *azappconfig.ListSettingsPage) (azappconfig.ListSettingsPage, error) {
73-
listSettingPage := azappconfig.ListSettingsPage{}
72+
Fetcher: func(ctx context.Context, cur *azappconfig.ListSettingsPageResponse) (azappconfig.ListSettingsPageResponse, error) {
73+
listSettingPage := azappconfig.ListSettingsPageResponse{}
7474
listSettingPage.Settings = settings
7575
return listSettingPage, nil
7676
},

go.mod

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ require (
66
cloud.google.com/go/datastore v1.14.0
77
cloud.google.com/go/pubsub v1.33.0
88
cloud.google.com/go/secretmanager v1.11.1
9-
cloud.google.com/go/storage v1.32.0
9+
cloud.google.com/go/storage v1.33.0
1010
dubbo.apache.org/dubbo-go/v3 v3.0.3-0.20230118042253-4f159a2b38f3
11-
github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai v0.1.1
12-
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.1
11+
github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai v0.3.0
12+
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.2
1313
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.1
14-
github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig v0.5.0
14+
github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig v0.6.0
1515
github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos v0.3.6
1616
github.com/Azure/azure-sdk-for-go/sdk/data/aztables v1.0.2
1717
github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs v1.0.1
18-
github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.4.0
18+
github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.4.1
1919
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2 v2.1.1
2020
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.1.1
2121
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.0.1
2222
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.0.1
2323
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0
2424
github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue v1.0.0
25-
github.com/Azure/go-amqp v1.0.1
25+
github.com/Azure/go-amqp v1.0.2
2626
github.com/DATA-DOG/go-sqlmock v1.5.0
2727
github.com/IBM/sarama v1.41.1
2828
github.com/aerospike/aerospike-client-go/v6 v6.12.0
@@ -39,8 +39,8 @@ require (
3939
github.com/apache/pulsar-client-go v0.11.0
4040
github.com/apache/rocketmq-client-go/v2 v2.1.2-0.20230412142645-25003f6f083d
4141
github.com/apache/thrift v0.13.0
42-
github.com/aws/aws-sdk-go v1.44.333
43-
github.com/bradfitz/gomemcache v0.0.0-20230611145640-acc696258285
42+
github.com/aws/aws-sdk-go v1.45.19
43+
github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874
4444
github.com/camunda/zeebe/clients/go/v8 v8.2.12
4545
github.com/cenkalti/backoff/v4 v4.2.1
4646
github.com/chebyrash/promise v0.0.0-20230709133807-42ec49ba1459
@@ -65,8 +65,8 @@ require (
6565
github.com/gorilla/mux v1.8.0
6666
github.com/grandcat/zeroconf v1.0.0
6767
github.com/hamba/avro/v2 v2.15.0
68-
github.com/hashicorp/consul/api v1.24.0
69-
github.com/hashicorp/golang-lru/v2 v2.0.6
68+
github.com/hashicorp/consul/api v1.25.1
69+
github.com/hashicorp/golang-lru/v2 v2.0.7
7070
github.com/hazelcast/hazelcast-go-client v0.0.0-20190530123621-6cf767c2f31a
7171
github.com/http-wasm/http-wasm-host-go v0.5.1
7272
github.com/huaweicloud/huaweicloud-sdk-go-obs v3.23.4+incompatible
@@ -77,23 +77,23 @@ require (
7777
github.com/kubemq-io/kubemq-go v1.7.9
7878
github.com/labd/commercetools-go-sdk v1.3.1
7979
github.com/lestrrat-go/httprc v1.0.4
80-
github.com/lestrrat-go/jwx/v2 v2.0.12
80+
github.com/lestrrat-go/jwx/v2 v2.0.13
8181
github.com/machinebox/graphql v0.2.2
8282
github.com/matoous/go-nanoid/v2 v2.0.0
83-
github.com/microsoft/go-mssqldb v1.5.0
83+
github.com/microsoft/go-mssqldb v1.6.0
8484
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4
8585
github.com/mrz1836/postmark v1.6.1
8686
github.com/nats-io/nats-server/v2 v2.9.21
8787
github.com/nats-io/nats.go v1.28.0
8888
github.com/nats-io/nkeys v0.4.4
8989
github.com/open-policy-agent/opa v0.55.0
9090
github.com/oracle/oci-go-sdk/v54 v54.0.0
91-
github.com/pashagolub/pgxmock/v2 v2.11.0
91+
github.com/pashagolub/pgxmock/v2 v2.12.0
9292
github.com/patrickmn/go-cache v2.1.0+incompatible
9393
github.com/rabbitmq/amqp091-go v1.8.1
94-
github.com/redis/go-redis/v9 v9.1.0
94+
github.com/redis/go-redis/v9 v9.2.1
9595
github.com/sendgrid/sendgrid-go v3.13.0+incompatible
96-
github.com/sijms/go-ora/v2 v2.7.17
96+
github.com/sijms/go-ora/v2 v2.7.18
9797
github.com/spf13/cast v1.5.1
9898
github.com/stealthrocket/wasi-go v0.8.1-0.20230912180546-8efbab50fb58
9999
github.com/stretchr/testify v1.8.4
@@ -110,23 +110,23 @@ require (
110110
go.temporal.io/sdk v1.21.1
111111
go.uber.org/multierr v1.11.0
112112
go.uber.org/ratelimit v0.3.0
113-
golang.org/x/crypto v0.12.0
114-
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
113+
golang.org/x/crypto v0.13.0
114+
golang.org/x/exp v0.0.0-20230905200255-921286631fa9
115115
golang.org/x/mod v0.12.0
116-
golang.org/x/net v0.14.0
117-
golang.org/x/oauth2 v0.11.0
116+
golang.org/x/net v0.15.0
117+
golang.org/x/oauth2 v0.12.0
118118
google.golang.org/api v0.138.0
119119
google.golang.org/grpc v1.57.0
120120
google.golang.org/protobuf v1.31.0
121121
gopkg.in/couchbase/gocb.v1 v1.6.7
122122
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
123123
gopkg.in/yaml.v3 v3.0.1
124-
k8s.io/api v0.26.3
125-
k8s.io/apiextensions-apiserver v0.26.3
126-
k8s.io/apimachinery v0.26.3
127-
k8s.io/client-go v0.26.3
124+
k8s.io/api v0.26.9
125+
k8s.io/apiextensions-apiserver v0.26.9
126+
k8s.io/apimachinery v0.26.9
127+
k8s.io/client-go v0.26.9
128128
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
129-
modernc.org/sqlite v1.25.0
129+
modernc.org/sqlite v1.26.0
130130
sigs.k8s.io/yaml v1.3.0
131131
)
132132

@@ -253,7 +253,7 @@ require (
253253
github.com/hashicorp/go-multierror v1.1.1 // indirect
254254
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
255255
github.com/hashicorp/go-uuid v1.0.3 // indirect
256-
github.com/hashicorp/golang-lru v0.5.4 // indirect
256+
github.com/hashicorp/golang-lru v1.0.2 // indirect
257257
github.com/hashicorp/serf v0.10.1 // indirect
258258
github.com/imdario/mergo v0.3.13 // indirect
259259
github.com/imkira/go-interpol v1.1.0 // indirect
@@ -279,7 +279,7 @@ require (
279279
github.com/kubemq-io/protobuf v1.3.1 // indirect
280280
github.com/kylelemons/godebug v1.1.0 // indirect
281281
github.com/leodido/go-urn v1.2.1 // indirect
282-
github.com/lestrrat-go/blackmagic v1.0.1 // indirect
282+
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
283283
github.com/lestrrat-go/httpcc v1.0.1 // indirect
284284
github.com/lestrrat-go/iter v1.0.2 // indirect
285285
github.com/lestrrat-go/option v1.0.1 // indirect
@@ -289,7 +289,7 @@ require (
289289
github.com/mailru/easyjson v0.7.7 // indirect
290290
github.com/matryer/is v1.4.0 // indirect
291291
github.com/mattn/go-colorable v0.1.13 // indirect
292-
github.com/mattn/go-isatty v0.0.18 // indirect
292+
github.com/mattn/go-isatty v0.0.19 // indirect
293293
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
294294
github.com/microcosm-cc/bluemonday v1.0.21 // indirect
295295
github.com/miekg/dns v1.1.43 // indirect
@@ -369,13 +369,13 @@ require (
369369
go.uber.org/zap v1.24.0 // indirect
370370
golang.org/x/arch v0.3.0 // indirect
371371
golang.org/x/sync v0.3.0 // indirect
372-
golang.org/x/sys v0.11.0 // indirect
373-
golang.org/x/term v0.11.0 // indirect
374-
golang.org/x/text v0.12.0 // indirect
372+
golang.org/x/sys v0.12.0 // indirect
373+
golang.org/x/term v0.12.0 // indirect
374+
golang.org/x/text v0.13.0 // indirect
375375
golang.org/x/time v0.3.0 // indirect
376-
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 // indirect
376+
golang.org/x/tools v0.13.0 // indirect
377377
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
378-
google.golang.org/appengine v1.6.7 // indirect
378+
google.golang.org/appengine v1.6.8 // indirect
379379
google.golang.org/genproto v0.0.0-20230821184602-ccc8af3d0e93 // indirect
380380
google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5 // indirect
381381
google.golang.org/genproto/googleapis/rpc v0.0.0-20230807174057-1744710a1577 // indirect
@@ -394,13 +394,13 @@ require (
394394
k8s.io/klog/v2 v2.90.1 // indirect
395395
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
396396
lukechampine.com/uint128 v1.3.0 // indirect
397-
modernc.org/cc/v3 v3.40.0 // indirect
398-
modernc.org/ccgo/v3 v3.16.13 // indirect
397+
modernc.org/cc/v3 v3.41.0 // indirect
398+
modernc.org/ccgo/v3 v3.16.15 // indirect
399399
modernc.org/libc v1.24.1 // indirect
400-
modernc.org/mathutil v1.5.0 // indirect
401-
modernc.org/memory v1.6.0 // indirect
400+
modernc.org/mathutil v1.6.0 // indirect
401+
modernc.org/memory v1.7.2 // indirect
402402
modernc.org/opt v0.1.3 // indirect
403-
modernc.org/strutil v1.1.3 // indirect
403+
modernc.org/strutil v1.2.0 // indirect
404404
modernc.org/token v1.1.0 // indirect
405405
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
406406
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect

0 commit comments

Comments
 (0)