Skip to content

Commit 70f1209

Browse files
committed
Updated to v0.8.0
1 parent ac6132f commit 70f1209

File tree

6 files changed

+115
-109
lines changed

6 files changed

+115
-109
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- name: Setup Go
20-
uses: actions/setup-go@v3
20+
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.21
22+
go-version: 1.23
2323

2424
- name: Caching
25-
uses: actions/cache@v3
25+
uses: actions/cache@v4
2626
with:
2727
path: ~/go/pkg/mod
2828
key: go-${{ hashFiles('**/go.sum') }}
@@ -35,21 +35,13 @@ jobs:
3535
run: go mod verify
3636

3737
- name: Codestyle
38-
uses: golangci/golangci-lint-action@v2
39-
with:
40-
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
41-
version: latest
42-
43-
# Optional: working directory, useful for monorepos
44-
working-directory: ./
45-
46-
# Optional: golangci-lint command line arguments.
47-
args: --timeout 200s --build-tags=musl
38+
uses: golangci/golangci-lint-action@v8
4839

4940
- name: Golang Vulncheck
50-
uses: Templum/govulncheck-action@v0.10.1
41+
uses: Templum/govulncheck-action@v1.0.2
5142
with:
52-
go-version: latest
43+
go-version: 1.23
5344
vulncheck-version: latest
5445
fail-on-vuln: true
46+
skip-upload: true
5547
package: ./...

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: Setup Go
19-
uses: actions/setup-go@v3
19+
uses: actions/setup-go@v5
2020
with:
21-
go-version: 1.21
21+
go-version: 1.23
2222

2323
- name: Caching
24-
uses: actions/cache@v3
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/go/pkg/mod
2727
key: go-${{ hashFiles('**/go.sum') }}

.golangci.yml

Lines changed: 67 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,11 @@
1-
# Options for analysis running
2-
linters-settings:
3-
dupl:
4-
threshold: 100
5-
gci:
6-
sections:
7-
- standard
8-
- default
9-
- prefix(github.com/bitonicnl/verify-signed-message)
10-
- blank
11-
- dot
12-
skip-generated: false
13-
custom-order: true
14-
goconst:
15-
min-len: 2
16-
min-occurrences: 2
17-
gocritic:
18-
enabled-tags:
19-
- diagnostic
20-
- experimental
21-
- opinionated
22-
- performance
23-
- style
24-
goimports:
25-
local-prefixes: github.com/bitonicnl/verify-signed-message
26-
misspell:
27-
locale: US
1+
version: "2"
2+
3+
output:
4+
formats:
5+
text:
6+
path: stdout
7+
print-linter-name: true
8+
print-issued-lines: true
289

2910
linters:
3011
enable:
@@ -39,15 +20,13 @@ linters:
3920
- dupl
4021
- dupword
4122
- durationcheck
42-
- errcheck
4323
- errchkjson
4424
- errname
4525
- errorlint
4626
- exhaustive
4727
- exhaustruct
4828
- forbidigo
4929
- forcetypeassert
50-
- gci
5130
- ginkgolinter
5231
- gocheckcompilerdirectives
5332
- gochecknoglobals
@@ -58,21 +37,15 @@ linters:
5837
- gocritic
5938
- gocyclo
6039
- godot
61-
- gofmt
62-
- gofumpt
6340
- goheader
64-
- goimports
6541
- gomoddirectives
6642
- gomodguard
6743
- goprintffuncname
6844
- gosec
69-
- gosimple
7045
- gosmopolitan
71-
- govet
7246
- grouper
7347
- importas
7448
- inamedparam
75-
- ineffassign
7649
- interfacebloat
7750
- ireturn
7851
- loggercheck
@@ -103,44 +76,80 @@ linters:
10376
- spancheck
10477
- sqlclosecheck
10578
- staticcheck
106-
- stylecheck
10779
- tagalign
10880
- tagliatelle
109-
- tenv
11081
- testableexamples
11182
- testifylint
11283
- testpackage
11384
- thelper
11485
- tparallel
115-
- typecheck
11686
- unconvert
11787
- unparam
118-
- unused
11988
- usestdlibvars
12089
- wastedassign
12190
- whitespace
12291
- zerologlint
92+
settings:
93+
dupl:
94+
threshold: 100
95+
goconst:
96+
min-len: 2
97+
min-occurrences: 2
98+
gocritic:
99+
enabled-tags:
100+
- diagnostic
101+
- experimental
102+
- opinionated
103+
- performance
104+
- style
105+
misspell:
106+
locale: US
107+
exclusions:
108+
generated: lax
109+
presets:
110+
- comments
111+
- common-false-positives
112+
- legacy
113+
- std-error-handling
114+
rules:
115+
- linters:
116+
- dupword
117+
- exhaustruct
118+
path: _test\.go
119+
paths:
120+
- third_party$
121+
- builtin$
122+
- examples$
123123

124124
issues:
125-
# Show only new issues: if there are unstaged changes or untracked files,
126-
# only those changes are analyzed, else only changes in HEAD~ are analyzed.
127125
new: false
128126

129-
# Excluding configuration per-path, per-linter, per-text and per-source
130-
exclude-rules:
131-
# Exclude some linters from running on tests files
132-
- path: _test\.go
133-
linters:
134-
- dupword
135-
- exhaustruct
136-
137-
# output configuration options
138-
output:
139-
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
140-
formats: [ { format: colored-line-number } ]
141-
142-
# print lines of code with issue, default is true
143-
print-issued-lines: true
127+
formatters:
128+
enable:
129+
- gci
130+
- gofmt
131+
- gofumpt
132+
- goimports
133+
settings:
134+
gci:
135+
sections:
136+
- standard
137+
- default
138+
- prefix(github.com/bitonicnl/verify-signed-message)
139+
- blank
140+
- dot
141+
custom-order: true
142+
goimports:
143+
local-prefixes:
144+
- github.com/bitonicnl/verify-signed-message
145+
exclusions:
146+
generated: lax
147+
paths:
148+
- third_party$
149+
- builtin$
150+
- examples$
144151

145-
# print linter name in the end of issue text, default is true
146-
print-linter-name: true
152+
run:
153+
modules-download-mode: readonly
154+
allow-parallel-runners: true
155+
allow-serial-runners: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
## Requirements
1313

14-
- Golang 1.21+
14+
- Golang 1.23+
1515

1616
## Installation
1717

@@ -84,4 +84,4 @@ Contributions, issues and feature requests are welcome.
8484

8585
## License
8686

87-
Copyright © 2020-2024 Bitonic. This project is [ISC](/LICENSE) licensed.
87+
Copyright © 2020-2025 Bitonic. This project is [ISC](/LICENSE) licensed.

go.mod

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
module github.com/bitonicnl/verify-signed-message
22

3-
go 1.21
3+
go 1.23.0
4+
5+
toolchain go1.23.9
46

57
require (
68
github.com/btcsuite/btcd v0.24.2
79
github.com/btcsuite/btcd/btcec/v2 v2.3.4
810
github.com/btcsuite/btcd/btcutil v1.1.6
911
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
10-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0
11-
github.com/samber/lo v1.47.0
12-
github.com/stretchr/testify v1.9.0
12+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0
13+
github.com/samber/lo v1.50.0
14+
github.com/stretchr/testify v1.10.0
1315
)
1416

1517
require (
16-
github.com/btcsuite/btclog v0.0.0-20241017175713-3428138b75c7 // indirect
17-
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
18+
github.com/btcsuite/btclog v1.0.0 // indirect
19+
github.com/davecgh/go-spew v1.1.1 // indirect
1820
github.com/decred/dcrd/crypto/blake256 v1.1.0 // indirect
19-
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
20-
golang.org/x/crypto v0.28.0 // indirect
21-
golang.org/x/sys v0.26.0 // indirect
22-
golang.org/x/text v0.19.0 // indirect
21+
github.com/pmezard/go-difflib v1.0.0 // indirect
22+
golang.org/x/crypto v0.38.0 // indirect
23+
golang.org/x/sys v0.33.0 // indirect
24+
golang.org/x/text v0.25.0 // indirect
2325
gopkg.in/yaml.v3 v3.0.1 // indirect
2426
)

0 commit comments

Comments
 (0)