Fix Go version pinning in CI workflows

This commit is contained in:
Michael
2026-02-23 16:00:05 +01:00
committed by GitHub
parent c98fddbd03
commit 95b3f45311
9 changed files with 13 additions and 17 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ jobs:
env:
ImageOS: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.goarm }}
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: Artifact webui
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
if: ${{ matrix.language == 'go' }}
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
# Initializes the CodeQL tools for scanning.
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
env:
ImageOS: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.goarm }}
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: Build
+1 -1
View File
@@ -39,7 +39,7 @@ jobs:
# Ensure cache consistency on Linux, see https://github.com/actions/setup-go/pull/383
ImageOS: ${{ matrix.os }}
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: Artifact webui
+2 -2
View File
@@ -26,7 +26,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: Avoid generating webui
@@ -68,7 +68,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: Avoid generating webui
+2 -2
View File
@@ -25,7 +25,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: Generate matrix
@@ -51,7 +51,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: Avoid generating webui
+3 -3
View File
@@ -23,7 +23,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: golangci-lint
@@ -43,7 +43,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: Install misspell ${{ env.MISSPELL_VERSION }}
@@ -67,7 +67,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: 'go.mod'
go-version-file: '.go-version'
check-latest: true
- name: go generate
+1
View File
@@ -0,0 +1 @@
1.25.7
+1 -6
View File
@@ -1,11 +1,6 @@
module github.com/traefik/traefik/v2
// Only specify the major.minor version here.
// CI workflows read this value via go-version-file and use check-latest
// to automatically pick up the newest patch release.
// Pinning a patch version would defeat that mechanism and require manual
// bumps for every Go patch release.
go 1.25
go 1.25.0
require (
github.com/BurntSushi/toml v1.5.0