Skip to content

Commit 10c27c6

Browse files
committed
ci: use go-version-file: go.mod instead of pinning GO_VERSION
Removes the env-var coupling so the workflow's Go version follows whatever go.mod declares. Addresses review feedback on #664. Signed-off-by: JP Schoombee <jpschoombee@gmail.com>
1 parent ab14385 commit 10c27c6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414

1515
env:
1616
# Common versions
17-
GO_VERSION: "1.25.10"
1817
GOLANGCI_VERSION: "v2.10.1"
1918
DOCKER_BUILDX_VERSION: "v0.28.0"
2019

@@ -58,7 +57,7 @@ jobs:
5857
- name: Setup Go
5958
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
6059
with:
61-
go-version: ${{ env.GO_VERSION }}
60+
go-version-file: go.mod
6261

6362
- name: Find the Go Build Cache
6463
id: go
@@ -112,7 +111,7 @@ jobs:
112111
- name: Setup Go
113112
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
114113
with:
115-
go-version: ${{ env.GO_VERSION }}
114+
go-version-file: go.mod
116115

117116
- name: Find the Go Build Cache
118117
id: go-cache-paths
@@ -162,7 +161,7 @@ jobs:
162161
- name: Setup Go
163162
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
164163
with:
165-
go-version: ${{ env.GO_VERSION }}
164+
go-version-file: go.mod
166165

167166
- name: Find the Go Build Cache
168167
id: go-cache-paths
@@ -219,7 +218,7 @@ jobs:
219218
- name: Setup Go
220219
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
221220
with:
222-
go-version: ${{ env.GO_VERSION }}
221+
go-version-file: go.mod
223222

224223
- name: Find the Go Build Cache
225224
id: go-cache-paths

0 commit comments

Comments
 (0)