Skip to content

Commit 75fc0d5

Browse files
authored
update go 1.24 (#25)
* update go 1.24 * update golang/some setups
1 parent 228d779 commit 75fc0d5

File tree

6 files changed

+13
-43
lines changed

6 files changed

+13
-43
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 2
3838

3939
- name: Set up Go
40-
uses: actions/setup-go@v4
40+
uses: actions/setup-go@v5
4141
with:
4242
go-version: stable
4343

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out the repo
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Set up QEMU
1717
uses: docker/setup-qemu-action@v2

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99

10-
- name: Set up Go 1.23
11-
uses: actions/setup-go@v1
10+
- name: Set up Go 1.24
11+
uses: actions/setup-go@v5
1212
with:
13-
go-version: 1.23
13+
go-version: 1.24
1414
id: go
1515

1616
- name: Check out code into the Go module directory

.github/workflows/golangci-lint.yml

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: golangci-lint
33
on:
44
push:
55
branches:
6-
- master
76
- main
7+
- master
88
pull_request:
99

1010
permissions:
@@ -17,41 +17,11 @@ jobs:
1717
name: lint
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-go@v4
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-go@v5
2222
with:
23-
go-version: '1.23'
24-
cache: false
23+
go-version: stable
2524
- name: golangci-lint
26-
uses: golangci/golangci-lint-action@v3
25+
uses: golangci/golangci-lint-action@v6
2726
with:
28-
# Require: The version of golangci-lint to use.
29-
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
30-
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
31-
version: v1.60.1
32-
33-
# Optional: working directory, useful for monorepos
34-
# working-directory: somedir
35-
36-
# Optional: golangci-lint command line arguments.
37-
#
38-
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
39-
# The location of the configuration file can be changed by using `--config=`
40-
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
41-
args: --timeout=3m --verbose
42-
43-
# Optional: show only new issues if it's a pull request. The default value is `false`.
44-
# only-new-issues: true
45-
46-
# Optional: if set to true, then all caching functionality will be completely disabled,
47-
# takes precedence over all other caching options.
48-
# skip-cache: true
49-
50-
# Optional: if set to true, then the action won't cache or restore ~/go/pkg.
51-
# skip-pkg-cache: true
52-
53-
# Optional: if set to true, then the action won't cache or restore ~/.cache/go-build.
54-
# skip-build-cache: true
55-
56-
# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
57-
# install-mode: "goinstall"
27+
version: v1.64

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23 as build
1+
FROM golang:1.24 as build
22

33
WORKDIR /go/src/app
44

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/salesforce/kubelet-summary-exporter
22

3-
go 1.23.0
3+
go 1.24.0
44

55
require (
66
github.com/alecthomas/kong v0.9.0

0 commit comments

Comments
 (0)