1
0
mirror of https://github.com/go-kratos/kratos.git synced 2024-12-26 20:54:38 +02:00
Commit Graph

1886 Commits

Author SHA1 Message Date
dependabot[bot]
7eb39d0c39
build(deps): bump golang.org/x/net from 0.19.0 to 0.23.0 (#3295)
* build(deps): bump golang.org/x/net from 0.19.0 to 0.23.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* go mod tidy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Windfarer <windfarer@gmail.com>
2024-07-19 10:00:56 +08:00
dependabot[bot]
73c9b5aec1
build(deps): bump golang.org/x/net in /contrib/registry/servicecomb (#3285)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 09:55:38 +08:00
dependabot[bot]
7da1bd5fae
build(deps): bump golang.org/x/net in /contrib/config/etcd (#3293)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cluas <Cluas@live.cn>
2024-07-19 09:54:44 +08:00
Tony Chen
3198e0b83b
adds Set-Cookie method to the HTTP transport. (#3353) 2024-06-27 18:40:09 +08:00
Abhishek koserwal
46362d1a36
feat: parsing config input and convert to match the type (#3306) 2024-06-15 13:28:15 +08:00
dependabot[bot]
eb07954ab6
build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 (#3315)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:01:11 +08:00
dependabot[bot]
86e8be988c
build(deps): bump golangci/golangci-lint-action from 5 to 6 (#3340)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:00:41 +08:00
Xingwang Liu
4aa4f7c7ca
The issue that the response header is not assigned a value is fixed (#3327) 2024-06-11 14:18:59 +08:00
dependabot[bot]
ba5a651b82
build(deps): bump golangci/golangci-lint-action from 4 to 5 (#3305)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-06 10:16:38 +08:00
jessetang
c0a7935bb1
faat(encoding/form): allow change the default form encoder and decoder tag name (#3328) 2024-06-01 16:07:17 +08:00
dependabot[bot]
7d3be6bcd0
build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#3332)
Bumps [github.com/aliyun/aliyun-log-go-sdk](https://github.com/aliyun/aliyun-log-go-sdk) from 0.1.72 to 0.1.75.
- [Release notes](https://github.com/aliyun/aliyun-log-go-sdk/releases)
- [Commits](https://github.com/aliyun/aliyun-log-go-sdk/compare/v0.1.72...v0.1.75)

---
updated-dependencies:
- dependency-name: github.com/aliyun/aliyun-log-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-01 16:06:36 +08:00
guoquanwei
fbac5fa25e
fix(contrib/registry/nacos): Abnormal blocking of the Subscribe and Next methods. (#3320)
* fix(contrib/registry/nacos):Abnormal blocking of the Subscribe and Next methods.

This submission can solve the channel blocking problem during service discovery, as well as the channel message missing problem when the GRPC idle state changes.

The first scenario is when both the configuration center and registration center are initialized at the same time during service startup, and the SubscribeCallback method will be triggered twice, throwing the error "over time discovering the creation of observers", resulting in a discovery failure. The second scenario occurs after NotLoadCacheAtStart: true. When grpc exits the idle state, calling newWatcher again will not trigger the SubscribeCallback method, causing the Next function to be blocked and the service to be unable to communicate.

* Another implementation, the effect remains unchanged
2024-05-16 10:04:49 +08:00
dependabot[bot]
d0d5761f9c
build(deps): bump golang.org/x/net in /contrib/polaris (#3296)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-04 18:17:32 +08:00
dependabot[bot]
94929eb39c
build(deps): bump Yikun/hub-mirror-action from 1.3 to 1.4 (#3307)
Bumps [Yikun/hub-mirror-action](https://github.com/yikun/hub-mirror-action) from 1.3 to 1.4.
- [Release notes](https://github.com/yikun/hub-mirror-action/releases)
- [Commits](https://github.com/yikun/hub-mirror-action/compare/v1.3...v1.4)

---
updated-dependencies:
- dependency-name: Yikun/hub-mirror-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-04 18:17:01 +08:00
jessetang
be624d0355
fix(contrib/opensergo): incorrect conversion between integer types (#3309)
* fix(contrib/opensergo): incorrect conversion between integer types

* remove nolint

* remove blank line
2024-04-30 17:22:55 +08:00
Ccheers
a803e9d967
chore(middleware/metrics): if requests and seconds are nil, return directly (#3298) 2024-04-27 19:38:14 +08:00
jessetang
45603e3ab9
fix(contrib/polaris): incorrect conversion between integer types (#3300)
* fix(contrib/polaris): convert string to int32

* fix
2024-04-27 19:37:55 +08:00
dependabot[bot]
b3b2a3474a
build(deps): bump google.golang.org/protobuf (#3238)
Bumps google.golang.org/protobuf from 1.28.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 11:41:33 +08:00
dependabot[bot]
61cdc7ee2f
build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#3270)
Bumps [github.com/aliyun/aliyun-log-go-sdk](https://github.com/aliyun/aliyun-log-go-sdk) from 0.1.67 to 0.1.72.
- [Release notes](https://github.com/aliyun/aliyun-log-go-sdk/releases)
- [Commits](https://github.com/aliyun/aliyun-log-go-sdk/compare/v0.1.67...v0.1.72)

---
updated-dependencies:
- dependency-name: github.com/aliyun/aliyun-log-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 11:41:13 +08:00
dependabot[bot]
4a87ab4584
build(deps): bump golang.org/x/net in /contrib/opensergo (#3277)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.24.0.
- [Commits](https://github.com/golang/net/compare/v0.20.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 11:40:56 +08:00
dependabot[bot]
c384f919d9
build(deps): bump golang.org/x/sync in /contrib/registry/zookeeper (#3274)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.6.0 to 0.7.0.
- [Commits](https://github.com/golang/sync/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 11:40:43 +08:00
kvii
3fe570edae
dep: change library name of mergo #3149 (#3297) 2024-04-22 11:40:14 +08:00
Di Wu
78b67ad8cd
security: upgrade google.golang.org/protobuf to 1.33.0 (#3264)
* security: upgrade google.golang.org/protobuf to 1.33.0

* tidy
2024-04-20 21:01:41 +08:00
ChenYurun
75711092ab
fix: com patile both map[kratos] and map.kratos for a map type in the query parameters (#3284)
Co-authored-by: chenyurun01 <chenyurun01@bilibili.com>
2024-04-16 20:39:13 +08:00
Ccheers
f715eb0bd8
break(metrics): refactor kratos metrics with otel metrics (#3256) 2024-04-01 12:03:16 +08:00
包子
41971ffa64
deps: upgrade kratos version to v2.7.3 (#3266) 2024-03-22 23:50:18 +08:00
jessetang
aeecf3cdcc
fix(encoding/form): Timestamp use local time and fix test wrong mock time zone (#3257)
* fix(form/test): wrong mock time zone

* fix lint
2024-03-22 23:41:41 +08:00
jessetang
bfafeca13d
fix(encoding/form): optimize EncodeField and add test cases (#3234)
* test(encoding/form): supplementary encode map test cases

* remove string kind convert
2024-03-22 23:40:52 +08:00
kvii
26d7d5fa00
feat(transport/http): add unwrap method for returning underlying response writer. #3253 (#3265) 2024-03-22 23:37:51 +08:00
gangan liu
1fdaabbd48
fix: When grpc ends idle mode, it needs to continue to obtain the latest instance of the service (#3162)
* Add test cases

* Delete serviceSet when serviceSet has no watcher

* The context of resolve is controlled independently

* resolve use set context

* Remove test declare and do not use it

* gofmt

* golangci-lint fix
2024-03-20 09:52:21 +08:00
Liang Chen
cd9857fc59
nacos stop cannot cancel subscription (#3173) 2024-03-20 09:51:35 +08:00
Joe Bird
1ab258e53f
fix: etcd registry lifecycle (#3180) 2024-03-16 22:59:42 +08:00
kvii
311016862b
feat: use writer directly in stdLogger. (#3121)
* feat: use writer directly in stdLogger.

* fix: Add newlines for each Log

* fix: remove break changes.

---------

Co-authored-by: Daemon <haiyux@foxmail.com>
2024-03-16 14:25:37 +08:00
dependabot[bot]
05b23fbb5b
build(deps): bump golang.org/x/sync in /contrib/registry/zookeeper (#3150)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.5.0 to 0.6.0.
- [Commits](https://github.com/golang/sync/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-15 11:19:37 +08:00
dependabot[bot]
4911130a3c
build(deps): bump github.com/prometheus/common (#3154)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.45.0 to 0.46.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.45.0...v0.46.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
2024-03-15 11:19:09 +08:00
kvii
ffa1dca792
fix: logging middleware caller issue #3133 (#3134)
* fix: logging middleware caller issue #3133

* fix: fix lint issue
2024-03-15 11:15:31 +08:00
dependabot[bot]
be8821eed6
build(deps): bump golang.org/x/net in /contrib/opensergo (#3155)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-15 11:13:57 +08:00
dependabot[bot]
7ee76bfc83
build(deps): bump actions/cache from 3 to 4 (#3158)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-15 11:13:44 +08:00
libi
953a331de5
fix polaris registry bug: nodes is empty at startup (#3160) 2024-03-15 11:13:18 +08:00
kvii
63344c3c97
fix: remove duplicate test codes. (#3187) 2024-03-15 11:12:23 +08:00
dependabot[bot]
6286cdc947
build(deps): bump golangci/golangci-lint-action from 3 to 4 (#3197)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-15 11:11:53 +08:00
言肆
d4edd442bb
feat(log): Prevent log.Helper sprintf from running early #3209 (#3221)
* feat(log): Prevent log.Helper sprintf from running early

* fix(log): add benchmark helper filter level

* chore(log): rename log Level Enabled
2024-03-15 11:09:57 +08:00
Flc゛
e11acb685e
build(lint): upgrade golangci/golangci-lint-action (#3235)
Signed-off-by: Flc゛ <four_leaf_clover@foxmail.com>
2024-03-15 11:08:32 +08:00
Flc゛
131df07764
build(go): Add go version v1.22.x (#3236)
Signed-off-by: Flc゛ <four_leaf_clover@foxmail.com>
2024-03-15 11:07:34 +08:00
oyk666
f566bdc2e6
fix: use .MapKey to get key's FieldDescriptor (#3196)
Co-authored-by: 欧阳凯 <990951775@qq.com>
2024-03-11 20:55:37 +08:00
kvii
50cad79c96
fix(transport/http): no need to call EncodeURL twice (#3218) 2024-03-01 11:12:06 +08:00
kvii
9106991c09
fix(protoc-gen-go-http): return nil if err == nil。 (#3188) 2024-02-14 17:04:54 +08:00
Like
c7fa51df7a
fix: zap log print out multiple msg (#3171)
* fix: zap log print out multiple `msg`

* fix: zap log print out multiple `msg`

* feat: add message key option
2024-02-02 10:39:11 +08:00
kvii
d9f390cdbb
fix: test failed on other timezone.(#3181) (#3183) 2024-02-02 10:38:20 +08:00
dependabot[bot]
a556a2b531
build(deps): bump github.com/go-resty/resty/v2 (#3151)
Bumps [github.com/go-resty/resty/v2](https://github.com/go-resty/resty) from 2.10.0 to 2.11.0.
- [Release notes](https://github.com/go-resty/resty/releases)
- [Commits](https://github.com/go-resty/resty/compare/v2.10.0...v2.11.0)

---
updated-dependencies:
- dependency-name: github.com/go-resty/resty/v2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-19 16:50:30 +08:00