-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
types: merge json and types pkg #37578
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
9576587
to
77dcad7
Compare
Now, we use the bazel Visibility ability to avoid wrongly importing dependencies. |
Here is an example |
is it ready to review? |
Yes! #37579 still needs to fix some tests, but this one is ready (and simple) |
77dcad7
to
151dbeb
Compare
@@ -200,8 +200,8 @@ | |||
"br/pkg/lightning/mydump/": "br/pkg/lightning/mydump/", | |||
"br/pkg/lightning/restore/opts": "br/pkg/lightning/restore/opts", | |||
"executor/aggregate.go": "executor/aggregate.go", | |||
"types/json/binary_functions.go": "types/json/binary_functions.go", |
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.
If you have time to make nogo enable for all the types folder. it is better.
9e58f85
to
fa67262
Compare
fa67262
to
b1ebcbc
Compare
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
b1ebcbc
to
d6a3a96
Compare
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
# the release version will be empty and the program will panic. | ||
# | ||
# See the `DUMPLING_LDFLAGS` in `Makefile.common` for more information | ||
fetch-depth: 0 |
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.
@hawkingrei PTAL, I let it download the full history of TiDB to get the version through git describe --tags --dirty='-dev'
. I think it's necessary to pass the dumpling integration test 🤦♂️
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.
@lance6716 PTAL
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 created an issue just a minutes ago. #37628
LGTM
/check-issue-triage-complete |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5d568cb
|
TiDB MergeCI notify✅ Well Done! New fixed [1] after this pr merged.
|
Signed-off-by: YangKeao yangkeao@chunibyo.icu
What problem does this PR solve?
Issue Number: close #37577 close #37628
What is changed and how it works?
Simply copy every codes from the
json
pkg to thetypes
pkg, and rename some of the confusing variables/functions to a better name.Another circular dependency occurs in the
/config
, I rewrote them to a manually implementation which doesn't depend on the json pkg.I NEED NAMESPACE 😿 !
Check List
Tests