Skip to content

Commit de00ea4

Browse files
committed
chore(go): bump golang to 1.26
1 parent 6e59793 commit de00ea4

4 files changed

Lines changed: 142 additions & 138 deletions

File tree

boot.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/drycc/builder/pkg/sys"
2222
pkglog "github.com/drycc/pkg/log"
2323
"github.com/kelseyhightower/envconfig"
24-
"github.com/urfave/cli/v2"
24+
"github.com/urfave/cli/v3"
2525
)
2626

2727
const (
@@ -40,14 +40,14 @@ func main() {
4040
log.Printf("Running in debug mode")
4141
}
4242

43-
app := cli.NewApp()
43+
app := &cli.Command{}
4444

4545
app.Commands = []*cli.Command{
4646
{
4747
Name: "server",
4848
Aliases: []string{"srv"},
4949
Usage: "Run the git server",
50-
Action: func(*cli.Context) error {
50+
Action: func(ctx context.Context, cmd *cli.Command) error {
5151
cnf := new(sshd.Config)
5252
if err := envconfig.Process(serverConfAppName, cnf); err != nil {
5353
return fmt.Errorf("getting config for %s [%s]", serverConfAppName, err)
@@ -106,7 +106,7 @@ func main() {
106106
Name: "git-receive",
107107
Aliases: []string{"gr"},
108108
Usage: "Run the git-receive hook",
109-
Action: func(*cli.Context) error {
109+
Action: func(ctx context.Context, cmd *cli.Command) error {
110110
cnf := new(gitreceive.Config)
111111
if err := envconfig.Process(gitReceiveConfAppName, cnf); err != nil {
112112
return fmt.Errorf("error getting config for %s [%s]", gitReceiveConfAppName, err)
@@ -131,7 +131,7 @@ func main() {
131131
},
132132
}
133133

134-
if err := app.Run(os.Args); err != nil {
134+
if err := app.Run(context.Background(), os.Args); err != nil {
135135
log.Fatal(err)
136136
}
137137
}

go.mod

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,69 @@
11
module github.com/drycc/builder
22

3-
go 1.25.0
3+
go 1.26
44

55
require (
6-
github.com/aws/aws-sdk-go v1.55.6
6+
github.com/aws/aws-sdk-go-v2 v1.36.3
7+
github.com/aws/aws-sdk-go-v2/config v1.29.14
8+
github.com/aws/aws-sdk-go-v2/credentials v1.17.67
9+
github.com/aws/aws-sdk-go-v2/service/ecr v1.44.1
710
github.com/distribution/distribution/v3 v3.1.0
811
github.com/drycc/controller-sdk-go v0.0.0-20260416093543-28d3a22ab999
912
github.com/drycc/pkg v0.0.0-20250917064731-345368da3dbf
1013
github.com/google/uuid v1.6.0
1114
github.com/kelseyhightower/envconfig v1.4.0
1215
github.com/stretchr/testify v1.11.1
13-
github.com/urfave/cli/v2 v2.27.6
14-
golang.org/x/crypto v0.49.0
16+
github.com/urfave/cli/v3 v3.3.3
17+
golang.org/x/crypto v0.50.0
1518
gopkg.in/yaml.v3 v3.0.1
16-
k8s.io/api v0.32.3
17-
k8s.io/apimachinery v0.32.3
18-
k8s.io/client-go v0.32.3
19+
k8s.io/api v0.35.4
20+
k8s.io/apimachinery v0.35.4
21+
k8s.io/client-go v0.35.4
1922
)
2023

2124
require (
25+
github.com/aws/aws-sdk-go v1.55.5 // indirect
26+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30 // indirect
27+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.34 // indirect
28+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.34 // indirect
29+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
30+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
31+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
32+
github.com/aws/aws-sdk-go-v2/service/sso v1.25.3 // indirect
33+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.1 // indirect
34+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.19 // indirect
35+
github.com/aws/smithy-go v1.22.2 // indirect
2236
github.com/beorn7/perks v1.0.1 // indirect
2337
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
2438
github.com/cespare/xxhash/v2 v2.3.0 // indirect
25-
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
2639
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2740
github.com/docker/go-metrics v0.0.1 // indirect
2841
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
29-
github.com/fxamacker/cbor/v2 v2.8.0 // indirect
42+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
3043
github.com/go-logr/logr v1.4.3 // indirect
3144
github.com/go-logr/stdr v1.2.2 // indirect
3245
github.com/go-openapi/jsonpointer v0.21.1 // indirect
3346
github.com/go-openapi/jsonreference v0.21.0 // indirect
3447
github.com/go-openapi/swag v0.23.1 // indirect
35-
github.com/gogo/protobuf v1.3.2 // indirect
36-
github.com/golang/protobuf v1.5.4 // indirect
37-
github.com/google/gnostic-models v0.6.9 // indirect
48+
github.com/google/gnostic-models v0.7.0 // indirect
3849
github.com/google/go-cmp v0.7.0 // indirect
39-
github.com/google/gofuzz v1.2.0 // indirect
4050
github.com/gorilla/mux v1.8.1 // indirect
4151
github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 // indirect
4252
github.com/jmespath/go-jmespath v0.4.0 // indirect
4353
github.com/josharian/intern v1.0.0 // indirect
4454
github.com/json-iterator/go v1.1.12 // indirect
4555
github.com/mailru/easyjson v0.9.0 // indirect
4656
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
47-
github.com/modern-go/reflect2 v1.0.2 // indirect
57+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
4858
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
49-
github.com/pkg/errors v0.9.1 // indirect
5059
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
5160
github.com/prometheus/client_golang v1.23.2 // indirect
5261
github.com/prometheus/client_model v0.6.2 // indirect
5362
github.com/prometheus/common v0.67.5 // indirect
5463
github.com/prometheus/otlptranslator v1.0.0 // indirect
5564
github.com/prometheus/procfs v0.20.1 // indirect
56-
github.com/russross/blackfriday/v2 v2.1.0 // indirect
5765
github.com/sirupsen/logrus v1.9.4 // indirect
5866
github.com/x448/float16 v0.8.4 // indirect
59-
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
6067
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
6168
go.opentelemetry.io/contrib/bridges/prometheus v0.67.0 // indirect
6269
go.opentelemetry.io/contrib/exporters/autoexport v0.67.0 // indirect
@@ -80,23 +87,24 @@ require (
8087
go.opentelemetry.io/otel/trace v1.43.0 // indirect
8188
go.opentelemetry.io/proto/otlp v1.10.0 // indirect
8289
go.yaml.in/yaml/v2 v2.4.3 // indirect
90+
go.yaml.in/yaml/v3 v3.0.4 // indirect
8391
golang.org/x/net v0.52.0 // indirect
8492
golang.org/x/oauth2 v0.35.0 // indirect
85-
golang.org/x/sys v0.42.0 // indirect
86-
golang.org/x/term v0.41.0 // indirect
87-
golang.org/x/text v0.35.0 // indirect
93+
golang.org/x/sys v0.43.0 // indirect
94+
golang.org/x/term v0.42.0 // indirect
95+
golang.org/x/text v0.36.0 // indirect
8896
golang.org/x/time v0.14.0 // indirect
8997
google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9 // indirect
9098
google.golang.org/genproto/googleapis/rpc v0.0.0-20260401024825-9d38bb4040a9 // indirect
9199
google.golang.org/grpc v1.80.0 // indirect
92100
google.golang.org/protobuf v1.36.11 // indirect
93-
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
101+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
94102
gopkg.in/inf.v0 v0.9.1 // indirect
95103
k8s.io/klog/v2 v2.130.1 // indirect
96-
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
97-
k8s.io/utils v0.0.0-20250321185631-1f6e0b77f77e // indirect
98-
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
104+
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
105+
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect
106+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
99107
sigs.k8s.io/randfill v1.0.0 // indirect
100-
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
101-
sigs.k8s.io/yaml v1.4.0 // indirect
108+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
109+
sigs.k8s.io/yaml v1.6.0 // indirect
102110
)

0 commit comments

Comments
 (0)