Skip to content
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

Merged
merged 2 commits into from
Feb 15, 2019
Merged

switch juju/errors to pingcap/error #464

merged 2 commits into from
Feb 15, 2019

Conversation

july2993
Copy link
Contributor

@july2993 july2993 commented Feb 14, 2019

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

  • Need to cherry-pick to the release branch

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
@july2993
Copy link
Contributor Author

/run-all-tests

@WangXiangUSTC
Copy link
Contributor

LGTM

@csuzhangxc
Copy link
Member

whether needing to adjust the order of imports?

@july2993
Copy link
Contributor Author

whether needing to adjust the order of imports?

done, need to fix CI..

Copy link
Member

@csuzhangxc csuzhangxc left a 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?

@july2993
Copy link
Contributor Author

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

@july2993
Copy link
Contributor Author

/run-all-tests

@july2993 july2993 merged commit e7bc030 into master Feb 15, 2019
@july2993 july2993 deleted the hjh/error branch February 15, 2019 10:57
july2993 added a commit that referenced this pull request Feb 27, 2019
* 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
july2993 added a commit that referenced this pull request Feb 27, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants