Skip to content

Commit 96d7450

Browse files
committed
Merge branch 'master' into s2-add-compression-estimate
# Conflicts: # s2/_generate/gen.go # s2/encode_go.go
2 parents cfe7024 + 7e21226 commit 96d7450

File tree

17 files changed

+9595
-7519
lines changed

17 files changed

+9595
-7519
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
go-version: [1.17.x, 1.18.x, 1.19.x]
14+
go-version: [1.18.x, 1.19.x, 1.20.x]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616
env:
1717
CGO_ENABLED: 0
@@ -48,7 +48,7 @@ jobs:
4848
- name: Set up Go
4949
uses: actions/setup-go@v2
5050
with:
51-
go-version: 1.19.x
51+
go-version: 1.20.x
5252

5353
- name: Checkout code
5454
uses: actions/checkout@v2
@@ -70,7 +70,7 @@ jobs:
7070
- name: Set up Go
7171
uses: actions/setup-go@v2
7272
with:
73-
go-version: 1.19.x
73+
go-version: 1.20.x
7474

7575
- name: Checkout code
7676
uses: actions/checkout@v2
@@ -85,7 +85,7 @@ jobs:
8585
run: go build github.com/klauspost/compress/s2/cmd/s2c && go build github.com/klauspost/compress/s2/cmd/s2d&&./s2c -verify s2c &&./s2d s2c.s2&&rm ./s2c&&rm s2d&&rm s2c.s2
8686

8787
- name: install garble
88-
run: go install mvdan.cc/garble@v0.7.2
88+
run: go install mvdan.cc/garble@v0.9.2
8989

9090
- name: goreleaser deprecation
9191
run: curl -sfL https://git.io/goreleaser | VERSION=v1.9.2 sh -s -- check

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
name: Set up Go
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: 1.19.x
21+
go-version: 1.20.x
2222
-
2323
name: install garble
24-
run: go install mvdan.cc/garble@v0.7.2
24+
run: go install mvdan.cc/garble@v0.9.2
2525
-
2626
name: Run GoReleaser
2727
uses: goreleaser/goreleaser-action@v2

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
before:
44
hooks:
55
- ./gen.sh
6-
- go install mvdan.cc/garble@v0.7.2
6+
- go install mvdan.cc/garble@v0.9.3
77

88
builds:
99
-

huff0/decompress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func ReadTable(in []byte, s *Scratch) (s2 *Scratch, remain []byte, err error) {
6161
b, err := fse.Decompress(in[:iSize], s.fse)
6262
s.fse.Out = nil
6363
if err != nil {
64-
return s, nil, err
64+
return s, nil, fmt.Errorf("fse decompress returned: %w", err)
6565
}
6666
if len(b) > 255 {
6767
return s, nil, errors.New("corrupt input: output table too large")

internal/lz4ref/LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (c) 2015, Pierre Curto
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of xxHash nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+

0 commit comments

Comments
 (0)