vendor: github.com/golang/snappy v1.0.0#3685
vendor: github.com/golang/snappy v1.0.0#3685tonistiigi merged 1 commit intodocker:masterfrom
Conversation
Ensure arm64 frame sizes are 8 (mod 16) fixes: "Weird failure when building on Raspbian / Debian 10.11" full diff: golang/snappy@v0.0.4...v1.0.0 Signed-off-by: Sebastiaan van Stijn <[email protected]>
|
FWIW; this version matches what GitHub uses; https://github.com/cli/cli/blob/7a590331b599a0ac60e55225dc26c79c8b0d51a0/go.mod#L26 I noticed that this module has been archived though; wondering if GitHub (if they define this format to use) is considering alternatives 🤔
|
|
Ah! Looks like https://pkg.go.dev/github.com/klauspost/compress/snappy
And... apparently https://pkg.go.dev/github.com/klauspost/compress/s2#section-readme
|
|
Oh! And looks like snappy there is a wrapper around s2, so no need to choose really; // Decode returns the decoded form of src. The returned slice may be a sub-
// slice of dst if dst was large enough to hold the entire decoded block.
// Otherwise, a newly allocated slice will be returned.
//
// The dst and src must not overlap. It is valid to pass a nil dst.
//
// Decode handles the Snappy block format, not the Snappy stream format.
func Decode(dst, src []byte) ([]byte, error) {
return s2.Decode(dst, src)
} |
|

Ensure arm64 frame sizes are 8 (mod 16)
fixes: "Weird failure when building on Raspbian / Debian 10.11"
full diff: golang/snappy@v0.0.4...v1.0.0