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>
This commit is contained in:
Sebastiaan van Stijn 2026-03-26 22:58:08 +01:00
parent b62671151b
commit 6868d273ec
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
4 changed files with 3 additions and 6 deletions

View file

@ -11,7 +11,7 @@ import (
"github.com/cenkalti/backoff/v4"
"github.com/cli/cli/v2/api"
ioconfig "github.com/cli/cli/v2/pkg/cmd/attestation/io"
"github.com/golang/snappy"
"github.com/klauspost/compress/snappy"
v1 "github.com/sigstore/protobuf-specs/gen/pb-go/bundle/v1"
"github.com/sigstore/sigstore-go/pkg/bundle"
"golang.org/x/sync/errgroup"

View file

@ -8,7 +8,7 @@ import (
"sync"
"github.com/cli/cli/v2/pkg/cmd/attestation/test/data"
"github.com/golang/snappy"
"github.com/klauspost/compress/snappy"
"github.com/stretchr/testify/mock"
)