Skip to content

Commit cf9c624

Browse files
committed
chore: update to go 1.24.3 and golang cli to 2.1.6
Signed-off-by: Jayapriya Pai <janantha@redhat.com>
1 parent eab0ddf commit cf9c624

File tree

3 files changed

+35
-20
lines changed

3 files changed

+35
-20
lines changed

.golangci.yml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
run:
2-
timeout: 7m
3-
1+
version: "2"
42
linters:
5-
disable-all: true
3+
default: none
64
enable:
75
- bodyclose
86
- copyloopvar
@@ -11,27 +9,44 @@ linters:
119
- errcheck
1210
- gocritic
1311
- gocyclo
14-
- gofmt
15-
- goimports
16-
- gosec
1712
- goprintffuncname
18-
- gosimple
13+
- gosec
1914
- govet
2015
- ineffassign
2116
- misspell
2217
- nakedret
2318
- nolintlint
2419
- revive
2520
- staticcheck
26-
- stylecheck
27-
- typecheck
2821
- unconvert
2922
- unused
3023
- whitespace
31-
32-
linters-settings:
33-
goimports:
34-
local-prefixes: sigs.k8s.io/custom-metrics-apiserver
35-
misspell:
36-
ignore-words:
37-
- "creater" # Cf. e.g. https://pkg.go.dev/k8s.io/apimachinery@v0.24.3/pkg/runtime#ObjectCreater
24+
settings:
25+
misspell:
26+
ignore-rules:
27+
- creater
28+
exclusions:
29+
generated: lax
30+
presets:
31+
- comments
32+
- common-false-positives
33+
- legacy
34+
- std-error-handling
35+
paths:
36+
- third_party$
37+
- builtin$
38+
- examples$
39+
formatters:
40+
enable:
41+
- gofmt
42+
- goimports
43+
settings:
44+
goimports:
45+
local-prefixes:
46+
- sigs.k8s.io/custom-metrics-apiserver
47+
exclusions:
48+
generated: lax
49+
paths:
50+
- third_party$
51+
- builtin$
52+
- examples$

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GOPATH:=$(shell go env GOPATH)
77

88
VERSION?=latest
99

10-
GOLANGCI_VERSION:=1.64.8
10+
GOLANGCI_VERSION:=2.1.6
1111

1212
.PHONY: all
1313
all: build-test-adapter
@@ -48,7 +48,7 @@ build-test-adapter: update-generated
4848
# Format and lint
4949
# ---------------
5050

51-
HAS_GOLANGCI_VERSION:=$(shell $(GOPATH)/bin/golangci-lint version --format=short)
51+
HAS_GOLANGCI_VERSION:=$(shell $(GOPATH)/bin/golangci-lint version --short)
5252
.PHONY: golangci
5353
golangci:
5454
ifneq ($(HAS_GOLANGCI_VERSION), $(GOLANGCI_VERSION))

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module sigs.k8s.io/custom-metrics-apiserver
22

33
go 1.24.0
44

5-
toolchain go1.24.2
5+
toolchain go1.24.3
66

77
require (
88
github.com/emicklei/go-restful/v3 v3.12.2

0 commit comments

Comments
 (0)