Skip to content

Commit 1b75d0a

Browse files
authored
Upgrade pulsar go client to latest and golang to 1.25 (#1948)
1 parent 4babb73 commit 1b75d0a

Some content is hidden

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

44 files changed

+325
-255
lines changed

.github/workflows/ci-bookie-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
bookie-ut-tests:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Set up Go 1.24
14+
- name: Set up Go 1.25
1515
uses: actions/setup-go@v6
1616
with:
17-
go-version: 1.24
17+
go-version: 1.25
1818
id: go
1919
- name: Check out code into the Go module directory
2020
uses: actions/checkout@v2

.github/workflows/ci-functions-checks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- name: Login SN docker hub
1515
run: docker login -u="${{ secrets.DOCKER_USER }}" -p="${{ secrets.DOCKER_PASSWORD}}"
16-
- name: Set up Go 1.24
16+
- name: Set up Go 1.25
1717
uses: actions/setup-go@v6
1818
with:
19-
go-version: 1.24
19+
go-version: 1.25
2020
id: go
2121
- name: Check out code into the Go module directory
2222
uses: actions/checkout@v2
@@ -30,10 +30,10 @@ jobs:
3030
steps:
3131
- name: Login SN docker hub
3232
run: docker login -u="${{ secrets.DOCKER_USER }}" -p="${{ secrets.DOCKER_PASSWORD}}"
33-
- name: Set up Go 1.24
33+
- name: Set up Go 1.25
3434
uses: actions/setup-go@v6
3535
with:
36-
go-version: 1.24
36+
go-version: 1.25
3737
id: go
3838
- name: Check out code into the Go module directory
3939
uses: actions/checkout@v2
@@ -44,10 +44,10 @@ jobs:
4444
steps:
4545
- name: Login SN docker hub
4646
run: docker login -u="${{ secrets.DOCKER_USER }}" -p="${{ secrets.DOCKER_PASSWORD}}"
47-
- name: Set up Go 1.24
47+
- name: Set up Go 1.25
4848
uses: actions/setup-go@v6
4949
with:
50-
go-version: 1.24
50+
go-version: 1.25
5151
id: go
5252
- name: Check out code into the Go module directory
5353
uses: actions/checkout@v2

.github/workflows/ci-packages-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- name: Login SN docker hub
1515
run: docker login -u="${{ secrets.DOCKER_USER }}" -p="${{ secrets.DOCKER_PASSWORD}}"
16-
- name: Set up Go 1.24
16+
- name: Set up Go 1.25
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.24
19+
go-version: 1.25
2020
id: go
2121
- name: Check out code into the Go module directory
2222
uses: actions/checkout@v2

.github/workflows/ci-release-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
go-version: [ 1.24 ]
17+
go-version: [ 1.25 ]
1818
steps:
1919
- uses: actions/checkout@v2
2020
- uses: actions/setup-go@v5

.github/workflows/ci-style-checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
style-check:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Set up Go 1.24
14+
- name: Set up Go 1.25
1515
uses: actions/setup-go@v5
1616
with:
17-
go-version: 1.24
17+
go-version: 1.25
1818
id: go
1919
- name: Check out code into the Go module directory
2020
uses: actions/checkout@v2
2121
- name: golangci-lint
22-
uses: golangci/golangci-lint-action@v6
22+
uses: golangci/golangci-lint-action@v9
2323
with:
24-
version: v1.64.8
24+
version: v2.7.2
2525
args: --timeout=10m -v
2626
- name: Build
2727
run: go build .

.github/workflows/ci-trivy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
scan-vulnerabilities:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Set up Go 1.22
15+
- name: Set up Go 1.25
1616
uses: actions/setup-go@v1
1717
with:
18-
go-version: 1.22
18+
go-version: 1.25
1919
id: go
2020

2121
- name: Check out code into the Go module directory

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ pulsarctl:
3232
.PHONY: install
3333
install:
3434
go install github.com/streamnative/pulsarctl
35+
36+
lint-docker:
37+
docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v2.7.2 golangci-lint run -v

go.mod

Lines changed: 45 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/streamnative/pulsarctl
22

3-
go 1.24.11
3+
go 1.25.0
44

55
require (
6-
github.com/apache/pulsar-client-go v0.16.0
6+
github.com/apache/pulsar-client-go v0.18.0-candidate-1.0.20251222030102-3bb7d4eff361
77
github.com/docker/go-connections v0.5.0
88
github.com/fatih/color v1.7.0
99
github.com/ghodss/yaml v1.0.0
@@ -13,45 +13,45 @@ require (
1313
github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b
1414
github.com/magiconair/properties v1.8.7
1515
github.com/olekukonko/tablewriter v0.0.1
16-
github.com/onsi/gomega v1.35.1
16+
github.com/onsi/gomega v1.38.2
1717
github.com/pkg/errors v0.9.1
1818
github.com/spf13/cobra v1.8.1
19-
github.com/spf13/pflag v1.0.5
20-
github.com/stretchr/testify v1.10.0
19+
github.com/spf13/pflag v1.0.9
20+
github.com/stretchr/testify v1.11.1
2121
github.com/testcontainers/testcontainers-go v0.35.0
2222
gopkg.in/yaml.v2 v2.4.0
2323
)
2424

2525
require (
2626
dario.cat/mergo v1.0.0 // indirect
27-
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
28-
github.com/99designs/keyring v1.2.1 // indirect
27+
github.com/AthenZ/athenz v1.12.31 // indirect
2928
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
29+
github.com/DataDog/zstd v1.5.7 // indirect
3030
github.com/Microsoft/go-winio v0.6.2 // indirect
31+
github.com/RoaringBitmap/roaring/v2 v2.14.4 // indirect
32+
github.com/bits-and-blooms/bitset v1.24.4 // indirect
3133
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
32-
github.com/containerd/containerd v1.7.27 // indirect
34+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
3335
github.com/containerd/log v0.1.0 // indirect
3436
github.com/containerd/platforms v0.2.1 // indirect
3537
github.com/cpuguy83/dockercfg v0.3.2 // indirect
36-
github.com/danieljoos/wincred v1.1.2 // indirect
3738
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3839
github.com/distribution/reference v0.6.0 // indirect
39-
github.com/docker/docker v27.1.1+incompatible // indirect
40+
github.com/docker/docker v28.0.0+incompatible // indirect
4041
github.com/docker/go-units v0.5.0 // indirect
41-
github.com/dvsekhvalnov/jose2go v1.7.0 // indirect
4242
github.com/felixge/httpsnoop v1.0.4 // indirect
43-
github.com/go-logr/logr v1.4.2 // indirect
43+
github.com/go-logr/logr v1.4.3 // indirect
4444
github.com/go-logr/stdr v1.2.2 // indirect
4545
github.com/go-ole/go-ole v1.2.6 // indirect
46-
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
4746
github.com/gogo/protobuf v1.3.2 // indirect
48-
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
47+
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
4948
github.com/golang/protobuf v1.5.4 // indirect
5049
github.com/google/go-cmp v0.7.0 // indirect
5150
github.com/google/uuid v1.6.0 // indirect
52-
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
51+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect
52+
github.com/hamba/avro/v2 v2.30.0 // indirect
5353
github.com/inconshreveable/mousetrap v1.1.0 // indirect
54-
github.com/klauspost/compress v1.17.9 // indirect
54+
github.com/klauspost/compress v1.18.2 // indirect
5555
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
5656
github.com/mattn/go-colorable v0.1.2 // indirect
5757
github.com/mattn/go-isatty v0.0.8 // indirect
@@ -62,32 +62,46 @@ require (
6262
github.com/moby/sys/user v0.3.0 // indirect
6363
github.com/moby/sys/userns v0.1.0 // indirect
6464
github.com/moby/term v0.5.0 // indirect
65+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
6566
github.com/morikuni/aec v1.0.0 // indirect
66-
github.com/mtibben/percent v0.2.1 // indirect
67+
github.com/onsi/ginkgo/v2 v2.27.2 // indirect
6768
github.com/opencontainers/go-digest v1.0.0 // indirect
6869
github.com/opencontainers/image-spec v1.1.0 // indirect
70+
github.com/pierrec/lz4/v4 v4.1.23 // indirect
6971
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
7072
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
73+
github.com/prometheus/client_golang v1.23.2 // indirect
74+
github.com/prometheus/common v0.67.4 // indirect
75+
github.com/prometheus/procfs v0.19.2 // indirect
7176
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
7277
github.com/shoenig/go-m1cpu v0.1.6 // indirect
7378
github.com/sirupsen/logrus v1.9.3 // indirect
7479
github.com/tklauser/go-sysconf v0.3.12 // indirect
7580
github.com/tklauser/numcpus v0.6.1 // indirect
7681
github.com/yusufpapurcu/wmi v1.2.3 // indirect
77-
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
78-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
79-
go.opentelemetry.io/otel v1.35.0 // indirect
82+
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
83+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0 // indirect
84+
go.opentelemetry.io/otel v1.39.0 // indirect
85+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0 // indirect
86+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.39.0 // indirect
8087
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 // indirect
81-
go.opentelemetry.io/otel/metric v1.35.0 // indirect
82-
go.opentelemetry.io/otel/sdk v1.35.0 // indirect
83-
go.opentelemetry.io/otel/trace v1.35.0 // indirect
84-
golang.org/x/crypto v0.37.0 // indirect
85-
golang.org/x/net v0.39.0 // indirect
86-
golang.org/x/oauth2 v0.29.0 // indirect
87-
golang.org/x/sys v0.32.0 // indirect
88-
golang.org/x/term v0.31.0 // indirect
89-
golang.org/x/text v0.24.0 // indirect
90-
google.golang.org/grpc v1.71.1 // indirect
91-
google.golang.org/protobuf v1.36.6 // indirect
88+
go.opentelemetry.io/otel/metric v1.39.0 // indirect
89+
go.opentelemetry.io/otel/trace v1.39.0 // indirect
90+
go.opentelemetry.io/proto/otlp v1.9.0 // indirect
91+
go.yaml.in/yaml/v3 v3.0.4 // indirect
92+
golang.org/x/crypto v0.46.0 // indirect
93+
golang.org/x/mod v0.31.0 // indirect
94+
golang.org/x/net v0.48.0 // indirect
95+
golang.org/x/oauth2 v0.34.0 // indirect
96+
golang.org/x/sys v0.39.0 // indirect
97+
golang.org/x/text v0.32.0 // indirect
98+
google.golang.org/genproto/googleapis/api v0.0.0-20251222181119-0a764e51fe1b // indirect
99+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b // indirect
100+
google.golang.org/protobuf v1.36.11 // indirect
92101
gopkg.in/yaml.v3 v3.0.1 // indirect
102+
k8s.io/apimachinery v0.35.0 // indirect
103+
k8s.io/client-go v0.35.0 // indirect
104+
k8s.io/kube-openapi v0.0.0-20251125145642-4e65d59e963e // indirect
105+
k8s.io/utils v0.0.0-20251222233032-718f0e51e6d2 // indirect
106+
sigs.k8s.io/structured-merge-diff/v6 v6.3.1 // indirect
93107
)

0 commit comments

Comments
 (0)