Skip to content

Commit 91fdd50

Browse files
committed
👽 Adapt go 1.26
1 parent 8da7fb7 commit 91fdd50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+278
-292
lines changed

MODULE.bazel.lock

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

cmd/activity/activity.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package activity
66
import (
77
"github.com/eat-pray-ai/yutu/cmd"
88
"github.com/eat-pray-ai/yutu/pkg/utils"
9-
"github.com/google/jsonschema-go/jsonschema"
109
"github.com/spf13/cobra"
1110
)
1211

@@ -23,9 +22,9 @@ const (
2322

2423
var (
2524
channelId string
26-
home = jsonschema.Ptr(false)
25+
home = new(false)
2726
maxResults int64
28-
mine = jsonschema.Ptr(false)
27+
mine = new(false)
2928
publishedAfter string
3029
publishedBefore string
3130
regionCode string

cmd/activity/list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var listInSchema = &jsonschema.Schema{
2828
"home": {Type: "boolean", Description: homeUsage},
2929
"max_results": {
3030
Type: "number", Description: pkg.MRUsage,
31-
Default: json.RawMessage("5"), Minimum: jsonschema.Ptr(float64(0)),
31+
Default: json.RawMessage("5"), Minimum: new(float64(0)),
3232
},
3333
"mine": {Type: "boolean", Description: mineUsage},
3434
"published_after": {Type: "string", Description: paUsage},
@@ -52,9 +52,9 @@ func init() {
5252
cmd.Server, &mcp.Tool{
5353
Name: listTool, Title: short, Description: long,
5454
InputSchema: listInSchema, Annotations: &mcp.ToolAnnotations{
55-
DestructiveHint: jsonschema.Ptr(false),
55+
DestructiveHint: new(false),
5656
IdempotentHint: true,
57-
OpenWorldHint: jsonschema.Ptr(true),
57+
OpenWorldHint: new(true),
5858
ReadOnlyHint: true,
5959
},
6060
}, cmd.GenToolHandler(

cmd/caption/caption.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package caption
66
import (
77
"github.com/eat-pray-ai/yutu/cmd"
88
"github.com/eat-pray-ai/yutu/pkg/utils"
9-
"github.com/google/jsonschema-go/jsonschema"
109
"github.com/spf13/cobra"
1110
"github.com/spf13/pflag"
1211
)
@@ -33,11 +32,11 @@ var (
3332
ids []string
3433
file string
3534
audioTrackType string
36-
isAutoSynced = jsonschema.Ptr(false)
37-
isCC = jsonschema.Ptr(false)
38-
isDraft = jsonschema.Ptr(false)
39-
isEasyReader = jsonschema.Ptr(false)
40-
isLarge = jsonschema.Ptr(false)
35+
isAutoSynced = new(false)
36+
isCC = new(false)
37+
isDraft = new(false)
38+
isEasyReader = new(false)
39+
isLarge = new(false)
4140
language string
4241
name string
4342
trackKind string

cmd/caption/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ func init() {
3939
cmd.Server, &mcp.Tool{
4040
Name: deleteTool, Title: deleteShort, Description: deleteLong,
4141
InputSchema: deleteInSchema, Annotations: &mcp.ToolAnnotations{
42-
DestructiveHint: jsonschema.Ptr(true),
42+
DestructiveHint: new(true),
4343
IdempotentHint: true,
44-
OpenWorldHint: jsonschema.Ptr(true),
44+
OpenWorldHint: new(true),
4545
ReadOnlyHint: false,
4646
},
4747
}, cmd.GenToolHandler(

cmd/caption/download.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ func init() {
4545
cmd.Server, &mcp.Tool{
4646
Name: downloadTool, Title: downloadShort, Description: downloadLong,
4747
InputSchema: downloadInSchema, Annotations: &mcp.ToolAnnotations{
48-
DestructiveHint: jsonschema.Ptr(false),
48+
DestructiveHint: new(false),
4949
IdempotentHint: true,
50-
OpenWorldHint: jsonschema.Ptr(true),
50+
OpenWorldHint: new(true),
5151
ReadOnlyHint: false,
5252
},
5353
}, cmd.GenToolHandler(

cmd/caption/insert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ func init() {
6161
cmd.Server, &mcp.Tool{
6262
Name: insertTool, Title: insertShort, Description: insertLong,
6363
InputSchema: insertInSchema, Annotations: &mcp.ToolAnnotations{
64-
DestructiveHint: jsonschema.Ptr(false),
64+
DestructiveHint: new(false),
6565
IdempotentHint: false,
66-
OpenWorldHint: jsonschema.Ptr(true),
66+
OpenWorldHint: new(true),
6767
ReadOnlyHint: false,
6868
},
6969
}, cmd.GenToolHandler(

cmd/caption/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ func init() {
5353
cmd.Server, &mcp.Tool{
5454
Name: listTool, Title: listShort, Description: listLong,
5555
InputSchema: listInSchema, Annotations: &mcp.ToolAnnotations{
56-
DestructiveHint: jsonschema.Ptr(false),
56+
DestructiveHint: new(false),
5757
IdempotentHint: true,
58-
OpenWorldHint: jsonschema.Ptr(true),
58+
OpenWorldHint: new(true),
5959
ReadOnlyHint: true,
6060
},
6161
}, cmd.GenToolHandler(

cmd/caption/update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ func init() {
6060
cmd.Server, &mcp.Tool{
6161
Name: updateTool, Title: updateShort, Description: updateLong,
6262
InputSchema: updateInSchema, Annotations: &mcp.ToolAnnotations{
63-
DestructiveHint: jsonschema.Ptr(false),
63+
DestructiveHint: new(false),
6464
IdempotentHint: false,
65-
OpenWorldHint: jsonschema.Ptr(true),
65+
OpenWorldHint: new(true),
6666
ReadOnlyHint: false,
6767
},
6868
}, cmd.GenToolHandler(

cmd/channel/channel.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package channel
66
import (
77
"github.com/eat-pray-ai/yutu/cmd"
88
"github.com/eat-pray-ai/yutu/pkg/utils"
9-
"github.com/google/jsonschema-go/jsonschema"
109
"github.com/spf13/pflag"
1110

1211
"github.com/spf13/cobra"
@@ -35,10 +34,10 @@ var (
3534
forUsername string
3635
hl string
3736
ids []string
38-
managedByMe = jsonschema.Ptr(false)
37+
managedByMe = new(false)
3938
maxResults int64
40-
mine = jsonschema.Ptr(false)
41-
mySubscribers = jsonschema.Ptr(false)
39+
mine = new(false)
40+
mySubscribers = new(false)
4241
country string
4342
customUrl string
4443
defaultLanguage string

0 commit comments

Comments
 (0)