Skip to content

Commit 6868d27

Browse files
committed
replace github.com/golang/snappy with klauspost/compress/snappy
The github.com/golang/snappy repository was archived and is no longer maintained. klauspost/compress provides a drop-in replacement, which is actively maintained, and the klauspost/compress module is already an existing (indirect) dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent b626711 commit 6868d27

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ require (
2626
github.com/distribution/reference v0.6.0
2727
github.com/gabriel-vasile/mimetype v1.4.13
2828
github.com/gdamore/tcell/v2 v2.13.8
29-
github.com/golang/snappy v1.0.0
3029
github.com/google/go-cmp v0.7.0
3130
github.com/google/go-containerregistry v0.21.3
3231
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
@@ -36,6 +35,7 @@ require (
3635
github.com/in-toto/attestation v1.1.2
3736
github.com/joho/godotenv v1.5.1
3837
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
38+
github.com/klauspost/compress v1.18.4
3939
github.com/mattn/go-colorable v0.1.14
4040
github.com/mattn/go-isatty v0.0.20
4141
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
@@ -138,7 +138,6 @@ require (
138138
github.com/itchyny/gojq v0.12.17 // indirect
139139
github.com/itchyny/timefmt-go v0.1.6 // indirect
140140
github.com/jedisct1/go-minisign v0.0.0-20241212093149-d2f9f49435c7 // indirect
141-
github.com/klauspost/compress v1.18.4 // indirect
142141
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
143142
github.com/mattn/go-runewidth v0.0.20 // indirect
144143
github.com/microcosm-cc/bluemonday v1.0.27 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9v
277277
github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
278278
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
279279
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
280-
github.com/golang/snappy v1.0.0 h1:Oy607GVXHs7RtbggtPBnr2RmDArIsAefDwvrdWvRhGs=
281-
github.com/golang/snappy v1.0.0/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
282280
github.com/google/certificate-transparency-go v1.3.2 h1:9ahSNZF2o7SYMaKaXhAumVEzXB2QaayzII9C8rv7v+A=
283281
github.com/google/certificate-transparency-go v1.3.2/go.mod h1:H5FpMUaGa5Ab2+KCYsxg6sELw3Flkl7pGZzWdBoYLXs=
284282
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=

pkg/cmd/attestation/api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/cenkalti/backoff/v4"
1212
"github.com/cli/cli/v2/api"
1313
ioconfig "github.com/cli/cli/v2/pkg/cmd/attestation/io"
14-
"github.com/golang/snappy"
14+
"github.com/klauspost/compress/snappy"
1515
v1 "github.com/sigstore/protobuf-specs/gen/pb-go/bundle/v1"
1616
"github.com/sigstore/sigstore-go/pkg/bundle"
1717
"golang.org/x/sync/errgroup"

pkg/cmd/attestation/api/mock_httpClient_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync"
99

1010
"github.com/cli/cli/v2/pkg/cmd/attestation/test/data"
11-
"github.com/golang/snappy"
11+
"github.com/klauspost/compress/snappy"
1212
"github.com/stretchr/testify/mock"
1313
)
1414

0 commit comments

Comments
 (0)