Skip to content

Commit

Permalink
Remove snappy package (#350)
Browse files Browse the repository at this point in the history
* Remove snappy and use as a dependency.
  • Loading branch information
klauspost authored Apr 7, 2021
1 parent 04b48f7 commit 0fa83e4
Show file tree
Hide file tree
Showing 39 changed files with 161 additions and 42,250 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ install:
- go get ./...

script:
- go vet ./...
- go test -cpu=2 ./...
- go test -cpu=2 -tags=noasm ./...
- CGO_ENABLED=1 go test -cpu=1,4 -short -race ./...
Expand All @@ -30,14 +31,14 @@ jobs:
- go: 'master'
fast_finish: true
include:
- stage: misc one-off tests
- stage: other
go: 1.16.x
script:
- diff <(gofmt -d .) <(printf "")
- GOOS=linux GOARCH=386 go test -short ./... # test on 386/32 bits.
- curl -sfL https://git.io/goreleaser | VERSION=v0.157.0 sh -s -- check # check goreleaser config for deprecations
- curl -sL https://git.io/goreleaser | VERSION=v0.157.0 sh -s -- --snapshot --skip-publish --rm-dist
- stage: arm64 tests
- stage: other
arch: arm64
go:
- 1.16.x
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,6 @@ For more information see my blog post on [Fast Linear Time Compression](http://b
This is implemented on Go 1.7 as "Huffman Only" mode, though not exposed for gzip.


# snappy package

The standard snappy package has now been improved. This repo contains a copy of the snappy repo.

I would advise to use the standard package: https://github.com/golang/snappy


# license

This code is licensed under the same conditions as the original Go code. See LICENSE file.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/klauspost/compress

go 1.13

require github.com/golang/snappy v0.0.3 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
Loading

0 comments on commit 0fa83e4

Please sign in to comment.