Compare commits

...

3 Commits

Author SHA1 Message Date
stevenhorsman
675b19d25d WIP: workflows: Try and install golang with actions/setup-go
With the go 1.25 bump we are hitting issues in our tests due
to gocov in the toolchain not being found. actions/setup-go
is supposed to be smarter about this than our manual install,
so give this a try.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
2026-02-12 16:20:35 +00:00
stevenhorsman
d5c865f367 versions: Update golangci-lint
Bump to the latest version to pick up support for Go 1.25

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
2026-02-12 16:20:35 +00:00
stevenhorsman
0ab647302b versions: Bump go to 1.25.7
Now that go 1.26 is out, 1.24 is not supported, so bump to
1.25 as per our policy.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
2026-02-12 15:50:02 +00:00
9 changed files with 57 additions and 35 deletions

View File

@@ -94,11 +94,28 @@ jobs:
./ci/install_yq.sh
env:
INSTALL_IN_GOPATH: false
- name: Install golang
- name: Read properties from versions.yaml
if: contains(matrix.component.needs, 'golang')
run: |
./tests/install_go.sh -f -p
echo "/usr/local/go/bin" >> "$GITHUB_PATH"
go_version="$(yq '.languages.golang.version' versions.yaml)"
[ -n "$go_version" ]
echo "GO_VERSION=${go_version}" >> "$GITHUB_ENV"
- name: Setup Golang version ${{ env.GO_VERSION }}
if: contains(matrix.component.needs, 'golang')
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: ${{ env.GO_VERSION }}
# Setup-go doesn't work properly with ppc64le: https://github.com/actions/setup-go/issues/648
architecture: ${{ contains(inputs.instance, 'ppc64le') && 'ppc64le' || '' }}
# - name: Install golang
# if: contains(matrix.component.needs, 'golang')
# run: |
# ./tests/install_go.sh -f -p
# echo "/usr/local/go/bin" >> "$GITHUB_PATH"
- name: Setup rust
if: contains(matrix.component.needs, 'rust')
run: |

View File

@@ -1,7 +1,7 @@
module github.com/kata-containers/kata-containers/src/runtime
// Keep in sync with version in versions.yaml
go 1.24.13
go 1.25.7
// WARNING: Do NOT use `replace` directives as those break dependabot:
// https://github.com/kata-containers/kata-containers/issues/11020

View File

@@ -1,7 +1,7 @@
module kata-containers/csi-kata-directvolume
// Keep in sync with version in versions.yaml
go 1.24.13
go 1.25.7
// WARNING: Do NOT use `replace` directives as those break dependabot:
// https://github.com/kata-containers/kata-containers/issues/11020

View File

@@ -1,7 +1,7 @@
module github.com/kata-containers/kata-containers/src/tools/log-parser
// Keep in sync with version in versions.yaml
go 1.24.13
go 1.25.7
require (
github.com/BurntSushi/toml v1.1.0

View File

@@ -1,34 +1,39 @@
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
version: "2"
run:
concurrency: 4
deadline: 600s
issues:
exclude-dirs:
- vendor
exclude-files:
- ".*\\.pb\\.go$"
linters:
disable-all: true
default: none
enable:
- gocyclo
- gofmt
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- typecheck
- unused
linters-settings:
gocyclo:
min_complexity: 15
unused:
check-exported: true
govet:
enable:
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- .*\.pb\.go$
- vendor
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- .*\.pb\.go$
- vendor
- third_party$
- builtin$
- examples$

View File

@@ -1,7 +1,7 @@
module github.com/kata-containers/tests
// Keep in sync with version in versions.yaml
go 1.24.13
go 1.25.7
// WARNING: Do NOT use `replace` directives as those break dependabot:
// https://github.com/kata-containers/kata-containers/issues/11020

View File

@@ -1,7 +1,7 @@
module example.com/m
// Keep in sync with version in versions.yaml
go 1.24.13
go 1.25.7
require (
github.com/BurntSushi/toml v1.3.2

View File

@@ -1,7 +1,7 @@
module module-path
// Keep in sync with version in versions.yaml
go 1.24.13
go 1.25.7
require (
github.com/sirupsen/logrus v1.9.3

View File

@@ -465,12 +465,12 @@ languages:
description: "Google's 'go' language"
notes: "'version' is the default minimum version used by this project."
# When updating this, also update in go.mod files.
version: "1.24.13"
version: "1.25.7"
meta:
description: |
'newest-version' is the latest version known to work when
building Kata
newest-version: "1.24.13"
newest-version: "1.25.7"
rust:
description: "Rust language"
@@ -487,12 +487,12 @@ languages:
description: "golangci-lint"
notes: "'version' is the default minimum version used by this project."
url: "github.com/golangci/golangci-lint"
version: "1.64.8"
version: "2.9.0"
meta:
description: |
'newest-version' is the latest version known to work when
building Kata
newest-version: "1.64.8"
newest-version: "2.9.0"
docker_images:
description: "Docker images used for testing"