Skip to content

Commit 78d4d76

Browse files
rdimitrovclaude
andcommitted
Stop pinning Go to patch versions, use stable in CI
Drop the patch version from the go directive in go.mod (1.26.2 → 1.26) so we only declare the minimum language version needed. Switch all CI workflows to go-version: 'stable' so they always use the latest stable Go release. Remove the Renovate custom manager that was bumping the Go patch version — no longer needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 78d0a2b commit 78d4d76

6 files changed

Lines changed: 6 additions & 16 deletions

File tree

.github/workflows/license-headers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2121
with:
22-
go-version-file: 'go.mod'
22+
go-version: 'stable'
2323
cache: false
2424

2525
- name: Install addlicense

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2121
with:
22-
go-version-file: 'go.mod'
22+
go-version: 'stable'
2323
cache: true
2424
cache-dependency-path: go.sum
2525

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Run govulncheck
2525
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4
2626
with:
27-
go-version-file: go.mod
27+
go-version-input: 'stable'
2828
go-package: ./...
2929
repo-checkout: false
3030

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2121
with:
22-
go-version-file: 'go.mod'
22+
go-version: 'stable'
2323
cache: true
2424
cache-dependency-path: go.sum
2525

go.mod

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

3-
go 1.26.2
3+
go 1.26
44

55
require (
66
github.com/adrg/xdg v0.5.3

renovate.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,5 @@
66
":semanticCommitsDisabled"
77
],
88
"labels": ["dependencies"],
9-
"postUpdateOptions": ["gomodTidy"],
10-
"customManagers": [
11-
{
12-
"customType": "regex",
13-
"fileMatch": ["(^|/)go\\.mod$"],
14-
"matchStrings": ["go (?<currentValue>\\d+\\.\\d+(\\.\\d+)?)"],
15-
"depNameTemplate": "golang",
16-
"datasourceTemplate": "golang-version",
17-
"versioningTemplate": "loose"
18-
}
19-
]
9+
"postUpdateOptions": ["gomodTidy"]
2010
}

0 commit comments

Comments
 (0)