Skip to content

Commit 2b64983

Browse files
ferhatelmasLinkinStars
authored andcommitted
chore(deps): bump mockgen to 0.6.0 for go1.25 support
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
1 parent c0a9f31 commit 2b64983

8 files changed

Lines changed: 97 additions & 59 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ universal: generate
2323
generate:
2424
@$(GO) get github.com/swaggo/swag/cmd/swag@v1.16.3
2525
@$(GO) get github.com/google/wire/cmd/wire@v0.5.0
26-
@$(GO) get go.uber.org/mock/mockgen@v0.5.0
26+
@$(GO) get go.uber.org/mock/mockgen@v0.6.0
2727
@$(GO) install github.com/swaggo/swag/cmd/swag@v1.16.3
2828
@$(GO) install github.com/google/wire/cmd/wire@v0.5.0
29-
@$(GO) install go.uber.org/mock/mockgen@v0.5.0
29+
@$(GO) install go.uber.org/mock/mockgen@v0.6.0
3030
@$(GO) generate ./...
3131
@$(GO) mod tidy
3232

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ You can also check out the [plugins here](https://answer.apache.org/plugins).
4343
- Golang >= 1.23
4444
- Node.js >= 20
4545
- pnpm >= 9
46-
- [mockgen](https://github.com/uber-go/mock?tab=readme-ov-file#installation) >= 1.6.0
46+
- [mockgen](https://github.com/uber-go/mock?tab=readme-ov-file#installation) >= 0.6.0
4747
- [wire](https://github.com/google/wire/) >= 0.5.0
4848

4949
### Build

cmd/wire_gen.go

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

docs/docs.go

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9780,8 +9780,6 @@ const docTemplate = `{
97809780
"schema.QuestionAdd": {
97819781
"type": "object",
97829782
"required": [
9783-
"content",
9784-
"tags",
97859783
"title"
97869784
],
97879785
"properties": {
@@ -9796,7 +9794,7 @@ const docTemplate = `{
97969794
"description": "content",
97979795
"type": "string",
97989796
"maxLength": 65535,
9799-
"minLength": 6
9797+
"minLength": 0
98009798
},
98019799
"tags": {
98029800
"description": "tags",
@@ -9817,8 +9815,6 @@ const docTemplate = `{
98179815
"type": "object",
98189816
"required": [
98199817
"answer_content",
9820-
"content",
9821-
"tags",
98229818
"title"
98239819
],
98249820
"properties": {
@@ -9838,7 +9834,7 @@ const docTemplate = `{
98389834
"description": "content",
98399835
"type": "string",
98409836
"maxLength": 65535,
9841-
"minLength": 6
9837+
"minLength": 0
98429838
},
98439839
"mention_username_list": {
98449840
"type": "array",
@@ -10119,9 +10115,7 @@ const docTemplate = `{
1011910115
"schema.QuestionUpdate": {
1012010116
"type": "object",
1012110117
"required": [
10122-
"content",
1012310118
"id",
10124-
"tags",
1012510119
"title"
1012610120
],
1012710121
"properties": {
@@ -10136,7 +10130,7 @@ const docTemplate = `{
1013610130
"description": "content",
1013710131
"type": "string",
1013810132
"maxLength": 65535,
10139-
"minLength": 6
10133+
"minLength": 0
1014010134
},
1014110135
"edit_summary": {
1014210136
"description": "edit summary",
@@ -11047,6 +11041,16 @@ const docTemplate = `{
1104711041
"max_image_size": {
1104811042
"type": "integer"
1104911043
},
11044+
"min_content": {
11045+
"type": "integer",
11046+
"maximum": 65535,
11047+
"minimum": 0
11048+
},
11049+
"min_tags": {
11050+
"type": "integer",
11051+
"maximum": 5,
11052+
"minimum": 0
11053+
},
1105011054
"recommend_tags": {
1105111055
"type": "array",
1105211056
"items": {
@@ -11091,6 +11095,16 @@ const docTemplate = `{
1109111095
"max_image_size": {
1109211096
"type": "integer"
1109311097
},
11098+
"min_content": {
11099+
"type": "integer",
11100+
"maximum": 65535,
11101+
"minimum": 0
11102+
},
11103+
"min_tags": {
11104+
"type": "integer",
11105+
"maximum": 5,
11106+
"minimum": 0
11107+
},
1109411108
"recommend_tags": {
1109511109
"type": "array",
1109611110
"items": {

docs/swagger.json

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9753,8 +9753,6 @@
97539753
"schema.QuestionAdd": {
97549754
"type": "object",
97559755
"required": [
9756-
"content",
9757-
"tags",
97589756
"title"
97599757
],
97609758
"properties": {
@@ -9769,7 +9767,7 @@
97699767
"description": "content",
97709768
"type": "string",
97719769
"maxLength": 65535,
9772-
"minLength": 6
9770+
"minLength": 0
97739771
},
97749772
"tags": {
97759773
"description": "tags",
@@ -9790,8 +9788,6 @@
97909788
"type": "object",
97919789
"required": [
97929790
"answer_content",
9793-
"content",
9794-
"tags",
97959791
"title"
97969792
],
97979793
"properties": {
@@ -9811,7 +9807,7 @@
98119807
"description": "content",
98129808
"type": "string",
98139809
"maxLength": 65535,
9814-
"minLength": 6
9810+
"minLength": 0
98159811
},
98169812
"mention_username_list": {
98179813
"type": "array",
@@ -10092,9 +10088,7 @@
1009210088
"schema.QuestionUpdate": {
1009310089
"type": "object",
1009410090
"required": [
10095-
"content",
1009610091
"id",
10097-
"tags",
1009810092
"title"
1009910093
],
1010010094
"properties": {
@@ -10109,7 +10103,7 @@
1010910103
"description": "content",
1011010104
"type": "string",
1011110105
"maxLength": 65535,
10112-
"minLength": 6
10106+
"minLength": 0
1011310107
},
1011410108
"edit_summary": {
1011510109
"description": "edit summary",
@@ -11020,6 +11014,16 @@
1102011014
"max_image_size": {
1102111015
"type": "integer"
1102211016
},
11017+
"min_content": {
11018+
"type": "integer",
11019+
"maximum": 65535,
11020+
"minimum": 0
11021+
},
11022+
"min_tags": {
11023+
"type": "integer",
11024+
"maximum": 5,
11025+
"minimum": 0
11026+
},
1102311027
"recommend_tags": {
1102411028
"type": "array",
1102511029
"items": {
@@ -11064,6 +11068,16 @@
1106411068
"max_image_size": {
1106511069
"type": "integer"
1106611070
},
11071+
"min_content": {
11072+
"type": "integer",
11073+
"maximum": 65535,
11074+
"minimum": 0
11075+
},
11076+
"min_tags": {
11077+
"type": "integer",
11078+
"maximum": 5,
11079+
"minimum": 0
11080+
},
1106711081
"recommend_tags": {
1106811082
"type": "array",
1106911083
"items": {

docs/swagger.yaml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ definitions:
15891589
content:
15901590
description: content
15911591
maxLength: 65535
1592-
minLength: 6
1592+
minLength: 0
15931593
type: string
15941594
tags:
15951595
description: tags
@@ -1602,8 +1602,6 @@ definitions:
16021602
minLength: 6
16031603
type: string
16041604
required:
1605-
- content
1606-
- tags
16071605
- title
16081606
type: object
16091607
schema.QuestionAddByAnswer:
@@ -1620,7 +1618,7 @@ definitions:
16201618
content:
16211619
description: content
16221620
maxLength: 65535
1623-
minLength: 6
1621+
minLength: 0
16241622
type: string
16251623
mention_username_list:
16261624
items:
@@ -1638,8 +1636,6 @@ definitions:
16381636
type: string
16391637
required:
16401638
- answer_content
1641-
- content
1642-
- tags
16431639
- title
16441640
type: object
16451641
schema.QuestionInfoResp:
@@ -1826,7 +1822,7 @@ definitions:
18261822
content:
18271823
description: content
18281824
maxLength: 65535
1829-
minLength: 6
1825+
minLength: 0
18301826
type: string
18311827
edit_summary:
18321828
description: edit summary
@@ -1849,9 +1845,7 @@ definitions:
18491845
minLength: 6
18501846
type: string
18511847
required:
1852-
- content
18531848
- id
1854-
- tags
18551849
- title
18561850
type: object
18571851
schema.QuestionUpdateInviteUser:
@@ -2453,6 +2447,14 @@ definitions:
24532447
type: integer
24542448
max_image_size:
24552449
type: integer
2450+
min_content:
2451+
maximum: 65535
2452+
minimum: 0
2453+
type: integer
2454+
min_tags:
2455+
maximum: 5
2456+
minimum: 0
2457+
type: integer
24562458
recommend_tags:
24572459
items:
24582460
$ref: '#/definitions/schema.SiteWriteTag'
@@ -2482,6 +2484,14 @@ definitions:
24822484
type: integer
24832485
max_image_size:
24842486
type: integer
2487+
min_content:
2488+
maximum: 65535
2489+
minimum: 0
2490+
type: integer
2491+
min_tags:
2492+
maximum: 5
2493+
minimum: 0
2494+
type: integer
24852495
recommend_tags:
24862496
items:
24872497
$ref: '#/definitions/schema.SiteWriteTag'

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ require (
5656
github.com/swaggo/swag v1.16.3
5757
github.com/tidwall/gjson v1.17.3
5858
github.com/yuin/goldmark v1.7.4
59-
go.uber.org/mock v0.5.0
60-
golang.org/x/crypto v0.36.0
59+
go.uber.org/mock v0.6.0
60+
golang.org/x/crypto v0.41.0
6161
golang.org/x/image v0.20.0
62-
golang.org/x/net v0.38.0
63-
golang.org/x/term v0.30.0
64-
golang.org/x/text v0.23.0
62+
golang.org/x/net v0.43.0
63+
golang.org/x/term v0.34.0
64+
golang.org/x/text v0.28.0
6565
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
6666
gopkg.in/yaml.v3 v3.0.1
6767
modernc.org/sqlite v1.33.0
@@ -161,8 +161,8 @@ require (
161161
go.uber.org/zap v1.27.0 // indirect
162162
golang.org/x/arch v0.10.0 // indirect
163163
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
164-
golang.org/x/sys v0.31.0 // indirect
165-
golang.org/x/tools v0.25.0 // indirect
164+
golang.org/x/sys v0.35.0 // indirect
165+
golang.org/x/tools v0.36.0 // indirect
166166
google.golang.org/protobuf v1.34.2 // indirect
167167
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
168168
gopkg.in/ini.v1 v1.67.0 // indirect

0 commit comments

Comments
 (0)