Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
github.com/gophercloud/gophercloud/v2 v2.12.0
github.com/gorilla/mux v1.8.1
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/klauspost/compress v1.18.1
github.com/opencontainers/distribution-spec/specs-go v0.0.0-20260422183030-ed885fa76559
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.1.1
Expand Down
4 changes: 4 additions & 0 deletions internal/models/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package models
import (
"time"

"github.com/klauspost/compress/zstd"
"github.com/opencontainers/go-digest"
. "go.xyrillian.de/gg/option"
)
Expand Down Expand Up @@ -42,6 +43,9 @@ func (b Blob) SafeMediaType() string {
return b.MediaType
}

// TODO: start using compress/zstd, this is a temporary measure to pull it into the vendor/ dir and reduce the size of the actual PR
var _ = zstd.MinWindowSize

const (
// BlobValidationInterval is how often each blob will be validated by BlobValidationJob.
// This is here instead of near the job because package processor also needs to know it.
Expand Down
2 changes: 2 additions & 0 deletions vendor/github.com/klauspost/compress/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions vendor/github.com/klauspost/compress/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 123 additions & 0 deletions vendor/github.com/klauspost/compress/.goreleaser.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading