-
Notifications
You must be signed in to change notification settings - Fork 131
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
switch juju/errors to pingcap/error #464
Conversation
run: find . | grep "\.go$" | grep -v "vendor" | xargs \ gsed -i 's/github.com\/juju\/errors/github.com\/pingcap\/errors/g' $* and update github.com/zanmato1984/clickhouse
/run-all-tests |
LGTM |
whether needing to adjust the order of imports? |
done, need to fix CI.. |
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
pingcap/error.IsNotFound(err) err must not be nil
can we support nil
error in pingcap/error.IsNotFound?
sure, can update pingcap/error, but we should avoid use this later |
/run-all-tests |
* switch juju/errors to pingcap/error run: find . | grep "\.go$" | grep -v "vendor" | xargs \ gsed -i 's/github.com\/juju\/errors/github.com\/pingcap\/errors/g' $* and update github.com/zanmato1984/clickhouse * go fmt all files
What problem does this PR solve?
switch juju/errors to pingcap/error
What is changed and how it works?
run:
find . | grep ".go$" | grep -v "vendor" | xargs
gsed -i 's/github.com/juju/errors/github.com/pingcap/errors/g' $*
and update github.com/zanmato1984/clickhouse
fix panic in diff/diff
pingcap/error.IsNotFound(err) err must not be nil
but for juju it can be nil
see https://github.com/pingcap/errors/pull/11/files
and check other code
Check List
Tests
Code changes
Side effects
Related changes