-
Notifications
You must be signed in to change notification settings - Fork 136
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
update go to 1.21 #1709
update go to 1.21 #1709
Conversation
lhy1024
commented
Jul 30, 2024
•
edited
Loading
edited
- update golang to 1.21
- update mockery to v2.40.3
- update go-lint to 1.59.1
- fix some lint
- unused-parameter
- SA1019: reflect.StringHeader has been deprecated
- dot-imports
- remove depguard temporary
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
/retest |
Signed-off-by: lhy1024 <admin@liudos.us>
|
||
linters: | ||
enable: | ||
# Additionally enable some checkers | ||
- asciicheck | ||
- depguard | ||
# - depguard |
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 close it because I am not sure how tidb-dashboard will do about it.
@@ -29,7 +27,5 @@ func (km *KeyMap) SaveKeys(keys []string) { | |||
} | |||
|
|||
func equal(keyA, keyB string) bool { |
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.
replace it since reflect.StringHeader has been deprecated
pstring.Data = pbytes.Data | ||
pstring.Len = pbytes.Len | ||
return | ||
func String(b []byte) string { |
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.
ditto
pbytes.Len = pstring.Len | ||
pbytes.Cap = pstring.Len | ||
return | ||
func Bytes(s string) []byte { |
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.
ditto
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.
@nolouch: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: baurine, nolouch The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
@lhy1024 please sign the CLA, thanks~ |
/cherry-pick release-8.3 |
/cherry-pick release-7.5 |
@mornyx: new pull request created to branch In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>