-
Notifications
You must be signed in to change notification settings - Fork 33
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
[chore] Replaces multierr usage with go native errors package #939
Conversation
@@ -197,6 +196,7 @@ require ( | |||
go.uber.org/atomic v1.10.0 // indirect | |||
go.uber.org/dig v1.15.0 // indirect | |||
go.uber.org/fx v1.18.2 // indirect | |||
go.uber.org/multierr v1.9.0 // indirect |
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.
Can we remove this dependency altogether? (go.sum) should be updated too
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.
I assume another import from uber uses the multierr as a dep so we cannot get rid of it altogether until they update
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.
@dylanlott Can you verify?
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.
It's being imported by some other dependency of ours, but there are no more usages of multierr in our specific code that I could find.
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.
Can we remove this dependency altogether? (go.sum) should be updated too
I actually don't think go.sum needs to change, the dependency was only made indirect, and the version stayed the same, so I suspect the dependency graph stayed the same 🤔
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.
LGTM, left a couple comments on lines we can remove but changes are simple enough to
9a3c346
to
29ad7df
Compare
* fixes treestore module tests to use the bus for fetching the height provider instead of accessing it from the package
Small commit to reduce visibility of a type for in progress PR
29ad7df
to
0f87f0b
Compare
35226dd
to
f34351f
Compare
c1542a0
to
7dffd28
Compare
Co-authored-by: Daniel Olshansky <[email protected]>
Description
The recent upgrade to Go 1.20 enabled the errors package
Join
function to replace usage of multierrCombine
andAppend
functions. Please note it cannot be removed as a dependency from ourgo.mod
because it is an indirect dependency.Issue
Follow up changes from review of #861 and merging #910
Type of change
Please mark the relevant option(s):
List of changes
multierr.Combine
andmultierr.Append
usage witherrors.Join
Testing
make develop_test
; if any code changes were mademake test_e2e
on k8s LocalNet; if any code changes were madee2e-devnet-test
passes tests on DevNet; if any code was changedRequired Checklist
godoc
format comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)