Skip to content

Commit c2fe179

Browse files
remove sha256-simd support we do not need it anymore (#1958)
we have moved to go1.21 as the least Go version we would support for minio-go/v7 - and move to crypto/sha256 Bonus: move to go-json
1 parent 0e5a768 commit c2fe179

15 files changed

+128
-859
lines changed

CREDITS

+89-684
Large diffs are not rendered by default.

api-bucket-notification.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"net/url"
2727
"time"
2828

29-
jsoniter "github.com/json-iterator/go"
29+
"github.com/goccy/go-json"
3030
"github.com/minio/minio-go/v7/pkg/notification"
3131
"github.com/minio/minio-go/v7/pkg/s3utils"
3232
)
@@ -207,7 +207,6 @@ func (c *Client) ListenBucketNotification(ctx context.Context, bucketName, prefi
207207
// Use a higher buffer to support unexpected
208208
// caching done by proxies
209209
bio.Buffer(notificationEventBuffer, notificationCapacity)
210-
json := jsoniter.ConfigCompatibleWithStandardLibrary
211210

212211
// Unmarshal each line, returns marshaled values.
213212
for bio.Scan() {

examples/minio/go.mod

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ require github.com/minio/minio-go/v7 v7.0.49
66

77
require (
88
github.com/dustin/go-humanize v1.0.1 // indirect
9+
github.com/goccy/go-json v0.10.2 // indirect
910
github.com/google/uuid v1.6.0 // indirect
10-
github.com/json-iterator/go v1.1.12 // indirect
1111
github.com/klauspost/compress v1.17.6 // indirect
1212
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
1313
github.com/minio/md5-simd v1.1.2 // indirect
14-
github.com/minio/sha256-simd v1.0.1 // indirect
15-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
16-
github.com/modern-go/reflect2 v1.0.2 // indirect
1714
github.com/rs/xid v1.5.0 // indirect
1815
github.com/stretchr/testify v1.7.0 // indirect
1916
golang.org/x/crypto v0.21.0 // indirect

examples/minio/go.sum

+2-11
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,22 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
33
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
44
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
55
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
6-
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
6+
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
7+
github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
78
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
89
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
9-
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
10-
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
1110
github.com/klauspost/compress v1.17.6 h1:60eq2E/jlfwQXtvZEeBUYADs+BwKBWURIY+Gj2eRGjI=
1211
github.com/klauspost/compress v1.17.6/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM=
1312
github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
1413
github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc=
1514
github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
1615
github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34=
1716
github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM=
18-
github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM=
19-
github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8=
20-
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
21-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
22-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
23-
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
24-
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
2517
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
2618
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2719
github.com/rs/xid v1.5.0 h1:mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc=
2820
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
2921
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
30-
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
3122
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
3223
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
3324
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=

examples/s3/go.mod

+11-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,24 @@ require (
66
github.com/cheggaaa/pb v1.0.29
77
github.com/minio/minio-go/v7 v7.0.49
88
github.com/minio/sio v0.3.0
9-
golang.org/x/crypto v0.19.0
9+
golang.org/x/crypto v0.21.0
1010
)
1111

1212
require (
13+
github.com/dustin/go-humanize v1.0.1 // indirect
14+
github.com/goccy/go-json v0.10.2 // indirect
15+
github.com/google/uuid v1.6.0 // indirect
1316
github.com/klauspost/compress v1.17.6 // indirect
1417
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
1518
github.com/mattn/go-runewidth v0.0.14 // indirect
19+
github.com/minio/md5-simd v1.1.2 // indirect
20+
github.com/pmezard/go-difflib v1.0.0 // indirect
1621
github.com/rivo/uniseg v0.4.4 // indirect
22+
github.com/rs/xid v1.5.0 // indirect
23+
golang.org/x/net v0.23.0 // indirect
24+
golang.org/x/sys v0.18.0 // indirect
25+
golang.org/x/text v0.14.0 // indirect
26+
gopkg.in/ini.v1 v1.67.0 // indirect
1727
)
1828

1929
replace github.com/minio/minio-go/v7 v7.0.49 => ../..

0 commit comments

Comments
 (0)