Skip to content

Commit 445d367

Browse files
committed
fix(deps): update all dependencies
Signed-off-by: Christian Stewart <christian@aperture.us>
1 parent b2e3a3b commit 445d367

File tree

6 files changed

+35
-41
lines changed

6 files changed

+35
-41
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ jobs:
3434
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535

3636
- name: Setup Go ${{ matrix.go }}
37-
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
37+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
3838
with:
3939
go-version: ${{ matrix.go }}
4040

4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
42+
uses: github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
4343
with:
4444
languages: ${{ matrix.language }}
4545

4646
- name: Build Go
4747
run: go build -mod=readonly -v ./...
4848

4949
- name: Perform CodeQL Analysis
50-
uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
50+
uses: github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
- name: 'Checkout Repository'
1818
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
- name: 'Dependency Review'
20-
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
20+
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 # v4.6.0

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323

2424
- name: Setup Go ${{ matrix.go }}
25-
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
25+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
2626
with:
2727
go-version: ${{ matrix.go }}
2828

cmd/kvfile/main.go

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"context"
45
"encoding/json"
56
"fmt"
67
"io"
@@ -11,7 +12,7 @@ import (
1112
kvfile_compress "github.com/aperturerobotics/go-kvfile/compress"
1213
b58 "github.com/mr-tron/base58/base58"
1314
"github.com/pkg/errors"
14-
"github.com/urfave/cli/v2"
15+
"github.com/urfave/cli/v3"
1516
)
1617

1718
var (
@@ -24,11 +25,11 @@ var (
2425
)
2526

2627
func main() {
27-
app := &cli.App{
28+
app := &cli.Command{
2829
Name: "kvfile",
2930
Usage: "A CLI tool for working with key-value files",
30-
Authors: []*cli.Author{
31-
{Name: "Christian Stewart", Email: "christian@aperture.us"},
31+
Authors: []any{
32+
"Christian Stewart <christian@aperture.us>",
3233
},
3334
Flags: []cli.Flag{
3435
&cli.BoolFlag{
@@ -61,7 +62,7 @@ func main() {
6162
{
6263
Name: "count",
6364
Usage: "Print the number of keys in a k/v file.",
64-
Action: func(c *cli.Context) error {
65+
Action: func(ctx context.Context, c *cli.Command) error {
6566
reader, rel, err := openKVFile(filePath)
6667
if rel != nil {
6768
defer rel()
@@ -78,7 +79,7 @@ func main() {
7879
{
7980
Name: "keys",
8081
Usage: "Print all keys in a k/v file in sorted order.",
81-
Action: func(c *cli.Context) error {
82+
Action: func(ctx context.Context, c *cli.Command) error {
8283
reader, rel, err := openKVFile(filePath)
8384
if rel != nil {
8485
defer rel()
@@ -93,7 +94,7 @@ func main() {
9394
{
9495
Name: "values",
9596
Usage: "Print all key-value pairs in a k/v file.",
96-
Action: func(c *cli.Context) error {
97+
Action: func(ctx context.Context, c *cli.Command) error {
9798
reader, rel, err := openKVFile(filePath)
9899
if rel != nil {
99100
defer rel()
@@ -116,7 +117,7 @@ func main() {
116117
Destination: &keyStr,
117118
},
118119
},
119-
Action: func(c *cli.Context) error {
120+
Action: func(ctx context.Context, c *cli.Command) error {
120121
if keyStr == "" {
121122
return fmt.Errorf("please provide a key")
122123
}
@@ -151,7 +152,7 @@ func main() {
151152
Destination: &valueStr,
152153
},
153154
},
154-
Action: func(c *cli.Context) error {
155+
Action: func(ctx context.Context, c *cli.Command) error {
155156
if filePath == "" {
156157
return fmt.Errorf("please provide a file path")
157158
}
@@ -190,7 +191,7 @@ func main() {
190191
},
191192
}
192193

193-
err := app.Run(os.Args)
194+
err := app.Run(context.Background(), os.Args)
194195
if err != nil {
195196
os.Stderr.WriteString(err.Error() + "\n")
196197
os.Exit(1)

go.mod

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
module github.com/aperturerobotics/go-kvfile
22

3-
go 1.22
3+
go 1.24
4+
5+
toolchain go1.24.1
46

57
require (
6-
github.com/aperturerobotics/common v0.20.3 // master
8+
github.com/aperturerobotics/common v0.21.2 // master
79
github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20240713111131-be6bf89c3008 // indirect
8-
github.com/aperturerobotics/protobuf-go-lite v0.8.0 // latest
10+
github.com/aperturerobotics/protobuf-go-lite v0.8.1 // latest
911
)
1012

1113
require (
1214
github.com/SaveTheRbtz/zstd-seekable-format-go v0.6.1
13-
github.com/klauspost/compress v1.17.11
15+
github.com/klauspost/compress v1.18.0
1416
github.com/mr-tron/base58 v1.2.0
1517
github.com/pkg/errors v0.9.1
16-
github.com/urfave/cli/v2 v2.27.5
18+
github.com/urfave/cli/v3 v3.1.1
1719
)
1820

1921
require (
2022
github.com/cespare/xxhash/v2 v2.2.0 // indirect
21-
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
2223
github.com/google/btree v1.1.2 // indirect
23-
github.com/russross/blackfriday/v2 v2.1.0 // indirect
24-
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
2524
go.uber.org/atomic v1.10.0 // indirect
2625
go.uber.org/multierr v1.9.0 // indirect
2726
go.uber.org/zap v1.24.0 // indirect

go.sum

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
11
github.com/SaveTheRbtz/zstd-seekable-format-go v0.6.1 h1:VuaOpU/0Aklkjcq8KBisGC862WTlf8bPbW3hqBrR6gs=
22
github.com/SaveTheRbtz/zstd-seekable-format-go v0.6.1/go.mod h1:IfUnG57D5yphwHgIIeIl74Gp5VCu74GsE7h3riM4cxs=
3-
github.com/aperturerobotics/common v0.20.3 h1:pzcwAbLdyC4sgHOquGTkwK1ww/LlPscxiNpJ3u0Upg8=
4-
github.com/aperturerobotics/common v0.20.3/go.mod h1:S2yc+bp5PoLn0PHOAt+XXGsC50sA0MU9GF3q6FyEs9U=
3+
github.com/aperturerobotics/common v0.21.2 h1:fqnPL5Oovpd8nDaNBYGiD1UpZhcH/JfpsS8gt5iBDyA=
4+
github.com/aperturerobotics/common v0.21.2/go.mod h1:FrecdNcsYvVS8RcWCR8FUkKFh+XmouFOYKHpBdMqqBA=
55
github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20240713111131-be6bf89c3008 h1:So9JeziaWKx2Fw8sK4AUN/szqKtJ0jEMhS6bU4sHbxs=
66
github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20240713111131-be6bf89c3008/go.mod h1:snaApCEDtrHHP6UWSLKiYNOZU9A5NyzccKenx9oZEzg=
7-
github.com/aperturerobotics/protobuf-go-lite v0.8.0 h1:SoiTAVArmOrNTX31e6CC5Bem6HuOElg3YYNhp4AAPQc=
8-
github.com/aperturerobotics/protobuf-go-lite v0.8.0/go.mod h1:y49wVEezRHg78uQ2OzLLZbtTTWuox+ChmaTuh6FLJW8=
7+
github.com/aperturerobotics/protobuf-go-lite v0.8.1 h1:CcBvqWOSep4VF3pPp+ZLcYQwPQu2kGOvL3bbF71bzKE=
8+
github.com/aperturerobotics/protobuf-go-lite v0.8.1/go.mod h1:6AD6TgBrC+aWprTirXrUASFvTbuIRAsuDLBNUthzcyA=
99
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
1010
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
1111
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
1212
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
13-
github.com/cpuguy83/go-md2man/v2 v2.0.5 h1:ZtcqGrnekaHpVLArFSe4HK5DoKx1T0rq2DwVB0alcyc=
14-
github.com/cpuguy83/go-md2man/v2 v2.0.5/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
1513
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
1614
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1715
github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU=
1816
github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4=
19-
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
20-
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
21-
github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc=
22-
github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0=
17+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
18+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
19+
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
20+
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
2321
github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
2422
github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
2523
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
2624
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
2725
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
2826
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
29-
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
30-
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
31-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
32-
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
33-
github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
34-
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
35-
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
36-
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
27+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
28+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
29+
github.com/urfave/cli/v3 v3.1.1 h1:bNnl8pFI5dxPOjeONvFCDFoECLQsceDG4ejahs4Jtxk=
30+
github.com/urfave/cli/v3 v3.1.1/go.mod h1:FJSKtM/9AiiTOJL4fJ6TbMUkxBXn7GO9guZqoZtpYpo=
3731
go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ=
3832
go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
3933
go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI=

0 commit comments

Comments
 (0)