mirror of
https://github.com/rancher/cli.git
synced 2026-02-05 09:48:36 +01:00
Bump Go to 1.25 (#510)
* Bump Go to 1.25 * Bump golangci-lint * Explicitly set Go toolchain to be able to run unit-tests * Remove lint step from ci script
This commit is contained in:
committed by
GitHub
parent
21997d0936
commit
5cf2106b2d
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -19,9 +19,14 @@ jobs:
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: false
|
||||
# https://github.com/golang/go/issues/75031
|
||||
- name: Set toolchain version
|
||||
run: go env -w GOTOOLCHAIN=go1.25.4+auto
|
||||
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@d6238b002a20823d52840fda27e2d4891c5952dc # v4
|
||||
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
|
||||
with:
|
||||
version: v2.7.1
|
||||
|
||||
- name: Validate Go modules
|
||||
run: ./scripts/validate
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
{
|
||||
"linters": {
|
||||
"enable": [
|
||||
"gofmt"
|
||||
]
|
||||
},
|
||||
"run": {
|
||||
"timeout": "10m"
|
||||
}
|
||||
}
|
||||
"formatters": {
|
||||
"enable": [
|
||||
"gofmt"
|
||||
]
|
||||
},
|
||||
"linters": {
|
||||
"default": "none",
|
||||
"enable": [
|
||||
"govet",
|
||||
"ineffassign",
|
||||
"unused"
|
||||
]
|
||||
},
|
||||
"version": "2"
|
||||
}
|
||||
|
||||
4
go.mod
4
go.mod
@@ -1,8 +1,8 @@
|
||||
module github.com/rancher/cli
|
||||
|
||||
go 1.24.0
|
||||
go 1.25.0
|
||||
|
||||
toolchain go1.24.9
|
||||
toolchain go1.25.4
|
||||
|
||||
replace (
|
||||
k8s.io/apiserver => k8s.io/apiserver v0.34.1
|
||||
|
||||
@@ -5,6 +5,5 @@ cd $(dirname $0)
|
||||
|
||||
./build
|
||||
./test
|
||||
./lint
|
||||
./validate
|
||||
./package
|
||||
|
||||
Reference in New Issue
Block a user