Skip to content

Commit d42c2a8

Browse files
authored
Merge pull request #4794 from grosser/grosser/1.21
use single source for go version
2 parents bad778b + a528975 commit d42c2a8

File tree

10 files changed

+14
-13
lines changed

10 files changed

+14
-13
lines changed

.github/workflows/ci-schedule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: install Go
4141
uses: actions/setup-go@v5
4242
with:
43-
go-version: 1.21.8
43+
go-version-file: go.mod
4444
- name: setup e2e test environment
4545
uses: nick-fields/[email protected]
4646
with:

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: install Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: 1.21.8
25+
go-version-file: go.mod
2626
- name: verify license
2727
run: hack/verify-license.sh
2828
- name: vendor
@@ -47,7 +47,7 @@ jobs:
4747
- name: install Go
4848
uses: actions/setup-go@v5
4949
with:
50-
go-version: 1.21.8
50+
go-version-file: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada/go.mod
5151
- name: Install Protoc
5252
uses: arduino/setup-protoc@v1
5353
with:
@@ -79,7 +79,7 @@ jobs:
7979
- name: install Go
8080
uses: actions/setup-go@v5
8181
with:
82-
go-version: 1.21.8
82+
go-version-file: go.mod
8383
- name: compile
8484
run: make all
8585
test:
@@ -94,7 +94,7 @@ jobs:
9494
- name: install Go
9595
uses: actions/setup-go@v5
9696
with:
97-
go-version: 1.21.8
97+
go-version-file: go.mod
9898
- name: make test
9999
run: make test
100100
- name: Upload coverage to Codecov
@@ -145,7 +145,7 @@ jobs:
145145
- name: install Go
146146
uses: actions/setup-go@v5
147147
with:
148-
go-version: 1.21.8
148+
go-version-file: go.mod
149149
- name: setup e2e test environment
150150
run: |
151151
export CLUSTER_VERSION=kindest/node:${{ matrix.k8s }}

.github/workflows/cli.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: install Go
3434
uses: actions/setup-go@v5
3535
with:
36-
go-version: 1.21.8
36+
go-version-file: go.mod
3737
- uses: helm/[email protected]
3838
with:
3939
version: "v0.20.0"

.github/workflows/dockerhub-latest-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: install Go
3939
uses: actions/setup-go@v5
4040
with:
41-
go-version: 1.21.8
41+
go-version-file: go.mod
4242
- name: Install Cosign
4343
uses: sigstore/[email protected]
4444
with:

.github/workflows/dockerhub-released-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: install Go
3535
uses: actions/setup-go@v5
3636
with:
37-
go-version: 1.21.8
37+
go-version-file: go.mod
3838
- name: Install Cosign
3939
uses: sigstore/[email protected]
4040
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Go
2424
uses: actions/setup-go@v5
2525
with:
26-
go-version: 1.21.8
26+
go-version-file: go.mod
2727
- name: Making and packaging
2828
env:
2929
GOOS: ${{ matrix.os }}

.github/workflows/swr-latest-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: install Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: 1.21.8
25+
go-version-file: go.mod
2626
- name: build images
2727
env:
2828
REGISTRY: ${{secrets.SWR_REGISTRY}}

.github/workflows/swr-released-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: install Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.21.8
22+
go-version-file: go.mod
2323
- name: build images
2424
env:
2525
REGISTRY: ${{secrets.SWR_REGISTRY}}

.go-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.21.8

go.mod

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

3-
go 1.21
3+
go 1.21.8
44

55
require (
66
github.com/adhocore/gronx v1.6.3

0 commit comments

Comments
 (0)