Skip to content

Commit cb94677

Browse files
author
Takashi Kusumi
authored
Update dependencies and tools (#273)
* Bump Go to v1.21 * Update dependencies * Update tools
1 parent d49142c commit cb94677

File tree

5 files changed

+113
-145
lines changed

5 files changed

+113
-145
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ build:
55
go build -o dist/stern .
66

77
TOOLS_BIN_DIR := $(CURDIR)/hack/tools/bin
8-
GORELEASER_VERSION ?= v1.17.0
8+
GORELEASER_VERSION ?= v1.20.0
99
GORELEASER := $(TOOLS_BIN_DIR)/goreleaser
10-
GOLANGCI_LINT_VERSION ?= v1.52.2
10+
GOLANGCI_LINT_VERSION ?= v1.54.1
1111
GOLANGCI_LINT := $(TOOLS_BIN_DIR)/golangci-lint
12-
VALIDATE_KREW_MAIFEST_VERSION ?= v0.4.3
12+
VALIDATE_KREW_MAIFEST_VERSION ?= v0.4.4
1313
VALIDATE_KREW_MAIFEST := $(TOOLS_BIN_DIR)/validate-krew-manifest
1414
GORELEASER_FILTER_VERSION ?= v0.3.0
1515
GORELEASER_FILTER := $(TOOLS_BIN_DIR)/goreleaser-filter
@@ -54,7 +54,7 @@ verify-readme:
5454

5555
.PHONY: validate-krew-manifest
5656
validate-krew-manifest: $(VALIDATE_KREW_MAIFEST)
57-
$(VALIDATE_KREW_MAIFEST) -manifest dist/stern.yaml -skip-install
57+
$(VALIDATE_KREW_MAIFEST) -manifest dist/krew/stern.yaml -skip-install
5858

5959
.PHONY: dist
6060
dist: $(GORELEASER) $(GORELEASER_FILTER)

cmd/cmd_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"k8s.io/apimachinery/pkg/fields"
1717
"k8s.io/apimachinery/pkg/labels"
1818
"k8s.io/cli-runtime/pkg/genericclioptions"
19-
"k8s.io/utils/pointer"
19+
"k8s.io/utils/ptr"
2020
)
2121

2222
func TestSternCommand(t *testing.T) {
@@ -521,7 +521,7 @@ func TestOptionsSternConfig(t *testing.T) {
521521
c.AllNamespaces = true
522522
c.LabelSelector = labelSelector
523523
c.FieldSelector = fieldSelector
524-
c.TailLines = pointer.Int64(10)
524+
c.TailLines = ptr.To[int64](10)
525525
c.Follow = false
526526
c.Resource = "res1"
527527
c.OnlyLogLines = true

go.mod

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
module github.com/stern/stern
22

3-
go 1.19
3+
go 1.21
44

55
require (
6-
github.com/AlecAivazis/survey/v2 v2.3.6
6+
github.com/AlecAivazis/survey/v2 v2.3.7
77
github.com/fatih/color v1.15.0
88
github.com/mitchellh/go-homedir v1.1.0
99
github.com/pkg/errors v0.9.1
10-
github.com/spf13/cast v1.5.0
10+
github.com/spf13/cast v1.5.1
1111
github.com/spf13/cobra v1.7.0
1212
github.com/spf13/pflag v1.0.5
13-
golang.org/x/sync v0.1.0
13+
golang.org/x/sync v0.3.0
1414
golang.org/x/time v0.3.0
1515
gopkg.in/yaml.v3 v3.0.1
16-
k8s.io/api v0.27.0
17-
k8s.io/apimachinery v0.27.0
18-
k8s.io/cli-runtime v0.27.0
19-
k8s.io/client-go v0.27.0
20-
k8s.io/klog/v2 v2.90.1
21-
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2
16+
k8s.io/api v0.28.0
17+
k8s.io/apimachinery v0.28.0
18+
k8s.io/cli-runtime v0.28.0
19+
k8s.io/client-go v0.28.0
20+
k8s.io/klog/v2 v2.100.1
21+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
2222
)
2323

2424
require (
@@ -27,48 +27,48 @@ require (
2727
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
2828
github.com/go-errors/errors v1.4.2 // indirect
2929
github.com/go-logr/logr v1.2.4 // indirect
30-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
30+
github.com/go-openapi/jsonpointer v0.20.0 // indirect
3131
github.com/go-openapi/jsonreference v0.20.2 // indirect
32-
github.com/go-openapi/swag v0.22.3 // indirect
32+
github.com/go-openapi/swag v0.22.4 // indirect
3333
github.com/gogo/protobuf v1.3.2 // indirect
3434
github.com/golang/protobuf v1.5.3 // indirect
3535
github.com/google/btree v1.1.2 // indirect
36-
github.com/google/gnostic v0.6.9 // indirect
36+
github.com/google/gnostic-models v0.6.8 // indirect
3737
github.com/google/go-cmp v0.5.9 // indirect
3838
github.com/google/gofuzz v1.2.0 // indirect
3939
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
4040
github.com/google/uuid v1.3.0 // indirect
4141
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
42-
github.com/imdario/mergo v0.3.15 // indirect
42+
github.com/imdario/mergo v0.3.16 // indirect
4343
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4444
github.com/josharian/intern v1.0.0 // indirect
4545
github.com/json-iterator/go v1.1.12 // indirect
4646
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
4747
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
4848
github.com/mailru/easyjson v0.7.7 // indirect
4949
github.com/mattn/go-colorable v0.1.13 // indirect
50-
github.com/mattn/go-isatty v0.0.18 // indirect
50+
github.com/mattn/go-isatty v0.0.19 // indirect
5151
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
5252
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5353
github.com/modern-go/reflect2 v1.0.2 // indirect
5454
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
5555
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5656
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
5757
github.com/xlab/treeprint v1.2.0 // indirect
58-
go.starlark.net v0.0.0-20230302034142-4b1e35fe2254 // indirect
59-
golang.org/x/net v0.9.0 // indirect
60-
golang.org/x/oauth2 v0.7.0 // indirect
61-
golang.org/x/sys v0.7.0 // indirect
62-
golang.org/x/term v0.7.0 // indirect
63-
golang.org/x/text v0.9.0 // indirect
58+
go.starlark.net v0.0.0-20230814145427-12f4cb8177e4 // indirect
59+
golang.org/x/net v0.14.0 // indirect
60+
golang.org/x/oauth2 v0.11.0 // indirect
61+
golang.org/x/sys v0.11.0 // indirect
62+
golang.org/x/term v0.11.0 // indirect
63+
golang.org/x/text v0.12.0 // indirect
6464
google.golang.org/appengine v1.6.7 // indirect
65-
google.golang.org/protobuf v1.30.0 // indirect
65+
google.golang.org/protobuf v1.31.0 // indirect
6666
gopkg.in/inf.v0 v0.9.1 // indirect
6767
gopkg.in/yaml.v2 v2.4.0 // indirect
68-
k8s.io/kube-openapi v0.0.0-20230327201221-f5883ff37f0c // indirect
68+
k8s.io/kube-openapi v0.0.0-20230811205723-7ac0aad8c58d // indirect
6969
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
70-
sigs.k8s.io/kustomize/api v0.13.2 // indirect
71-
sigs.k8s.io/kustomize/kyaml v0.14.1 // indirect
72-
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
70+
sigs.k8s.io/kustomize/api v0.14.0 // indirect
71+
sigs.k8s.io/kustomize/kyaml v0.14.3 // indirect
72+
sigs.k8s.io/structured-merge-diff/v4 v4.3.0 // indirect
7373
sigs.k8s.io/yaml v1.3.0 // indirect
7474
)

0 commit comments

Comments
 (0)