Skip to content

Commit 310fb94

Browse files
Bump the minimum Go version to 1.22 (#1300)
1 parent a7ef9ed commit 310fb94

Some content is hidden

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

60 files changed

+488
-497
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
go-version: [ '1.21', '1.22' ]
25+
go-version: [ '1.22', '1.23' ]
2626
steps:
2727
- uses: actions/checkout@v3
2828
- uses: actions/setup-go@v5
@@ -36,19 +36,19 @@ jobs:
3636
- uses: actions/checkout@v3
3737
- uses: actions/setup-go@v5
3838
with:
39-
go-version: '1.20'
39+
go-version: '1.22'
4040
- name: Check license header
4141
run: docker run --rm -v $(pwd):/github/workspace ghcr.io/korandoru/hawkeye-native:v3 check
4242
- name: Run golangci-lint
4343
uses: golangci/golangci-lint-action@v6
4444
with:
45-
version: v1.51.2
45+
version: v1.61.0
4646

4747
integration-tests:
4848
runs-on: ubuntu-latest
4949
strategy:
5050
matrix:
51-
go-version: [ '1.21', '1.22' ]
51+
go-version: [ '1.22', '1.23' ]
5252
steps:
5353
- uses: actions/checkout@v3
5454
- name: clean docker cache

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# set via the Makefile or CLI
2020
ARG PULSAR_IMAGE=apachepulsar/pulsar:latest
2121

22-
ARG GO_VERSION=1.20
22+
ARG GO_VERSION=1.22
2323
FROM golang:$GO_VERSION as golang
2424

2525
FROM $PULSAR_IMAGE

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
IMAGE_NAME = pulsar-client-go-test:latest
2121
PULSAR_VERSION ?= 3.2.2
2222
PULSAR_IMAGE = apachepulsar/pulsar:$(PULSAR_VERSION)
23-
GO_VERSION ?= 1.21
23+
GO_VERSION ?= 1.22
2424
CONTAINER_ARCH ?= $(shell uname -m | sed s/x86_64/amd64/)
2525

2626
# Golang standard bin directory.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/apache/pulsar-client-go
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/99designs/keyring v1.2.1

oauth2/auth_suite_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ import (
2121
"context"
2222
"testing"
2323

24-
. "github.com/onsi/ginkgo"
25-
. "github.com/onsi/gomega"
24+
"github.com/onsi/ginkgo"
25+
"github.com/onsi/gomega"
2626
)
2727

2828
func TestAuth(t *testing.T) {
29-
RegisterFailHandler(Fail)
30-
RunSpecs(t, "cloud-cli Auth Suite")
29+
gomega.RegisterFailHandler(ginkgo.Fail)
30+
ginkgo.RunSpecs(t, "cloud-cli Auth Suite")
3131
}
3232

3333
type MockTokenExchanger struct {
@@ -52,7 +52,7 @@ func (te *MockTokenExchanger) ExchangeClientCredentials(req ClientCredentialsExc
5252
return te.ReturnsTokens, te.ReturnsError
5353
}
5454

55-
func (te *MockTokenExchanger) ExchangeDeviceCode(ctx context.Context,
55+
func (te *MockTokenExchanger) ExchangeDeviceCode(_ context.Context,
5656
req DeviceCodeExchangeRequest) (*TokenResult, error) {
5757
te.CalledWithRequest = &req
5858
return te.ReturnsTokens, te.ReturnsError

0 commit comments

Comments
 (0)