Skip to content

Commit 9095b0e

Browse files
authored
Switch to Go 1.21, Updates linter, updates workflows, adds sarama 1.42.1 (dapr#3251)
Signed-off-by: Bernd Verst <[email protected]>
1 parent ba5831b commit 9095b0e

File tree

234 files changed

+2381
-2091
lines changed

Some content is hidden

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

234 files changed

+2381
-2091
lines changed

.build-tools/go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/dapr/components-contrib/build-tools
22

3-
go 1.20
3+
go 1.21
4+
5+
toolchain go1.21.4
46

57
require (
68
github.com/dapr/components-contrib v0.0.0

.build-tools/go.sum

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ github.com/dapr/kit v0.12.2-0.20231031211530-0e1fd37fc4b3 h1:xsmVK3YOKRMOcaxqo50
44
github.com/dapr/kit v0.12.2-0.20231031211530-0e1fd37fc4b3/go.mod h1:c3Z78F+h7UYtb0LmpzJNC/ChT240ycDJFViRUztdpoo=
55
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
66
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
7+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
78
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
9+
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
810
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
911
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
1012
github.com/iancoleman/orderedmap v0.0.0-20190318233801-ac98e3ecb4b0 h1:i462o439ZjprVSFSZLZxcsoAe592sZB1rci2Z8j4wdk=
@@ -18,12 +20,15 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
1820
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
1921
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
2022
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 h1:BpfhmLKZf+SjVanKKhCgf3bg+511DmU9eDQTen7LLbY=
23+
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
2124
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
2225
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
2326
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2427
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
28+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2529
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
2630
github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA=
31+
github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48=
2732
github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=
2833
github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY=
2934
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
@@ -32,6 +37,7 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
3237
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
3338
github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
3439
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
40+
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
3541
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
3642
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo=
3743
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
@@ -45,8 +51,10 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
4551
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
4652
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
4753
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
54+
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
4855
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
4956
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
5057
k8s.io/apimachinery v0.26.10 h1:aE+J2KIbjctFqPp3Y0q4Wh2PD+l1p2g3Zp4UYjSvtGU=
58+
k8s.io/apimachinery v0.26.10/go.mod h1:iT1ZP4JBP34wwM+ZQ8ByPEQ81u043iqAcsJYftX9amM=
5159
sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=
5260
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=

.github/workflows/certification.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
fi
4545
4646
- name: Check out code
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4848
with:
4949
repository: ${{ env.CHECKOUT_REPO }}
5050
ref: ${{ env.CHECKOUT_REF }}
@@ -120,7 +120,7 @@ jobs:
120120
fi
121121
122122
- name: Check out code
123-
uses: actions/checkout@v3
123+
uses: actions/checkout@v4
124124
with:
125125
repository: ${{ env.CHECKOUT_REPO }}
126126
ref: ${{ env.CHECKOUT_REF }}
@@ -224,9 +224,10 @@ jobs:
224224

225225
- name: Set up Go
226226
id: setup-go
227-
uses: actions/setup-go@v3
227+
uses: actions/setup-go@v4
228228
with:
229229
go-version-file: 'go.mod'
230+
cache: 'false'
230231

231232
- name: Download Go dependencies
232233
working-directory: ${{ env.TEST_PATH }}

.github/workflows/components-contrib-all.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
GOOS: ${{ matrix.target_os }}
6666
GOARCH: ${{ matrix.target_arch }}
6767
GOPROXY: https://proxy.golang.org
68-
GOLANGCI_LINT_VER: "v1.51.2"
68+
GOLANGCI_LINT_VER: "v1.55.2"
6969
strategy:
7070
matrix:
7171
os: [ubuntu-latest, windows-latest, macOS-latest]
@@ -97,16 +97,17 @@ jobs:
9797
fi
9898
- name: Check out code into the Go module directory
9999
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
100-
uses: actions/checkout@v3
100+
uses: actions/checkout@v4
101101
with:
102102
repository: ${{ env.CHECKOUT_REPO }}
103103
ref: ${{ env.CHECKOUT_REF }}
104104
- name: Set up Go
105105
id: setup-go
106106
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
107-
uses: actions/setup-go@v3
107+
uses: actions/setup-go@v4
108108
with:
109109
go-version-file: 'go.mod'
110+
cache: 'false'
110111
- name: Cache Go modules (Linux)
111112
if: matrix.target_os == 'linux'
112113
uses: actions/cache@v3

.github/workflows/components-contrib.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,18 @@ jobs:
3333
GOOS: linux
3434
GOARCH: amd64
3535
GOPROXY: https://proxy.golang.org
36-
GOLANGCI_LINT_VER: "v1.51.2"
36+
GOLANGCI_LINT_VER: "v1.55.2"
3737
steps:
3838
- name: Check out code into the Go module directory
3939
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
- name: Set up Go
4242
id: setup-go
4343
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
44-
uses: actions/setup-go@v3
44+
uses: actions/setup-go@v4
4545
with:
4646
go-version-file: 'go.mod'
47+
cache: 'false'
4748
- name: Cache Go modules (Linux)
4849
uses: actions/cache@v3
4950
with:

.github/workflows/conformance.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
fi
4848
4949
- name: Check out code
50-
uses: actions/checkout@v3
50+
uses: actions/checkout@v4
5151
with:
5252
repository: ${{ env.CHECKOUT_REPO }}
5353
ref: ${{ env.CHECKOUT_REF }}
@@ -126,7 +126,7 @@ jobs:
126126
fi
127127
128128
- name: Check out code
129-
uses: actions/checkout@v3
129+
uses: actions/checkout@v4
130130
with:
131131
repository: ${{ env.CHECKOUT_REPO }}
132132
ref: ${{ env.CHECKOUT_REF }}
@@ -234,9 +234,10 @@ jobs:
234234
mongodb-replica-set: test-rs
235235

236236
- name: Set up Go
237-
uses: actions/setup-go@v3
237+
uses: actions/setup-go@v4
238238
with:
239239
go-version-file: 'go.mod'
240+
cache: 'false'
240241

241242
- name: Install Node.js ${{ matrix.nodejs-version }}
242243
if: matrix.nodejs-version != ''

.github/workflows/coverage-reports.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ jobs:
3030
GOCOVMERGE_VER: "b5bfa59"
3131
steps:
3232
- name: Check out code
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
repository: ${{ env.CHECKOUT_REPO }}
3636
ref: ${{ env.CHECKOUT_REF }}
3737

3838
- name: Set up Go
39-
uses: actions/setup-go@v3
39+
uses: actions/setup-go@v4
4040
with:
4141
go-version-file: 'go.mod'
42+
cache: 'false'
4243

4344
- name: Setup go dependencies
4445
run: |
@@ -116,4 +117,4 @@ jobs:
116117
env:
117118
SERVER_URL: ${{ secrets.DISCORD_MONITORING_WEBHOOK_URL }}
118119

119-
120+

.github/workflows/dapr-bot-schedule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout repo
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
- name: Install dependencies
2929
run: pip install PyGithub
3030
- name: Automerge and update

.github/workflows/dapr-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v3 # required to make the script available for next step
30+
uses: actions/checkout@v4 # required to make the script available for next step
3131
- name: Issue analyzer
3232
uses: actions/github-script@v6
3333
with:

.github/workflows/fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
FOSSA_API_KEY: b88e1f4287c3108c8751bf106fb46db6 # This is a push-only token that is safe to be exposed.
3333
steps:
3434
- name: "Checkout code"
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636

3737
- name: "Run FOSSA Scan"
3838
uses: fossas/[email protected] # Use a specific version if locking is preferred

0 commit comments

Comments
 (0)