-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade minimum required Go version to 1.20
#2754
Conversation
cthulhu-rider
commented
Feb 27, 2024
•
edited
Loading
edited
- blocked by Update to Go 1.20 min neofs-sdk-go#553
c8de255
to
ac5b722
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2754 +/- ##
==========================================
- Coverage 28.65% 21.89% -6.76%
==========================================
Files 427 787 +360
Lines 33109 46643 +13534
==========================================
+ Hits 9486 10213 +727
- Misses 22771 35554 +12783
- Partials 852 876 +24 ☔ View full report in Codecov by Sentry. |
219f159
to
3710b3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg/util/salt.go can be improved wrt slice cloning, but looks good otherwise.
3710b3a
to
1dfc3ba
Compare
done |
Conflicts. |
1dfc3ba
to
c6eb506
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is wrong with int tests. Otherwise, I am fine except nolint
again.
Conflicts now. |
Go 1.22 was recently released. As always, we require minimum version before last. Functionality of stdlib `math/rand` package was marked as deprecated, but used for test code only. Signed-off-by: Leonard Lyubich <[email protected]>
New stdlib function was introduced in Go 1.20. It completely replaces the previously used `slice.Copy` utility. Manual `make`+`copy` no longer needed too. Closes #2251. Signed-off-by: Leonard Lyubich <[email protected]>
Starting from 1.20, std Go error system supports wrapping of multiple errors. This allows to: * wrap several errors using `fmt.Errorf`; * get rid of error-wrapping types like `logicerr.Logical`. Closes #2250. Signed-off-by: Leonard Lyubich <[email protected]>
`status.Code` function supports wrapped errors, so it's redundant to do `errors.Unwrap` before. Signed-off-by: Leonard Lyubich <[email protected]>
NeoFS SDK is full friendly with Go std error system used in `errors` package. Signed-off-by: Leonard Lyubich <[email protected]>
Signed-off-by: Leonard Lyubich <[email protected]>
c6eb506
to
2ff412c
Compare