Skip to content

Commit 0f44f43

Browse files
authored
Use latest stable version of Go (#1348)
Problem: Since Go changed the versioning in go.mod to specify a patch release in 1.21, we don't use the latest go version when building the binary anymore. Before with 1.20 in go.mod we would use the latest version of 1.20.x, but now since we specify 1.21.3 in go.mod we use that fixed version and not 1.21.4 for example, and future updates. Solution: Update the pipeline to always use the latest stable version of Go in the pipeline.
1 parent 041f24f commit 0f44f43

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Golang Environment
3737
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3838
with:
39-
go-version-file: go.mod
39+
go-version: stable
4040

4141
- name: Output Variables
4242
id: vars
@@ -65,7 +65,7 @@ jobs:
6565
- name: Setup Golang Environment
6666
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
6767
with:
68-
go-version-file: go.mod
68+
go-version: stable
6969

7070
- name: Run Tests
7171
run: make unit-test
@@ -107,7 +107,7 @@ jobs:
107107
- name: Setup Golang Environment
108108
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
109109
with:
110-
go-version-file: go.mod
110+
go-version: stable
111111

112112
- name: Create/Update Draft
113113
uses: lucacome/draft-release@785af55296512c907875513e397320ae3f1306bb # v1.0.1

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup Golang Environment
5858
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
5959
with:
60-
go-version-file: go.mod
60+
go-version: stable
6161
if: matrix.language == 'go'
6262

6363
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).

.github/workflows/conformance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup Golang Environment
3939
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
4040
with:
41-
go-version-file: go.mod
41+
go-version: stable
4242

4343
- name: Set GOPATH
4444
run: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Golang Environment
2525
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
2626
with:
27-
go-version-file: go.mod
27+
go-version: stable
2828

2929
- name: Lint Code
3030
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0

0 commit comments

Comments
 (0)