Skip to content

Commit 48166b4

Browse files
committed
chore: update dependencies, and linter
1 parent ec006d3 commit 48166b4

4 files changed

Lines changed: 32 additions & 33 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
env:
1616
GO_VERSION: stable
17-
GOLANGCI_LINT_VERSION: v1.61.0
17+
GOLANGCI_LINT_VERSION: v1.62.2
1818
CGO_ENABLED: 0
1919

2020
steps:

.golangci.yml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
1-
run:
2-
timeout: 5m
1+
linters:
2+
enable-all: true
3+
disable:
4+
- exportloopref # deprecated
5+
- sqlclosecheck # not relevant (SQL)
6+
- rowserrcheck # not relevant (SQL)
7+
- cyclop # duplicate of gocyclo
8+
- lll
9+
- dupl
10+
- prealloc
11+
- wsl
12+
- nlreturn
13+
- mnd
14+
- testpackage
15+
- paralleltest
16+
- tparallel
17+
- err113
18+
- wrapcheck
19+
- exhaustive
20+
- exhaustruct
21+
- varnamelen
22+
- nilnil
323

424
linters-settings:
525
govet:
@@ -61,31 +81,6 @@ linters-settings:
6181
- G301 # Expect directory permissions to be 0750 or less
6282
- G306 # Expect WriteFile permissions to be 0600 or less
6383

64-
linters:
65-
enable-all: true
66-
disable:
67-
- gomnd # deprecated
68-
- execinquery # deprecated
69-
- exportloopref # deprecated
70-
- sqlclosecheck # not relevant (SQL)
71-
- rowserrcheck # not relevant (SQL)
72-
- cyclop # duplicate of gocyclo
73-
- lll
74-
- dupl
75-
- prealloc
76-
- wsl
77-
- nlreturn
78-
- mnd
79-
- testpackage
80-
- paralleltest
81-
- tparallel
82-
- err113
83-
- wrapcheck
84-
- exhaustive
85-
- exhaustruct
86-
- varnamelen
87-
- nilnil
88-
8984
issues:
9085
exclude-use-default: false
9186
max-issues-per-linter: 0
@@ -105,3 +100,6 @@ output:
105100
sort-order:
106101
- linter
107102
- file
103+
104+
run:
105+
timeout: 5m

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.23.0
55
require (
66
github.com/charmbracelet/lipgloss v1.0.0
77
github.com/fsnotify/fsnotify v1.8.0
8-
github.com/go-acme/lego/v4 v4.20.2
8+
github.com/go-acme/lego/v4 v4.20.4
99
github.com/kvtools/boltdb v1.0.2
1010
github.com/kvtools/consul v1.0.2
1111
github.com/kvtools/etcdv2 v1.0.2
@@ -15,7 +15,7 @@ require (
1515
github.com/mitchellh/go-homedir v1.1.0
1616
github.com/spf13/cobra v1.8.1
1717
github.com/spf13/viper v1.19.0
18-
github.com/stretchr/testify v1.9.0
18+
github.com/stretchr/testify v1.10.0
1919
github.com/traefik/traefik/v2 v2.11.14
2020
github.com/traefik/traefik/v3 v3.2.1
2121
)

go.sum

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q
289289
github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA=
290290
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
291291
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
292-
github.com/go-acme/lego/v4 v4.20.2 h1:ZwO3oLZb8fL6up1OZVJP3yHuvqhozzlEmyqKmhrPchQ=
293-
github.com/go-acme/lego/v4 v4.20.2/go.mod h1:foauPlhnhoq8WUphaWx5U04uDc+JGhk4ZZtPz/Vqsjg=
292+
github.com/go-acme/lego/v4 v4.20.4 h1:yCQGBX9jOfMbriEQUocdYm7EBapdTp8nLXYG8k6SqSU=
293+
github.com/go-acme/lego/v4 v4.20.4/go.mod h1:foauPlhnhoq8WUphaWx5U04uDc+JGhk4ZZtPz/Vqsjg=
294294
github.com/go-cmd/cmd v1.0.5/go.mod h1:y8q8qlK5wQibcw63djSl/ntiHUHXHGdCkPk0j4QeW4s=
295295
github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=
296296
github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
@@ -941,8 +941,9 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
941941
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
942942
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
943943
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
944-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
945944
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
945+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
946+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
946947
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
947948
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
948949
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=

0 commit comments

Comments
 (0)