Update go to 1.21 #985

Merged
fyrchik merged 8 commits from fyrchik/frostfs-node:update-go into master 2024-02-19 13:13:11 +00:00

8 commits

Author SHA1 Message Date
67dc7128de [#972] Drop x/exp/slices dependency
All checks were successful
Build / Build Components (1.21) (pull_request) Successful in 1m58s
DCO action / DCO (pull_request) Successful in 2m59s
Vulncheck / Vulncheck (pull_request) Successful in 2m50s
Build / Build Components (1.22) (pull_request) Successful in 3m53s
Tests and linters / Lint (pull_request) Successful in 4m50s
Tests and linters / Staticcheck (pull_request) Successful in 4m44s
Tests and linters / Tests (1.21) (pull_request) Successful in 7m54s
Tests and linters / Tests with -race (pull_request) Successful in 8m33s
Tests and linters / Tests (1.22) (pull_request) Successful in 9m11s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-14 12:36:11 +03:00
0a64ef4758 [#972] Use slices.Sort* when useful
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-14 12:36:11 +03:00
e672f16d74 [#972] Use require.ElementsMatch() where possible
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-14 12:36:11 +03:00
67ec5b15cb [#972] Adopt slices.BinarySearch()
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-14 12:36:11 +03:00
20f602e3cd [#972] Use min/max builtins
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-14 12:36:11 +03:00
7f54612ef7 [#972] pilorama: Remove removeDuplicatesInPlace()
Also, check that slices.CompareFunc() indeed passes all the tests before
removal.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-14 12:36:11 +03:00
72c78ce899 [#972] go.mod: Bump go version to go1.21
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-14 12:36:11 +03:00
4cb5f2eeb8 [#972] keyer: Use UncompressedBytes() for marshaling
elliptic.Marshal() becomes deprecated in go1.21

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-14 12:36:06 +03:00