Skip to content

Commit a2a9312

Browse files
authored
Merge pull request #137 from stacklok/use-go-version-from-gomod
Use Go version from go.mod instead of hardcoding
2 parents 9ea34d2 + 5b0f663 commit a2a9312

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/build-containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ jobs:
217217
- name: Set up Go
218218
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
219219
with:
220-
go-version: '1.25'
220+
go-version-file: 'go.mod'
221221

222222
- name: Set up QEMU
223223
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
branches: [ main ]
88
workflow_dispatch:
99

10-
env:
11-
GO_VERSION: '1.24'
12-
1310
jobs:
1411

1512
lint:
@@ -22,7 +19,7 @@ jobs:
2219
- name: Set up Go
2320
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
2421
with:
25-
go-version: ${{ env.GO_VERSION }}
22+
go-version-file: 'go.mod'
2623

2724
- name: Run golangci-lint
2825
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
@@ -40,7 +37,7 @@ jobs:
4037
- name: Set up Go
4138
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
4239
with:
43-
go-version: ${{ env.GO_VERSION }}
40+
go-version-file: 'go.mod'
4441

4542
- name: Cache Go modules
4643
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4

0 commit comments

Comments
 (0)