Skip to content

Commit e5266f5

Browse files
committed
update to go 1.25, update deps
1 parent 6fa87ee commit e5266f5

File tree

4 files changed

+55
-49
lines changed

4 files changed

+55
-49
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
- uses: actions/checkout@v3
2222
- uses: actions/setup-go@v3
2323
with:
24-
go-version: '^1.23'
24+
go-version: '^1.25'
2525
- uses: cachix/install-nix-action@v27
2626
with:
2727
nix_path: nixpkgs=channel:nixos-unstable
2828
- name: Install Dependencies
2929
run: |
3030
go install github.com/mattn/goveralls@latest
31-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.64.5
31+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.4.0
3232
- name: Build & Test
3333
run: |
3434
make build

.golangci.yml

Lines changed: 42 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
1-
---
2-
linters-settings:
3-
dupl:
4-
threshold: 100
5-
funlen:
6-
lines: 100
7-
statements: 50
8-
goconst:
9-
min-len: 2
10-
min-occurrences: 2
11-
gocritic:
12-
enabled-tags:
13-
- diagnostic
14-
- experimental
15-
- opinionated
16-
- performance
17-
- style
18-
disabled-checks:
19-
gocyclo:
20-
min-complexity: 15
21-
goimports:
22-
local-prefixes: github.com/atomicptr/crab
23-
golint:
24-
min-confidence: 0.8
25-
lll:
26-
line-length: 120
27-
maligned:
28-
suggest-new: true
29-
misspell:
30-
locale: US
31-
32-
run:
33-
timeout: 5m
34-
1+
version: "2"
2+
linters:
3+
settings:
4+
dupl:
5+
threshold: 100
6+
funlen:
7+
lines: 100
8+
statements: 50
9+
goconst:
10+
min-len: 2
11+
min-occurrences: 2
12+
gocritic:
13+
enabled-tags:
14+
- diagnostic
15+
- experimental
16+
- opinionated
17+
- performance
18+
- style
19+
gocyclo:
20+
min-complexity: 15
21+
lll:
22+
line-length: 120
23+
misspell:
24+
locale: US
25+
exclusions:
26+
generated: lax
27+
paths:
28+
- test
29+
- third_party$
30+
- builtin$
31+
- examples$
3532
issues:
3633
max-same-issues: 0
37-
exclude-use-default: false
38-
exclude-dirs:
39-
- test
34+
formatters:
35+
settings:
36+
goimports:
37+
local-prefixes:
38+
- github.com/atomicptr/crab
39+
exclusions:
40+
generated: lax
41+
paths:
42+
- third_party$
43+
- builtin$
44+
- examples$

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module github.com/atomicptr/crab
22

3-
go 1.23.6
3+
go 1.25.0
44

55
require (
6-
github.com/beevik/etree v1.5.0
6+
github.com/beevik/etree v1.6.0
77
github.com/pkg/errors v0.9.1
8-
github.com/spf13/cobra v1.9.1
8+
github.com/spf13/cobra v1.10.1
99
github.com/stretchr/testify v1.8.1
1010
)
1111

1212
require (
1313
github.com/davecgh/go-spew v1.1.1 // indirect
1414
github.com/inconshreveable/mousetrap v1.1.0 // indirect
1515
github.com/pmezard/go-difflib v1.0.0 // indirect
16-
github.com/spf13/pflag v1.0.6 // indirect
16+
github.com/spf13/pflag v1.0.10 // indirect
1717
gopkg.in/yaml.v3 v3.0.1 // indirect
1818
)

go.sum

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/beevik/etree v1.5.0 h1:iaQZFSDS+3kYZiGoc9uKeOkUY3nYMXOKLl6KIJxiJWs=
2-
github.com/beevik/etree v1.5.0/go.mod h1:gPNJNaBGVZ9AwsidazFZyygnd+0pAU38N4D+WemwKNs=
1+
github.com/beevik/etree v1.6.0 h1:u8Kwy8pp9D9XeITj2Z0XtA5qqZEmtJtuXZRQi+j03eE=
2+
github.com/beevik/etree v1.6.0/go.mod h1:bh4zJxiIr62SOf9pRzN7UUYaEDa9HEKafK25+sLc0Gc=
33
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
44
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
55
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@@ -11,10 +11,11 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
1111
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1212
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1313
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
14-
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
15-
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
16-
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
17-
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
14+
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
15+
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
16+
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
17+
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
18+
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
1819
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
1920
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
2021
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=

0 commit comments

Comments
 (0)